ShapeExtruder

Description

abstract class Tinman.Engine.Models.ShapeExtruder

Derived from

IShapeExtruder

Abstract base class for IShapeExtruder implementations.

Public / Constructors

Along


public static method Along → (1)

matrix in : Mat3D

The transformation matrix to use, see remarks.

returns → IShapeExtruder

The shape extruder.

Creates a Cartesian shape extruder.

Extrusion is performed by multiplying the given matrix in with the vector (x,y,v), where x is the shape X-coordinate, y is the shape Y-coordinate and v is the vertical coordinate of the extrusion.

Along­X


public static method AlongX → (3)

scaleX opt : float64 = 1

Scale factor for shape X-coordinates.

scaleY opt : float64 = 1

Scale factor for shape Y-coordinates.

flipXY opt : bool = false

Flip shape X- and Y-coordinates, after scaling?

returns → IShapeExtruder

The shape extruder.

Creates a Cartesian shape extruder.

For default parameter values, the shape X- and Y-coordinates are mapped to the Y+ and Z+ axes. The extrusion is applied along the (1,0,0) vector.

Along­Y


public static method AlongY → (3)

scaleX opt : float64 = 1

Scale factor for shape X-coordinates.

scaleY opt : float64 = 1

Scale factor for shape Y-coordinates.

flipXY opt : bool = false

Flip shape X- and Y-coordinates, after scaling?

returns → IShapeExtruder

The shape extruder.

Creates a Cartesian shape extruder.

For default parameter values, the shape X- and Y-coordinates are mapped to the Z+ and X+ axes. The extrusion is applied along the (0,1,0) vector.

Along­Z


public static method AlongZ → (3)

scaleX opt : float64 = 1

Scale factor for shape X-coordinates.

scaleY opt : float64 = 1

Scale factor for shape Y-coordinates.

flipXY opt : bool = false

Flip shape X- and Y-coordinates, after scaling?

returns → IShapeExtruder

The shape extruder.

Creates a Cartesian shape extruder.

For default parameter values, the shape X- and Y-coordinates are mapped to the X+ and Y+ axes. The extrusion is applied along the (0,0,1) vector.

Georef

2 overloads


public static method Georef1 → (3)

geocentric in : Geocentric

[not-null]
The geocentric helper object to use.

accuracy in : float64

[>=0]
The accuracy for edge subdivision, see IShapeOps.TransformCoordinateSystem.

verticalType opt : VerticalType = VerticalType.Ellipsoid

The vertical type to use for interpreting the extrusion height values.

returns → IShapeExtruder

The shape extruder.

Creates a geocentric shape extruder.

Shapes must have a geo-reference. The extrusion range is interpreted according to verticalType opt.


public static method Georef2 → (4)

geocentric in : Geocentric

[not-null]
The geocentric helper object to use.

accuracy in : float64

[>=0]
The accuracy for edge subdivision, see IShapeOps.TransformCoordinateSystem.

verticalTypeStart in : VerticalType

The vertical type to use for interpreting the extrusion height values at RangeD.Start.

verticalTypeEnd in : VerticalType

The vertical type to use for interpreting the extrusion height values at RangeD.End.

returns → IShapeExtruder

The shape extruder.

Creates a geocentric shape extruder.

Shapes must have a geo-reference. The extrusion range is interpreted according to verticalTypeStart in and verticalTypeEnd in.

Protected / Constructors

Shape­Extruder


protected constructor ShapeExtruder → ()

Creates a new instance of ShapeExtruder.

Protected / Methods

Do­Extrude


protected virtual method DoExtrude → (3)

shape in : IShape

The shape to extrude.

vertical in : RangeD

The extrusion range.

mapping in : int32 [ ]

The mapping from shape in vertex indices to source vertex indices or null. If a mapped index is negative, no side line will be generated for the source vertex.

returns → IModelGeometrySimple

The extruded model geometry.

Performs shape extrusion, see IShapeExtruder.Extrude.

Normal


protected abstract method Normal → (1)

vertex in : Vec2D

The 2D point.

returns → Vec3D

The 3D normal vector.

Returns the 3D normal vector at the given 2D point.

Position


protected abstract method Position → (3)

vertex in : Vec2D

The 2D point.

vertical in : float64

The vertical offset along the extrusion axis.

relative in : float64

The relative vertical position, where 0 and 1 correspond to RangeD.Start and RangeD.End of the RangeD value that has been passed to IShapeExtruder.Extrude

returns → Vec3D

The 3D position.

Returns the extruded 3D position of the given 2D point.