fastest 3D software for linux

Linux 3D
interactive ray-tracing

Index

 E3d_ModelResetTransforms
 E3d_ModelAppendObject
 E3d_ModelInsertObject
 E3d_ModelAddObject
 E3d_ModelGetIndexOfObject
 E3d_ModelRemoveObject
 E3d_ModelRemoveObjects
 E3d_ModelGetBoundingBox
 E3d_ModelGetTransformedBoundingBox
 E3d_ModelUnselectObjects


E3d_ModelResetTransforms

Reset transformation values of a Model

Syntax
void E3d_ModelResetTransforms(E3dModel* PModel)

Argument
E3dModel* PModel Pointer to the Model structure
Description
Resets the transformations of the Model, by calling E3d_TransformSetReset(), with PFreeTransformList = FALSE. Also loads an identity Matrix into LocalToWorldMatrix and NormalLocalToWorldMatrix and sets the Matrix_TimeStamp to E3d_GetTime().

Return value
None.

E3d_ModelAppendObject

Append an Object to a Model

Syntax
E3dObject* E3d_ModelAppendObject(E3dModel* PModel, E3dObject* PObject)

Arguments
E3dModel* PModel Pointer to the Model E3dObject* PObject Object to append
Description
This function adds the given Object to the list of Geometries on the given Model. E3dObject is the base-class for: - E3dGeometry - E3dLight - E3dCamera

Return value
PObject if all went well, NULL in case of an error.

E3d_ModelInsertObject

Insert an Object into a Model's Objects array before a given position

Syntax
E3dObject* E3d_ModelInsertObject(E3dModel* PModel, E3dObject* PObject, const EIndex PWhere)

Arguments
E3dModel* PModel Pointer to the Model E3dObject* PObject Object to append const EIndex PWhere Insert before this position
Description
This function adds the given Object to the list of Geometries on the given Model. E3dObject is the base-class for: - E3dGeometry - E3dLight - E3dCamera

Return value
PObject if all went well, NULL in case of an error.

E3d_ModelAddObject

Allocate a Geometry of the given type and add it to a Model

Syntax
E3dObject* E3d_ModelAddObject(E3dModel* PModel, E3dObjectClass* PClass)

Arguments
E3dModel* PModel Pointer to the Model E3dObjectClass* PClass The type of the new Object
Description
This function allocates, initializes a Geometry of the given type and adds it to the list of Objects on the given Model.

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

See also
E3d_ModelAppendObject

E3d_ModelGetIndexOfObject

See if a Model has the given Object

Syntax
EIndex E3d_ModelGetIndexOfObject(E3dModel* PModel, E3dObject* PObject)

Arguments
E3dModel* PModel Pointer to the Model E3dObject* PObject Pointer to the Object
Description
Checks if a Model has the given Object.

Return value
The index of LObject is in the Object list of PModel. If PObject is not in the list, returns -1

E3d_ModelRemoveObject

Remove Object from a Model

Syntax
void E3d_ModelRemoveObject(E3dModel* PModel, E3dObject* PObject)

Arguments
E3dModel* PModel Pointer to the Model E3dObject* PObject Pointer to the Object
Description
Removes LObject from the given Model's dynamically allocated Object list.

Return value
None.

E3d_ModelRemoveObjects

Free all Objects of a Model

Syntax
void E3d_ModelRemoveObjects(E3dModel* PModel)

Argument
E3dModel* PModel Pointer to the E3dModel structure
Description
Frees all the Objects of PModel.

Return value
None.

See also
E3d_ModelAppendObject, E3d_ModelAddObject, E3d_ModelRemoveObject

E3d_ModelGetBoundingBox

Compute the bounding box of a Model in its local coordinate system

Syntax
EBool E3d_ModelGetBoundingBox(E3dModel* PModel, E3dCoord3* PBBMin, E3dCoord3* PBBMax, unsigned int PWhatToInclude)

Arguments
E3dModel* PModel Pointer to the Model E3dCoord3* PBBMin First corner of bounding box E3dCoord3* PBBMax Opposite corner of bounding box unsigned int PWhatToInclude Flags to indicate what components to consider for the BBox
Description
Computes the bounding box of a Model and returns it in PBBMin and PBBMax. PWhatToInclude may be E3dBB_SELECTED_GEOMETRY or E3dBB_ALL.

Return value
TRUE if there is a valid bounding box, FALSE otherwise (e.g. the Model has no Geometries).

E3d_ModelGetTransformedBoundingBox

Compute the bounding box of a Model in a given coordinate system

Syntax
EBool E3d_ModelGetTransformedBoundingBox(E3dModel* PModel, E3dMatrix PMatrix, E3dCoord3* PBBMin, E3dCoord3* PBBMax, unsigned int PWhatToInclude)

Arguments
E3dModel* PModel Pointer to the Model structure E3dMatrix PMatrix Matrix to transform the Geometry with E3dCoord3* PBBMin First corner of bounding box E3dCoord3* PBBMax Opposite corner of bounding box unsigned int PWhatToInclude OR-ed flags of what components to consider for the BBox
Description
Computes the bounding box of a Model in a coordinate system defined by a Matrix and returns it in PBBMin and PBBMax.

Return value
TRUE if there is a valid bounding box, FALSE if there isn't one (e.g. the Model has no geometry attached to it).

E3d_ModelUnselectObjects

Unselect Objects of a Model

Syntax
EChangeFlags E3d_ModelUnselectObjects(E3dScene* PScene, E3dModel* PModel, E3dObject** PSkipTheseObjects, const EIndex PSkipTheseObjects_Count, const int PFlags, const EBool PNotify)

Arguments
E3dModel* PModel Pointer to the E3dModel E3dObject** PSkipTheseObjects Array of pointers to E3dObjects const int PFlags OR-ed flags of E3dSF_OBJECTS, E3dSF_POLYGROUPS, E3dSF_POLYGONS, E3dSF_EDGES, E3dSF_VERTICES, E3dSF_SPLINE_SEGMENTS const EBool PNotify Call callbacks for the Objects
Description
Unselect Objects and components of Objects instantiated on a Model.

Return value
E3dChg* flags, indicating what changed
© 1992-2017 By Gabor Nagy