Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::IPrecompPackedGeometry

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

Handle to the PackedGeometry.

Functions

NameDescription
Create()

Create a new empty IPrecompPackedGeometry.

GetBoundingBox()

Get the axis aligned bounding box of the radiosity geometry.

GetId()

Return the unique ID of this geometry.

GetInputMesh(Geo::s32)

Get the mesh at a given index.

GetLod(Geo::s32)

Get a given (lodIndex) Lod of this geometry.

GetMeshProperties(Geo::s32)

Get the mesh properties for a given index.

GetName()

Get the full name.

GetNumLods()

Get number of Lods of this geometry.

GetNumMeshes()

Returns the number of meshes in the output geometry.

GetNumVerts(Geo::s32)

Returns the number of vertices in the output geometry for the given mesh index.

GetOutputChartIdsArray(Geo::s32)

Returns a pointer to a per-vertex chart id information for the given mesh id.

GetOutputUvArray(Geo::s32)

Returns a pointer to the per-vertex uvs for the given mesh index.

GetOutputUvSize()

Returns the size of the UV texture for which the UV coordinates were calculated.

GetProjectionCost()

Get the projection cost for the geometry.

GetProjectionCost(Geo::s32)

Get the projection cost for an individual mesh.

GetSurfaceArea()

Get the estimated surface area of the radiosity geometry.

GetTargetUsagePercentage()

Get the percentage of the output UV texture occupied.

GetUVArea()

Get the estimated UV surface area of the radiosity geometry.

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.


Anchor
ae44eb5f0d62d07a214555f8dfa450db7
ae44eb5f0d62d07a214555f8dfa450db7

static IPrecompPackedGeometry* Enlighten::IPrecompPackedGeometry::Create

...

public: IPrecompPackedGeometry * Create()

...

Create a new empty IPrecompPackedGeometry.

You can load data into an empty class with the IGeoSerialisable interface.


Anchor
a6e367f50879559ecc7c1e8f4a35d6597
a6e367f50879559ecc7c1e8f4a35d6597

virtual Geo::GeoBoundingBox Enlighten::IPrecompPackedGeometry::GetBoundingBox

...

public: Geo::GeoBoundingBox GetBoundingBox() const

...

Get the axis aligned bounding box of the radiosity geometry.


Anchor
a1f306f3a3e91e3101660e01a8c2ff67d
a1f306f3a3e91e3101660e01a8c2ff67d

virtual Geo::GeoGuid Enlighten::IPrecompPackedGeometry::GetId

...

public: Geo::GeoGuid GetId() const

...

Return the unique ID of this geometry.


Anchor
a41e129425920676bdde350f805abe078
a41e129425920676bdde350f805abe078

virtual const IPrecompInputMesh* Enlighten::IPrecompPackedGeometry::GetInputMesh

...

public: const IPrecompInputMesh * GetInputMesh
(
    Geo::s32 idx
) const

...

Get the mesh at a given index.

Parameters
[in]idx

The index for the mesh, returned by the AddMesh call in IPrecompInputGeometry. Must be in the range 0 <= idx < GetNumMeshes().

Returns

A copy of the input mesh (after required internal preprocessing such as autoUVs or face winding changes), or NULL if the index is out of range.


Anchor
a12b18ce8261d6ed91075c799a5805dd6
a12b18ce8261d6ed91075c799a5805dd6

virtual const IPrecompPackedGeometry* Enlighten::IPrecompPackedGeometry::GetLod

...

public: const IPrecompPackedGeometry * GetLod
(
    Geo::s32 lodIndex
) const

...

Get a given (lodIndex) Lod of this geometry.

GetLod(0) will return the geometry itself. If lodIndex if greater or equal than value returned by GetNumLods(), then the last (lowest quality) Lod is returned.


Anchor
a12c3a0b300ed9c9bf1abc3513fa497ac
a12c3a0b300ed9c9bf1abc3513fa497ac

virtual const PrecompMeshProperties* Enlighten::IPrecompPackedGeometry::GetMeshProperties

...

public: const PrecompMeshProperties * GetMeshProperties
(
    Geo::s32 idx
) const

...

Get the mesh properties for a given index.

Parameters
[in]idx

The index for the mesh, returned by the AddMesh call in IPrecompInputGeometry. Must be in the range 0 <= idx < GetNumMeshes().

Returns

The mesh properties provided by the user in the input geometry class, or NULL if the index is out of range.


Anchor
a84bf994e4859bcba5992e630071f247a
a84bf994e4859bcba5992e630071f247a

virtual const char* Enlighten::IPrecompPackedGeometry::GetName

...

public: const char * GetName() const

...

Get the full name.


Anchor
ad46096fb7d770f97dc551d275275c573
ad46096fb7d770f97dc551d275275c573

virtual Geo::s32 Enlighten::IPrecompPackedGeometry::GetNumLods

...

public: Geo::s32 GetNumLods() const

...

Get number of Lods of this geometry.


Anchor
a2a8432ad182239526cd46ca1f25ed575
a2a8432ad182239526cd46ca1f25ed575

virtual Geo::s32 Enlighten::IPrecompPackedGeometry::GetNumMeshes

