IModelGeometrySimple

Description

interface Tinman.Engine.Models.IModelGeometrySimple

Derived from

IModelGeometry

Base interface for IModelGeometry classes that contain simple line and/or triangle geometry that can be described with a single PrimitiveBatch, each.

Public / Attributes

Lines


public attribute Lines → (get)

value : PrimitiveBatch

The batch.

The primitive batch that represents the edge lines.

Triangles


public attribute Triangles → (get)

value : PrimitiveBatch

The batch.

The primitive batch that represents the surface triangles.

Extensions

To​Model

2 overloads


public static method ToModel1 → (7)

model in : Model

[not-null]
The parent model that will get additional child models based on this geometry.

faces opt : int32 = 0

> 0 : show only front-facing triangles
= 0 : show both front- and back-facing triangles
< 0 : show only back-facing triangles

colorEdges opt : int64 = Colors.White

The color to use for edges.

colorTriangles opt : int64 = Colors.Opaque50

The color to use for triangles.

lineThickness opt : float32 = 1

The line thickness (see IMaterial.LineThickness).

layer opt : int32 = 0

The surface layer (see IModelPart.Layer).

lighting opt : bool = true

Enable lighting for the triangle model part, i.e. do not use the ModelPartFlags.NoLighting flag?

returns → Model

The resulting model.

Creates a simple IModel from this geometry.


public static method ToModel2 → (6)

faces opt : int32 = 0

> 0 : show only front-facing triangles
= 0 : show both front- and back-facing triangles
< 0 : show only back-facing triangles

lighting opt : bool = false

Enable lighting for the triangle model part, i.e. do not use the ModelPartFlags.NoLighting flag?

colorEdges opt : int64 = Colors.White

The color to use for edges.

colorTriangles opt : int64 = Colors.Opaque50

The color to use for triangles.

lineThickness opt : float32 = 1

The line thickness (see IMaterial.LineThickness).

layer opt : int32 = 0

The surface layer (see IModelPart.Layer).

returns → Model

The resulting model.

Creates a simple IModel from this geometry.