C# Класс 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.
Наследование: IGraphicItem
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Tessellate void
TransformableExample System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Tessellate ( IRenderPackage package, TessellationParameters parameters ) : void
TransformableExample ( Geometry geo ) : System

Описание методов

ByGeometry() публичный статический Метод

Create a TranformableExample class which stores a Geometry object and a Transform.
public static ByGeometry ( Autodesk geometry ) : TransformableExample
geometry Autodesk a geometry object
Результат TransformableExample

TransformObject() публичный Метод

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
Результат TransformableExample