Versions Compared

Key

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

class Enlighten::IMeshSimpOutput

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

An interface for diagnosing the quality and any issues with the mesh simplification process in EnlightenPrecomp2.

Functions

NameDescription
Create()

Creates a new IMeshSimpOutput.

FindInstanceIndexByGuid(const Geo::GeoGuid &)

Returns the instance index that matches the argument guid, returns -1 if non match.

GetChartFromFaceIndex(Geo::s32, Geo::s32, Geo::s32)

Returns chart index, or -1 if the face isn't in the output atlas.

GetClusterFromFaceIndex(Geo::s32, Geo::s32, Geo::s32)

Returns cluster index, or -1 if the face isn't in the output atlas.

GetMergeAttemptQuality(Geo::s32, Geo::s32)

Return the quality of the merge attempt.

GetNumChartsInCluster(Geo::s32)

Return the number of charts in the given output cluster.

GetNumClusters()

Return the number of clusters in the output atlas - clusters represent charts that have been merged together.

GetNumFacesForMesh(Geo::s32, Geo::s32)

Return the number of faces in the given instance.

GetNumInstances()

Per instance.

GetNumMeshes(Geo::s32)

Return the number of meshes in a given instance.

GetNumOutputCharts()

Return the total number of charts in the output atlas.

GetNumVerticesForMesh(Geo::s32, Geo::s32)

Return the number of vertices in the given instance.

GetOutputAtlasChart(Geo::s32, Geo::s32)

Returns the zero-based chart index of a given output pixel, or -1 if not in a chart.

GetOutputAtlasHeight()

Returns the output atlas height.

GetOutputAtlasNormal(Geo::s32, Geo::s32, Geo::s32)

Returns the world normal of a given output pixel.

GetOutputAtlasPosition(Geo::s32, Geo::s32, Geo::s32)

Returns the world position of a given output pixel.

GetOutputAtlasWidth()

Returns the output atlas width.

GetOutputChartHeight(Geo::s32)

Returns the height of a given chart.

GetOutputChartType(Geo::s32, Geo::s32, Geo::s32)

Return the type of the output chart, normal(0) or smooth bevel(1)

GetOutputChartWidth(Geo::s32)

Returns the width of a given chart.

GetProjectedVertexNormal(Geo::s32, Geo::s32, Geo::s32)

Normal information. Returns the same as the original normal if not merged.

GetProjectedVertexPosition(Geo::s32, Geo::s32, Geo::s32)

Vertex information. Returns the same as the original position if not merged.

IsFullMeshSimpDataPresent()

Per instance.

Load(IGeoInputStream &, Geo::u32)

Load an instance of this class from an IGeoInputStream.

Load(Geo::IGeoInputStream &, Geo::u32)

Load an instance of this class from an IGeoStream.

Release()

Free this object that was created within the Enlighten libraries.

Save(IGeoStream &, Geo::u32)

Save an instance of this class to an IGeoStream.

WasChartMerged(Geo::s32, Geo::s32)

Per chart.


Anchor
a7e09792454ce4be63e12839201c4388e
a7e09792454ce4be63e12839201c4388e

static IMeshSimpOutput* Enlighten::IMeshSimpOutput::Create

...

public: IMeshSimpOutput * Create()

...

Creates a new IMeshSimpOutput.


Anchor
ac60eeb9255daaa1d08fad96fe024668c
ac60eeb9255daaa1d08fad96fe024668c

virtual Geo::s32 Enlighten::IMeshSimpOutput::FindInstanceIndexByGuid

...

public: Geo::s32 FindInstanceIndexByGuid
(
    const Geo::GeoGuid & guid
) const

...

Returns the instance index that matches the argument guid, returns -1 if non match.


Anchor
a3e17003649a5dbc0da5549289ac32b76
a3e17003649a5dbc0da5549289ac32b76

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetChartFromFaceIndex

...

public: Geo::s32 GetChartFromFaceIndex
(
    Geo::s32 instance,
    Geo::s32 meshIdx,
    Geo::s32 faceIndex
) const