...

public: Geo::s32 GetNumMeshes() const

...

Returns the number of meshes in the output geometry.


Anchor
a8c4717442de57fab95a30071f0af50dc
a8c4717442de57fab95a30071f0af50dc

virtual Geo::s32 Enlighten::IPrecompPackedGeometry::GetNumVerts

...

public: Geo::s32 GetNumVerts
(
    Geo::s32 idx
) const

...

Returns the number of vertices in the output geometry for the given mesh index.

Note
titleNote

This will return -1 if the mesh did not have uvs generated for it.

Info
titleSee Also

PrecompMeshProperties


Anchor
a636872673540c0725e718cc230858468
a636872673540c0725e718cc230858468

virtual const Geo::s32* Enlighten::IPrecompPackedGeometry::GetOutputChartIdsArray

...

public: const Geo::s32 * GetOutputChartIdsArray
(
    Geo::s32 id
) const

...

Returns a pointer to a per-vertex chart id information for the given mesh id.


Anchor
afe12c8f87399f2f23b7ccd31a02be8bb
afe12c8f87399f2f23b7ccd31a02be8bb

virtual const Geo::GeoPoint2* Enlighten::IPrecompPackedGeometry::GetOutputUvArray

...

public: const Geo::GeoPoint2 * GetOutputUvArray
(
    Geo::s32 id
) const

...

Returns a pointer to the per-vertex uvs for the given mesh index.

Note
titleNote

This will return NULL if the mesh did not have uvs generated for it.

Info
titleSee Also

PrecompMeshProperties


Anchor
a604de5ef0e3a3a838b209cdca500d76c
a604de5ef0e3a3a838b209cdca500d76c

virtual Geo::GeoPair<Geo::s32, Geo::s32> Enlighten::IPrecompPackedGeometry::GetOutputUvSize

...

public: Geo::GeoPair< Geo::s32, Geo::s32 > GetOutputUvSize() const

...

Returns the size of the UV texture for which the UV coordinates were calculated.


Anchor
a6949f1370ec52eec8a109da9dd22562b
a6949f1370ec52eec8a109da9dd22562b

virtual float Enlighten::IPrecompPackedGeometry::GetProjectionCost

...

public: float GetProjectionCost() const

...

Get the projection cost for the geometry.

Lower is better.

Note
titleNote

This measure is not comparable between meshes. Only compare it with different projections of the same mesh.


Anchor
ac93927cb63f2d93e91f8a4ce081126a3
ac93927cb63f2d93e91f8a4ce081126a3

virtual float Enlighten::IPrecompPackedGeometry::GetProjectionCost

...

public: float GetProjectionCost
(
    Geo::s32 meshIdx
) const

...

Get the projection cost for an individual mesh.

Lower is better.

Note
titleNote

This measure is not comparable between meshes. Only compare it with different projections of the same mesh.


Anchor
a9628902aa2fd597a0b8d4523aa1a42cd
a9628902aa2fd597a0b8d4523aa1a42cd

virtual float Enlighten::IPrecompPackedGeometry::GetSurfaceArea

...

public: float GetSurfaceArea() const

...

Get the estimated surface area of the radiosity geometry.


Anchor
a15727963850b77db3895936b5e60eb15
a15727963850b77db3895936b5e60eb15

virtual float Enlighten::IPrecompPackedGeometry::GetTargetUsagePercentage

...

public: float GetTargetUsagePercentage() const

...

Get the percentage of the output UV texture occupied.


Anchor
a2c8a5583f7e463c4ecb3cf0bad2eeb94
a2c8a5583f7e463c4ecb3cf0bad2eeb94

virtual float Enlighten::IPrecompPackedGeometry::GetUVArea

...

public: float GetUVArea() const

...

Get the estimated UV surface area of the radiosity geometry.


Anchor
ae5fb810c8f4470cb3c9fcb16c6f7f7fe
ae5fb810c8f4470cb3c9fcb16c6f7f7fe

virtual bool Geo::IGeoSerialisable::Load

...

public: bool Load
(
    IGeoInputStream & stream,
    Geo::u32 section
)

...

Load an instance of this class from an IGeoInputStream.

The stream must be ready to read from. You can load sections of an object by passing a bitmask representing the desired sections rather than Iff::AllSectionsMask, which will load all sections. It is also safe to call this method on an object multiple times with different section arguments to load multiple parts.


Anchor
af6bdf30b42adde386c428e9dc2821eb9
af6bdf30b42adde386c428e9dc2821eb9

virtual void Geo::IGeoReleasable::Release

...

public: void Release()

...

Free this object that was created within the Enlighten libraries.

Expect this to behave in a similar way to calling 'delete(this)'


Anchor
a5b03439626a3dac9b9c27feb1a3978d3
a5b03439626a3dac9b9c27feb1a3978d3

virtual bool Geo::IGeoSerialisable::Save

...

public: bool Save
(
    IGeoStream & stream,
    Geo::u32 section
) const

...

Save an instance of this class to an IGeoStream.

The stream must be ready to write to. You can save sections of an object by passing a bitmask representing the desired sections rather than Iff::AllSectionsMask, which will save all sections that are available.