IShapeExtruder

Description

interface Tinman.Engine.Models.IShapeExtruder

Extended by

ShapeExtruder abstract

Base interface for classes that extrude 2D IShape objects to 3D IModelGeometrySimple objects.

Public / Methods

Defaults


public method Defaults → ()

returns → IShapeExtruder

this

Resets the shape extruder properties to their defaults.

After creation, a IShapeExtruder will always have default property values.

Extrude


public method Extrude → (2)

shape in : IShape

[not-null]
The 2D shape.

vertical in : RangeD

The vertical coordinate range.

returns → IModelGeometrySimple

The extruded 3D shape or null if empty.

Extrudes the given 2D shape.

Public / Attributes

Cap​End


public attribute CapEnd → (get,set)

value : bool

true to generate 3D geometry for the part, false to do not.

Generate 3D geometry for the cap at RangeD.End?

Defaults to true.

Cap​Start


public attribute CapStart → (get,set)

value : bool

true to generate 3D geometry for the part, false to do not.

Generate 3D geometry for the cap at RangeD.Start?

Defaults to true.

Lines


public attribute Lines → (get,set)

value : bool

true to generate 3D lines, false to do not.

Generate 3D lines?

Defaults to true.

Sides


public attribute Sides → (get,set)

value : bool

true to generate 3D geometry for the part, false to do not.

Generate 3D geometry at the extruded silhouette?

Defaults to true.

Texture


public attribute Texture → (get,set)

value : IShapeExtruderTexture

The IShapeExtruderTexture object to use. Set to null to skip generation of texture coordinates.

Specifies the IShapeExtruderTexture object to use for generating texture coordinates of the extruded model.

Defaults to null.

Triangles


public attribute Triangles → (get,set)

value : bool

true to generate 3D triangles, false to do not.

Generate 3D triangles?

Defaults to true.

Extensions

Extrude

2 overloads


public static method Extrude1 → (3)

shape in : IShape

[not-null]
The 2D shape.

verticalA in : float64

First boundary of vertical coordinate range.

verticalB in : float64

Second boundary of vertical coordinate range.

returns → IModelGeometrySimple

The extruded 3D shape or null if empty.

Extrudes the given 2D shape.


public static method Extrude2 → (2)

shape in : IShape

[not-null]
The 2D shape.

vertical in : float64

The vertical coordinate range.

returns → IModelGeometrySimple

The extruded 3D shape or null if empty.

Extrudes the given 2D shape.