class Enlighten IPrecompInputMesh

This is the documentation for Enlighten.

class Enlighten IPrecompInputMesh

class Enlighten::IPrecompInputMesh

    └>Geo::IGeoSerialisable
        └>Geo::IGeoReleasable

The standard precompute mesh input class.

Functions

Name

Description

Name

Description

AddFaces(const PrecompInputFace *, const PrecompInputFace *)

Copies all faces between [begin, end) into this object.

AddLinks(const Geo::IdxLink *, const Geo::IdxLink *)

Copies all index links between [begin, end) into this object.

AddLinksForIdenticalVertices(bool, bool, bool, bool)

Utility to generate links between identical vertices.

AddMaterialGuidMapping(Geo::GeoGuid, Geo::u32)

Add an explicit mapping from 128-bit material GUID to 32-bit material ID.

AddVertices(const PrecompInputVertex *, const PrecompInputVertex *)

Copies all vertices between [begin, end) into this object.

CalculateSurfaceArea()

Returns the world-space surface area of the mesh.

Clone()

Create a deep copy of this mesh.

Create()

Create a new empty IPrecompInputMesh.

GetFaceArray()

Read-only access to the faces.

GetFaceArray()

Modification access to the faces.

GetLinkArray()

Modification access to the link array.

GetLinkArray()

Read-only access to the link array.

GetMaterialGuidMappingsArray()

Read-only access to the material GUID to 32-bit material ID mapping array.

GetNumFaces()

How many faces in this mesh.

GetNumLinks()

How many links are in this mesh.

GetNumMaterialGuidMappings()

Gets the number of material GUID to 32-bit material ID mappings, as added by AddMaterialGuidMapping.

GetNumVertices()

How many vertices in this mesh.

GetVertexArray()

Read-only access to the vertices.

GetVertexArray()

Modification access to the vertices.

Load(IGeoInputStream &, Geo::u32)

Load an instance of this class from an IGeoInputStream.

Release()

Free this object that was created within the Enlighten libraries.

Save(IGeoStream &, Geo::u32)

Save an instance of this class to an IGeoStream.



virtual bool Enlighten::IPrecompInputMesh::AddFaces


public: bool AddFaces
(
    const PrecompInputFace * begin,
    const PrecompInputFace * end
)


Copies all faces between [begin, end) into this object.

 

Parameters

[in]

begin

A pointer to the first element to be added

[in]

end

A pointer to an element one past the last entity (as standard STL syntax)

Returns