fastest 3D software for linux

Linux 3D
interactive ray-tracing

Index

 E3d_RPolyGroupArea
 E3d_PolyGroupCopy
 E3d_PolyGroupHasSelectedPolygons
 E3d_MeshPolyGroupNumOfSelectedEdges
 E3d_PolyGroupNumOfSelectedPolygons
 E3d_PolyGroupGetMarkedPolygonIndices
 E3d_PolyGroupDeletePolygon
 E3d_PolyGroupDeletePolygonsByIndex
 E3d_PolyGroupAddPolygon
 E3d_PolyGroupFreePolygons
 E3d_PolyGroupFreeTriangleStrips
 E3d_MeshPolyGroupArea
 E3d_MeshPolyGroupUpdateForDisplay


E3d_RPolyGroupArea

Calculate surface area of an E3dRPolyGroup

Syntax
E3dCoordinate E3d_RPolyGroupArea(const E3dRPolyGroup* PRPolyGroup)

Argument
const E3dRPolyGroup* PRPolyGroup The RPolyGroup
Description
This function computes the surface area of an E3dRPolyGroup.

Return value
None.

E3d_PolyGroupCopy

Clone a PolyGroup

Syntax
E3dPolyGroup* E3d_PolyGroupCopy(const E3dPolyGroup* PSrcPolyGroup, E3dPolyGroup* PDstPolyGroup, const E3dMatrix PVectorMatrix, const unsigned int PFlags)

Argument
const E3dPolyGroup* PSrcPolyGroup Pointer to the PolyGroup structure to be cloned (source) E3dPolyGroup* PDstPolyGroup Pointer to the destination PolyGroup const E3dMatrix PVectorMatrix If not NULL, transform normals and tangents, etc. with this Matrix const unsigned int PFlags Flags determining what to clone / share
Description
Creates and exact copy of PSrcPolyGroup. If PDstPolyGroup is NULL, a new PolyGroup will be created and returned. If PFlags has the flag E3dCopyMATERIALS set, the Material of the PolyGroup will be cloned as well, otherwise the Material will be shared between the original PolyGroup and the clone. PFlags accepted flags: ECopyNAME Copy the name of PSrcPolyGroup E3dCopyPOLYGONS Copy Polygons E3dCopyEDGES Copy Edges (indices into to the Mesh Edge array) E3dCopyCOMPONENTS Copy PolyGroup component objects (not yet implemented)

Return value
Pointer to the new PolyGroup structure, or NULL in case of an error.

See also
E3d_PolyGroupAllocate, E_Delete

E3d_PolyGroupHasSelectedPolygons

Tell whether a PolyonGroup has selected Polygons

Syntax
EBool E3d_PolyGroupHasSelectedPolygons(const E3dPolyGroup* PPolyGroup)

Argument
const E3dPolyGroup* PPolyGroup Pointer to the E3dPolyGroup structure
Description
This function returns TRUE if there are selected Polygons in the given PolyGroup. This may be faster than E3d_PolyGroupNumOfSelectedPolygons.

Return value
TRUE if there are selected Polygons in PPolyGroup, otherwise FALSE.

E3d_MeshPolyGroupNumOfSelectedEdges

Count selected Edges in a PolyonGroup

Syntax
EIndex E3d_MeshPolyGroupNumOfSelectedEdges(const E3dMesh* PMesh, const E3dPolyGroup* PPolyGroup)

Argument
const E3dPolyGroup* PPolyGroup Pointer to the E3dPolyGroup structure
Description
Returns the number of selected Edges in the given PolyGroup.

Return value
The number of selected Edges.

E3d_PolyGroupNumOfSelectedPolygons

Count selected Polygons in a PolyonGroup

Syntax
EIndex E3d_PolyGroupNumOfSelectedPolygons(const E3dPolyGroup* PPolyGroup)

Argument
const E3dPolyGroup* PPolyGroup Pointer to the E3dPolyGroup structure
Description
Returns the number of selected Polygons in the given PolyGroup.

Return value
The number of selected Polygons.

E3d_PolyGroupGetMarkedPolygonIndices

Count selected Polygons in a PolyonGroup

Syntax
EIndex E3d_PolyGroupGetMarkedPolygonIndices(const E3dPolyGroup* PPolyGroup, const E3dPolygonFlags PFlag, EIndex** PIndicesP)

