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
Datei anzeigen Open project: DynamoDS/DynamoSamples Class Usage Examples

Private Properties

Property Type Description
Tessellate void
TransformableExample System

Public Methods

Method 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

Method Description
Tessellate ( IRenderPackage package, TessellationParameters parameters ) : void
TransformableExample ( Geometry geo ) : System

Method Details

ByGeometry() public static method

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

TransformObject() public method

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
return TransformableExample