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


public static method Georef → (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.

Protected / Constructors

Shape​Extruder


protected constructor ShapeExtruder → ()

Creates a new instance of ShapeExtruder.

Protected / Methods

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 → (2)

vertex in : Vec2D

The 2D point.

vertical in : float64

The vertical offset along the extrusion axis.

returns → Vec3D

The 3D position.

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