TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class ModelGeometryBuilder in Tinman.AddOns.Models

Helper class for generating content for IModelGeometry objects.

sealed class ModelGeometryBuilder  

Public / Attributes

CountIndices

Returns the number of vertex indices that have been written.

public property CountIndices { get }
type int32
value [>=0] The number of written vertex indices.

CountVertices

Returns the number of vertices that have been written.

public property CountVertices { get }
type int32
value [>=0] The number of written vertices.

Indices

Returns the vertex indices.

public property Indices { get }
type int32[]
value The vertex index array of null if no indices have been written.

Vertices

The vertex writer.

public property Vertices { get }
type VertexWriter
value [not-null] The object to use for writing vertex data.

Public / Methods

Build

public method Build ()
type IModelGeometry

public method Build (PrimitiveBatch triangles, PrimitiveBatch lines)
type IModelGeometrySimple
params triangles
  lines

LineSegment

public method LineSegment (int32 a, int32 b)
params a
  b

Point

public method Point (int32 a)
params a

Quad

public method Quad (int32 a, int32 b, int32 c, int32 d)
params a
  b
  c
  d

Triangle

public method Triangle (int32 a, int32 b, int32 c)
params a
  b
  c