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

ToModel

2 overloads


public static method ToModel1 → (5)

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 = -1

The color to use for edges.

colorTriangles opt : int64 = 0x7FFFFFFFFFFFFFFF

The color to use for triangles.

lineThickness opt : float32 = 1

The line thickness (see IMaterial.LineThickness).

returns → Model

The resulting model.

Creates a simple IModel from this geometry.


public static method ToModel2 → (5)

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 (see ModelFlags.Lighting)?

colorEdges opt : int64 = -1

The color to use for edges.

colorTriangles opt : int64 = 0x7FFFFFFFFFFFFFFF

The color to use for triangles.

lineThickness opt : float32 = 1

The line thickness (see IMaterial.LineThickness).

returns → Model

The resulting model.

Creates a simple IModel from this geometry.