Argument
const E3dPolyGroup* PPolyGroup Pointer to the E3dPolyGroup structure EIndex** PIndicesP Pointer to store the resultin array
Description
This function returns the number of selected Polygons in the given PolyGroup.

Return value
The number of selected Polygons.

E3d_PolyGroupDeletePolygon

Remove a Polygon from a PolyonGroup

Syntax
EIndex E3d_PolyGroupDeletePolygon(E3dPolyGroup* PPolyGroup, E3dPolygon* PPolygon)

Arguments
E3dPolyGroup* PPolyGroup Pointer to the E3dPolyGroup structure E3dPolygon* PPolygon The Polygon to be deleted
Description
Removes the PPolygon from the given PolyGroup by first copying the unselected Polygons into a new array and replacing the old array with this array.

Return value
The index of the Polygon that was removed, or -1 in case of an error

E3d_PolyGroupDeletePolygonsByIndex

Remove Polygons from a PolyonGroup

Syntax
EIndex E3d_PolyGroupDeletePolygonsByIndex(E3dPolyGroup* PPolyGroup, const EIndex* PIndices, const EIndex PIndices_Count)

Arguments
E3dPolyGroup* PPolyGroup Pointer to the E3dPolyGroup structure const EIndex* PIndices List of indicex of Polygons to be removed const EIndex PIndices_Count Number of Polygons to be removed
Description
This function removes the Polygons listed by index, from the given PolyGroup by first copying the Polygons not listed into a new array and replacing the old array with this array.

Return value
The number of Polygons removed.

E3d_PolyGroupAddPolygon

Add one Polygon to a PolyGroup

Syntax
E3dPolygon* E3d_PolyGroupAddPolygon(E3dPolyGroup* PPolyGroup)

Arguments
E3dPolyGroup* PPolyGroup Pointer to the PolyGroup structure
Description
This function adds a new Polygon to the given PolyGroup.

Return value
A pointer to the new Polygon, or NULL in case of an error.

See also
E3d_PolygonsAllocate, E3d_PolygonInit, E3d_PolygonInitAsTriangle

E3d_PolyGroupFreePolygons

Free the Polygons of a PolyGroup

Syntax
void E3d_PolyGroupFreePolygons(E3dPolyGroup* PPolyGroup)

Argument
E3dPolyGroup* PPolyGroup Pointer to the PolyGroup
Description
Frees all Polygons in the specified PolyGroup.

Return value
None.

See also
E3d_PolyGroupFreeTriangleStrips

E3d_PolyGroupFreeTriangleStrips

Free the TriangleStrips of a PolyGroup

Syntax
void E3d_PolyGroupFreeTriangleStrips(E3dPolyGroup* PPolyGroup)

Argument
E3dPolyGroup* PPolyGroup Pointer to the PolyGroup
Description
Frees the triangle strips in the specified PolyGroup.

Return value
None.

See also
E3d_PolyGroupFreePolygons

E3d_MeshPolyGroupArea

Calculate surface area of a PolyGroup

Syntax
E3dCoordinate E3d_MeshPolyGroupArea(const E3dMesh* PMesh, const E3dPolyGroup* PPolyGroup)

Arguments
const E3dMesh* PMesh The Mesh const E3dPolyGroup* PPolyGroup The PolyGroup
Description
This function computes the surface area of a PolyGroup.

Return value
None.

See also
E3d_RPolyGroupArea

E3d_MeshPolyGroupUpdateForDisplay

Update a PolyGroup of a Mesh for drawing

Syntax
void E3d_MeshPolyGroupUpdateForDisplay(E3dMesh* PMesh, E3dPolyGroup* PPolyGroup, const EUpdateFlags PFlags)

Arguments
E3dMesh* PMesh The Mesh to update const EUpdateFlags PFlags OR-ed together flags, telling what to update E3dPolyGroup* PPolyGroup The PolyGroup to update
Description
This function updates the given PolyGroup of the given Mesh for drawing. This is a platform-independent procedure that ensures that the given Mesh will be drawn correctly after changes to its components. Calling this function for a Geometry after change, with only the necessary flags set, helps EQUINOX-3D greatly improve performance by only updating things that really changed. For example, if the position of a few Vertices changed in a Mesh, use the E3duf_SHAPE flag bit.

Return value
None.
© 1992-2017 By Gabor Nagy