C# Class SampleLibraryZeroTouch.Examples.TransformableExample

An object which knows how to draw itself in the background preview and uses a transform to take advantage of the GPU to alter that background visualization. The original geometry remains unaltered, only the visualization is transformed.
Inheritance: IGraphicItem
Afficher le fichier Open project: DynamoDS/DynamoSamples Class Usage Examples

Private Properties

Свойство Type Description
Tessellate void
TransformableExample System

Méthodes publiques

Méthode Description
ByGeometry ( Autodesk geometry ) : TransformableExample

Create a TranformableExample class which stores a Geometry object and a Transform.

TransformObject ( Autodesk.DesignScript.Geometry.CoordinateSystem transform ) : TransformableExample

This method sets the transform on the object and returns a reference to the object so the tessellate method is called and the new visualization shows in the background preview.

Private Methods

Méthode Description
Tessellate ( IRenderPackage package, TessellationParameters parameters ) : void
TransformableExample ( Geometry geo ) : System

Method Details

ByGeometry() public static méthode

Create a TranformableExample class which stores a Geometry object and a Transform.
public static ByGeometry ( Autodesk geometry ) : TransformableExample
geometry Autodesk a geometry object
Résultat TransformableExample

TransformObject() public méthode

This method sets the transform on the object and returns a reference to the object so the tessellate method is called and the new visualization shows in the background preview.
public TransformObject ( Autodesk.DesignScript.Geometry.CoordinateSystem transform ) : TransformableExample
transform Autodesk.DesignScript.Geometry.CoordinateSystem
Résultat TransformableExample