...

Returns chart index, or -1 if the face isn't in the output atlas.


Anchor
a0265805d0b5c2c27e1b54c41d427322d
a0265805d0b5c2c27e1b54c41d427322d

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetClusterFromFaceIndex

...

public: Geo::s32 GetClusterFromFaceIndex
(
    Geo::s32 instance,
    Geo::s32 meshIdx,
    Geo::s32 faceIndex
) const

...

Returns cluster index, or -1 if the face isn't in the output atlas.


Anchor
a6d690bfdb8617387b51db2e18a64cb63
a6d690bfdb8617387b51db2e18a64cb63

virtual float Enlighten::IMeshSimpOutput::GetMergeAttemptQuality

...

public: float GetMergeAttemptQuality
(
    Geo::s32 cluster,
    Geo::s32 chart
) const

...

Return the quality of the merge attempt.


Anchor
ae915f93559b4ec5a5c35876ed7554212
ae915f93559b4ec5a5c35876ed7554212

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumChartsInCluster

...

public: Geo::s32 GetNumChartsInCluster
(
    Geo::s32 cluster
) const

...

Return the number of charts in the given output cluster.


Anchor
ae7010f8b9431d5f20090d7be52f89ef8
ae7010f8b9431d5f20090d7be52f89ef8

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumClusters

...

public: Geo::s32 GetNumClusters() const

...

Return the number of clusters in the output atlas - clusters represent charts that have been merged together.


Anchor
ab7ee7bb3576db61cf0e635ebfd8b2585
ab7ee7bb3576db61cf0e635ebfd8b2585

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumFacesForMesh

...

public: Geo::s32 GetNumFacesForMesh
(
    Geo::s32 instance,
    Geo::s32 meshIdx
) const

...

Return the number of faces in the given instance.


Anchor
a5c2377b03eb9bb29fa82a5d2a74fe1bc
a5c2377b03eb9bb29fa82a5d2a74fe1bc

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumInstances

...

public: Geo::s32 GetNumInstances() const

...

Per instance.

This is more for debugging: should be set if and only if it's targetsimp geometry

Return the total number of instances in the output atlas.


Anchor
a57e2d117139530b8e9758a81f78db989
a57e2d117139530b8e9758a81f78db989

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumMeshes

...

public: Geo::s32 GetNumMeshes
(
    Geo::s32 instance
) const

...

Return the number of meshes in a given instance.


Anchor
a65040a12ab0f7889c9a025bb5d80f9c6
a65040a12ab0f7889c9a025bb5d80f9c6

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumOutputCharts

...

public: Geo::s32 GetNumOutputCharts() const

...

Return the total number of charts in the output atlas.


Anchor
a83e40998959fd98b55c9d78b24b24c3f
a83e40998959fd98b55c9d78b24b24c3f

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetNumVerticesForMesh

...

public: Geo::s32 GetNumVerticesForMesh
(
    Geo::s32 instance,
    Geo::s32 meshIdx
) const

...

Return the number of vertices in the given instance.


Anchor
a14b4d9671f3ab345b9c41759373a2c7e
a14b4d9671f3ab345b9c41759373a2c7e

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetOutputAtlasChart

...

public: Geo::s32 GetOutputAtlasChart
(
    Geo::s32 x,
    Geo::s32 y
) const

...

Returns the zero-based chart index of a given output pixel, or -1 if not in a chart.


Anchor
a54027f73baaf85db2afba7ef4ecc2094
a54027f73baaf85db2afba7ef4ecc2094

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetOutputAtlasHeight

...

public: Geo::s32 GetOutputAtlasHeight() const

...

Returns the output atlas height.


Anchor
aef5fabd3bf2588d4a750595841c26cf0
aef5fabd3bf2588d4a750595841c26cf0

virtual Geo::v128 Enlighten::IMeshSimpOutput::GetOutputAtlasNormal

...

public: Geo::v128 GetOutputAtlasNormal
(
    Geo::s32 cluster,
    Geo::s32 x,
    Geo::s32 y
) const

...

Returns the world normal of a given output pixel.


Anchor
a259f3fc9be168b97fd2bfc6aa79c4193
a259f3fc9be168b97fd2bfc6aa79c4193

virtual Geo::v128 Enlighten::IMeshSimpOutput::GetOutputAtlasPosition

...

public: Geo::v128 GetOutputAtlasPosition
(
    Geo::s32 cluster,
    Geo::s32 x,
    Geo::s32 y
) const

...

Returns the world position of a given output pixel.


Anchor
a4f785baa0d08e6d19e416877fa810bd8
a4f785baa0d08e6d19e416877fa810bd8

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetOutputAtlasWidth

...

public: Geo::s32 GetOutputAtlasWidth() const

...

Returns the output atlas width.


Anchor
a409c8986c2096be98688fc861bf250f8
a409c8986c2096be98688fc861bf250f8

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetOutputChartHeight

...

public: Geo::s32 GetOutputChartHeight
(
    Geo::s32 cluster
) const

...

Returns the height of a given chart.


Anchor
aea76636fbce994fa5ec93305ca37222f
aea76636fbce994fa5ec93305ca37222f

virtual Geo::u16 Enlighten::IMeshSimpOutput::GetOutputChartType

...

public: Geo::u16 GetOutputChartType
(
    Geo::s32 instance,
    Geo::s32 meshIdx,
    Geo::s32 faceIndex
) const

...

Return the type of the output chart, normal(0) or smooth bevel(1)


Anchor
a13a0b0e0aa276e07dd2b96e4af200432
a13a0b0e0aa276e07dd2b96e4af200432

virtual Geo::s32 Enlighten::IMeshSimpOutput::GetOutputChartWidth

...

public: Geo::s32 GetOutputChartWidth
(
    Geo::s32 cluster
) const

...

Returns the width of a given chart.


Anchor
afb4f9ae371e0611bb14634e1cc89ed3c
afb4f9ae371e0611bb14634e1cc89ed3c

virtual Geo::v128 Enlighten::IMeshSimpOutput::GetProjectedVertexNormal

...

public: Geo::v128 GetProjectedVertexNormal
(
    Geo::s32 instance,
    Geo::s32 meshIdx,
    Geo::s32 vertexIndex
) const

...

Normal information. Returns the same as the original normal if not merged.


Anchor
ab62f5df4b8ca06cd776aac374fd46b77
ab62f5df4b8ca06cd776aac374fd46b77

virtual Geo::v128 Enlighten::IMeshSimpOutput::GetProjectedVertexPosition

...

public: Geo::v128 GetProjectedVertexPosition
(
    Geo::s32 instance,
    Geo::s32 meshIdx,
    Geo::s32 vertexIndex
) const

...

Vertex information. Returns the same as the original position if not merged.


Anchor
a473b14a0224b72b99c2326f66100d446
a473b14a0224b72b99c2326f66100d446

virtual bool Enlighten::IMeshSimpOutput::IsFullMeshSimpDataPresent

...

public: bool IsFullMeshSimpDataPresent() const

...

Per instance.

This is more for debugging: should be set if and only if it's targetsimp geometry

Return the total number of instances in the output atlas.


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
ac7fb83d43cfd26de9d97c78023517b97
ac7fb83d43cfd26de9d97c78023517b97

virtual bool Enlighten::IMeshSimpOutput::Load

...

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

...

Load an instance of this class from an IGeoStream.

The stream must be ready to read from. Pass 0 as the section parameter to load only the atlas chart information (which is used in the Chart Texture view in GeoRadiosity); pass Geo::Iff::AllSectionsMask to load all of the mesh simp output data.


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.


Anchor
a3e9b03928c1f51495cb51ebc475ad4fb
a3e9b03928c1f51495cb51ebc475ad4fb

virtual bool Enlighten::IMeshSimpOutput::WasChartMerged

...

public: bool WasChartMerged
(
    Geo::s32 cluster,
    Geo::s32 chart
) const

...

Per chart.

Return true iff the given chart from the given cluster was merged.