...
Name | Description | ||
---|---|---|---|
setPointer | Internal use. | ||
Cobject#freefree | Destroys the object. | ||
getName | Gets object name. | ||
setName | Sets object name. | ||
isMesh | Checks whether the object is a mesh. | ||
isInstance | Checks whether the object is an instance. | ||
getInstanced | Gets instance's parent. | ||
isRFRK | Checks whether the object is a RFRK object. | ||
getRFRKParameters | Gets ReaFlow RenderKit parameters. | ||
setRFRKParameters | Sets RealFlow ReaFlow RenderKit parameters. | ||
getReferencedScenePath | Gets the scene file referenced by this object. | ||
setReferencedScenePath | Sets the scene file referenced by this object. | ||
getReferencedSceneMaterial | Gets the material of an specific object inside the referenced scene. | ||
setReferencedSceneMaterial | Sets the material of an specific object inside the referenced scene. | ||
getReferencedOverrideFlags | Get the override policy for visibility flags. | ||
setReferencedOverrideFlags | Set the override policy for visibility flags. | ||
mergeMeshes | Merges an array of meshes into a single mesh. Target object must not be included. | ||
getParent | Gets the parent object in the hierarchy. | ||
setParent | Sets the parent object in the hierarchy. | ||
getUuid | Unique user ID that can be used for custom purposes. | ||
setUuid | Sets the unique user ID. | ||
getMaterial | Gets the material applied. | ||
setMaterial | Sets the object material. | ||
setProperties | Sets the caustics properties of the object. | ||
Gets all the extern dependencies of the object (rfrk files, etc). | |||
Geometry | |||
getNumVertexes | Gets number of vertexes of the object. | ||
getNumTriangles | Gets number of triangles of the object. | ||
getNumNormals | Gets number of the normals of the object. | ||
getNumPositionsPerVertex | Gets number of positions per vertex of the object. | ||
getNumChannelsUVW | Gets number of UVW channels of the object. | ||
addChannelUVW | Adds an UVW channel to the object. | ||
generateSphericalUVW | Generates spherical UVW coordinates. | ||
generateCylindricalUVW | Generates cylindrical UVW coordinates. | ||
generateCubicUVW | Generates cubic UVW coordinates. | ||
generatePlanarUVW | Generates planar UVW coordinates. | ||
getVertex | Gets vertex by index. | ||
setVertex | Sets vertex by index. | ||
getNormal | Gets normal by index. | ||
setNormal | Sets normal by index. | ||
getTriangle | Gets triangle (vertexes and normals) by index. | ||
setTriangle | Sets triangle (vertexes and normals) by index. | ||
getTriangleGroup | Gets triangle group by index. | ||
setTriangleGroup | Sets triangle group. | ||
getTriangleUVW | Gets triangle UVW coordinates. | ||
setTriangleUVW | Sets triangle UVW coordinantes. | ||
getTriangleMaterial | Gets triangle material. | ||
setTriangleMaterial | Sets triangle material. | ||
getGroupMaterial | Gets material of a group of triangles. | ||
setGroupMaterial | Sets material of a group of triangles. | ||
getBaseAndPivot | Gets base and pivot axes of the object. | ||
setBaseAndPivot | Sets base and pivot axes of the object. | ||
getWorldTransform | Return the world transform of the object. | ||
getTransformSubstepsCount | Return the number of substeps used for defining Base and Pivot motion blur. | ||
getTransfrormStepInfoByIndex | Return transform information( base, pivot and time) for the given index. | ||
getPosition | Used by Maxwell Studio (not needed for rendering). | ||
setPosition | Used by Maxwell Studio (not needed for rendering). | ||
getRotation | Used by Maxwell Studio (not needed for rendering). | ||
setRotation | Used by Maxwell Studio (not needed for rendering). | ||
getScale | Used by Maxwell Studio (not needed for rendering). | ||
setScale | Used by Maxwell Studio (not needed for rendering). | ||
getShear | Used by Maxwell Studio (not needed for rendering). | ||
setShear | Used by Maxwell Studio (not needed for rendering). | ||
getPivotPosition | Used by Maxwell Studio (not needed for rendering). | ||
setPivotPosition | Used by Maxwell Studio (not needed for rendering). | ||
getPivotRotation | Used by Maxwell Studio (not needed for rendering). | ||
setPivotRotation | Used by Maxwell Studio (not needed for rendering). | ||
isPosRotScaleInitialized | Checks if the methods above have been used for the given object. | ||
cleanGeometry | Optional routine that removes degenerated triangles, repeated/unused vertex and normals. | ||
Display | |||
getHide | Gets "hide" status of the object. | ||
setHide | Sets "hide" status of the object. | ||
getHideToCamera | Gets "hide to camera" status of the object. | ||
setHideToCamera | Sets "hide to camera" status of the object. | ||
getHideToReflectionsRefractions | Gets "hide to reflections and refractions" status of the object. | ||
setHideToReflectionsRefractions | Sets "hide to reflections and refractions" status of the object. | ||
getHideToGI | Gets "hide to global illumination" status of the object. | ||
setHideToGI | Gets "hide to global illumination" status of the object. | ||
isExcludedOfCutPlanes | Gets "excluded of cut planes" status of the object. | ||
excludeOfCutPlanes | Sets "excluded of cut planes" status of the object. | ||
getProxyDisplayPointsgetReferenceDisplayPoints | This function is useful to display a mesh on a viewport. | ||
setColorID | Sets the color used by this object in the Object ID render channel. | ||
getColorID | Gets the color used by this object in the Object ID render channel. | ||
setSubdivisionLevel | Sets the subdivision level of the mesh. | ||
getSubdivisionLevel | Gets the subdivision level of the mesh. | ||
setGeometryDirty | Set the geometry "dirty". | ||
getUserData | Internal use. | ||
setUserData | Internal use. | ||
getVertexesBuffer | Internal use. | ||
getNormalsBuffer | Internal use. | ||
getTrianglesBuffer | Internal use. | ||
initializeMesh | Clean the mesh and allocates memory for vertexes, normals, triangles and motion blur. | ||
resizeMesh | Reinitializes all the basic geometry and UV arrays. | ||
generateCustomUVW | |||
getUVWChannelProperties | Gets UVW channel properties. | ||
getGlobalXform | |||
getGlobalNormalsXform | |||
getInverseGlobalXform | |||
getInverseGlobalNormalsXform | |||
isGeometryLoader | Checks if the object was created by a geometry loader extension. | ||
isGeometryProcedural | Checks if the object was created by a procedural geometry extension. | ||
hasGeometryModifiers | applyGeometryModifierExtension | --TODO--Checks if the object has geometry modifiers (extensions). | |
applyGeometryModifierExtension | |||
cleanAllGeometryModifierExtensions | Clean all geometry modifier extensions applyed to the object. | ||
getGeometryLoaderExtensionParams | --TODO-- | ||
getGeometryProceturalExtensionParams | --TODO-- | ||
getGeometryModifierExtensionNumber | |||
getGeometryModifierExtensionParamsAtIndex | --TODO-- | ||
getGeometryModifierExtensionsNumber | Gets the number of geometry modifier extensions applied to the object. | ||
getGeometryModifierExtensionParamsAtIndex |
Inherited methods
Anchor | ||||
---|---|---|---|---|
|
free
Destroys the object.
...
Language | Syntax |
---|---|
C++ | Cmaxwell::Cobject getInstanced() |
Python | CmaxwellObject getInstanced() |
Return value
Cmaxwell::Cobject reference to the instanced object. Null object if the object is not an instance, (Cmaxwell::Cobject::isNull() == true).
Anchor | ||||
---|---|---|---|---|
|
...
Language | Syntax |
---|---|
C++ | byte getReferencedSceneMaterial( const char* objectName, Cmaxwell::Cmaterial& material ) |
Python | CmaxwellMaterial getReferencedSceneMaterial( str objectName ) |
...
Language | Syntax |
---|---|
C++ | byte setReferencedSceneMaterial( const char* objectName, Cmaxwell::Cmaterial material ) |
Python | int setReferencedSceneMaterial( str objectName, Cmaterial CmaxwellMaterial material ) |
Return value
0 = Error setting reference scene file.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
mergeMeshes
...
getReferencedOverrideFlags
Gets the override policy for visibility flags. Flags are described in OVERRIDE_REFERENCE_FLAGS in maxwellenums.h.
Language | Syntax |
---|---|
C++ | byte |
getReferencedOverrideFlags( byte& flags ) | |
Python | |
(int flags, int success) getReferencedOverrideFlags() |
Return value
C++
0 = Error
...
1 = Success
...
Examples
...
...
language | javascript |
---|---|
title | Python |
...
meshes = []
meshes.append( scene.getObject("sphere") );
meshes.append( scene.getObject("cube") );
scene.getObject("cubesphere").mergeMeshes( meshes ); // "cubesphere must exists"
scene.getObject("sphere").free();
scene.getObject("cube").free();
...
getParent
Gets the parent object in the hierarchy.
...
Python
Tuple containing the "override reference" flags of the object, and the function success value.
Anchor | ||||
---|---|---|---|---|
|
setReferencedOverrideFlags
Sets the override policy for visibility flags. Flags are described in OVERRIDE_REFERENCE_FLAGS in maxwellenums.h.
Language | Syntax |
---|---|
C++ | byte getParent( Cmaxwell::Cobject& parent setReferencedOverrideFlags( byte& flags ) |
Python | CmaxwellObject getParentint setReferencedOverrideFlags( int flags ) |
Return value
C++
0 = Error
...
1 = Success
...
Python
Anchor |
---|
...
| ||||
|
setParent
...
mergeMeshes
Merges an array of meshes into a single mesh. The original meshes are not removed (it can be done later calling Cmaxwell::Cobject::free() ). The target object must not be included in the mesh list, so target geometry (if exists) will be erased.
Language | Syntax |
---|---|
C++ | byte setParentmergeMeshes( const Cmaxwell::Cobject parent * pMeshes, dword nMeshes ) |
Python | int setParentmergeMeshes( CmaxwellObject parent [] meshes ) |
Return value
0 = Error setting parent objectreference scene file.
1 = Success.anchor
Examples
...
Code Block |
---|
...
|
getUuid
Unique user ID that can be used for custom purposes.
Language | Syntax |
---|---|
C++ | const char* getUuid() |
Python | str getUuid() |
...
setUuid
Sets the unique user ID.
Language | Syntax |
---|---|
C++ | byte setUuid( const char* pUuid ) |
Python | int setUuid( str uuid ) |
Return value
0 = Error setting unique user ID.
1 = Success.
...
getMaterial
Gets the material applied.
Language | Syntax |
---|---|
C++ | byte getMaterial( Cmaxwell::Cmaterial& parent ) |
Python | CmaxwellMaterial getMaterial() |
Return value
C++
0 = Error getting object material.
1 = Success.
Python
Object material.
...
setMaterial
...
| |||
meshes = []
meshes.append( scene.getObject("sphere") );
meshes.append( scene.getObject("cube") );
scene.getObject("cubesphere").mergeMeshes( meshes ); // "cubesphere must exists"
scene.getObject("sphere").free();
scene.getObject("cube").free(); |
Anchor | ||||
---|---|---|---|---|
|
getParent
Gets the parent object in the hierarchy.
Language | Syntax |
---|---|
C++ | byte setMaterialgetParent( Cmaxwell::Cmaterial material Cobject& parent ) |
Python | int setMaterialCmaxwellObject getParent( CmaxwellMaterial material ) |
Return value
C++
0 = Error
...
getting parent object
...
.
1 = Success.
Python
Parent object.
Anchor | ||||
---|---|---|---|---|
|
...
setParent
Sets the caustics properties of the object. 1 enables, 0 disables.parent object in the hierarchy.
Language | Syntax |
---|---|
C++ | byte setProperties( int doDirectCausticsReflection, int doDirectCausticsRefraction, int doIndirectCausticsReflection, int doIndirectCausticsRefraction setParent( Cmaxwell::Cobject parent ) |
Python | int setProperties( byte doDirectCausticsReflection, byte doDirectCausticsRefraction, byte doIndirectCausticsReflection, byte doIndirectCausticsRefraction setParent( CmaxwellObject parent ) |
Return value
0 = Error setting parent object material.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getDependencies
...
getUuid
Unique user ID that can be used for custom purposes.
Language | Syntax |
---|---|
C++ | byte getDependencies( dword& numDependencies, char** & paths, const bool& searchInsideProxy = true const char* getUuid() |
Python | str [] getDependencies( bool searchInsideProxy = true getUuid() |
...
Anchor |
---|
...
|
...
|
...
If true, the function search for dependencies also in the referenced proxy object if exists. searchInsideProxy is true by default.
Return value
C++
0 = Error getting dependency paths.
1 = Success.
Python
List of str containing the dependency paths.
...
getNumVertexes
...
setUuid
Sets the unique user ID.
Language | Syntax |
---|---|
C++ | byte setUuid( const char* pUuid ) |
Python | int setUuid( str uuid ) |
Return value
0 = Error setting unique user ID.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getMaterial
Gets the material applied.
Language | Syntax |
---|---|
C++ | byte getNumVertexes( dword& nVertexes getMaterial( Cmaxwell::Cmaterial& parent ) |
Python | int getNumVertexesCmaxwellMaterial getMaterial() |
Return value
C++
0 = Error getting number of vertexesobject material.
1 = Success.
Python
Number of vertexesObject material.
Anchor | ||||
---|---|---|---|---|
|
getNumTriangles
...
setMaterial
Sets the object material.
Language | Syntax |
---|---|
C++ | byte getNumTriangles( dword& nTriangles setMaterial( Cmaxwell::Cmaterial material ) |
Python | int getNumTrianglessetMaterial( CmaxwellMaterial material ) |
Return value
C++
...
0 = Error
...
setting object material.
1 = Success
...
Python
...
.
Anchor | ||||
---|---|---|---|---|
|
getNumNormals
...
setProperties
Sets the caustics properties of the object. 1 enables, 0 disables.
Language | Syntax |
---|---|
C++ | byte getNumNormals( dword& nNormals ) |
Python | int getNumNormals() |
Return value
C++
...
setProperties( int doDirectCausticsReflection, int doDirectCausticsRefraction, int doIndirectCausticsReflection, int doIndirectCausticsRefraction ) | |
Python | int setProperties( byte doDirectCausticsReflection, byte doDirectCausticsRefraction, byte doIndirectCausticsReflection, byte doIndirectCausticsRefraction ) |
Return value
0 = Error setting object material.
1 = Success.
...
Python
...
Anchor | ||||
---|---|---|---|---|
|
getNumPositionsPerVertex
...
getDependencies
Returns an array of strings with all the extern dependencies of the object (rfrk files, etc).
Language | Syntax |
---|---|
C++ | byte getNumPositionsPerVertexgetDependencies( dword& nPositions & numDependencies, char** & paths, const bool& searchInsideProxy = true ) |
Python | int getNumPositionsPerVertex(str[] getDependencies( bool searchInsideProxy = true ) |
Return value
C++
0 = Error getting number of positions per vertex.
1 = Success.
Python
Number of positions per vertex.
...
getNumChannelsUVW
Gets number of UVW channels of the object.
Language | Syntax |
---|---|
C++ | byte getNumChannelsUVW( dword& nChannelsUVW ) |
Python | int getNumChannelsUVW() |
Return value
C++
...
Parameters
Type | Name | In/Out | Description |
---|---|---|---|
dword& | numDependencies | out | (C++ only) Number of dependencies returned. |
char**& | paths | out | (C++ onlu) String array (size = numDependencies) containing all the dependencies requested. |
const bool& | searchIndideProxy | in | If true, the function search for dependencies also in the referenced proxy objects if exists. searchInsideProxy is true by default. |
Return value
C++
0 = Error getting dependency paths.
1 = Success.
Python
Number of UVW channelsList of str containing the dependency paths.
Anchor | ||||
---|---|---|---|---|
|
addChannelUVW
...
getNumVertexes
Gets number of vertexes of the object.
Language | Syntax |
---|---|
C++ | byte addChannelUVWgetNumVertexes( dword& index, byte id = 0xFF )nVertexes ) |
Python | int addChannelUVWgetNumVertexes( byte id = 0xFF ) |
Return value
C++
0 = Error adding UVW channelgetting number of vertexes.
1 = Success.
Python
Index Number of the new channelvertexes.
Anchor | ||||
---|---|---|---|---|
|
generateSphericalUVW
...
getNumTriangles
Gets number of triangles of the object.
Language | Syntax |
---|---|
C++ | byte generateSphericalUVWgetNumTriangles( dword& iChannel, Cbase& projectorBase, real& startLatitude, real& endLatitude, real& startLongitude, real& endLongitude nTriangles ) |
Python | int generateSphericalUVW( int iChannel, Cbase projectorBase, float startLatitude, float endLatitude, float startLongitude, float endLongitude getNumTriangles() |
Return value
C++
0 = Error
...
getting number of triangles.
1 = Success.
Python
Number of triangles.
Anchor | ||||
---|---|---|---|---|
|
generateCylindricalUVW
...
getNumNormals
Gets number of normals of the object.
Language | Syntax |
---|---|
C++ | byte generateCylindricalUVWgetNumNormals( dword& iChannel, Cbase& projectorBase, real& startAngle, real& endAngle nNormals ) |
Python | int generateCylindricalUVW( int iChannel, Cbase projectorBase, float startAngle, float endAngle getNumNormals() |
Return value
C++
0 = Error
...
getting number of normals.
1 = Success.
...
generateCubicUVW
Generates cubic UVW coordinates.
...
Python
Number of normals.
Anchor | ||||
---|---|---|---|---|
|
getNumPositionsPerVertex
Gets number of positions per vertex of the object.
Language | Syntax |
---|---|
C++ | byte generateCubicUVWgetNumPositionsPerVertex( dword& iChannel, Cbase& projectorBase, bool mirrorBackFaces = false nPositions ) |
Python | int generateCubicUVW( int iChannel, Cbase projectorBase, bool mirrorBackFaces = False getNumPositionsPerVertex() |
Return value
C++
0 = Error
...
getting number of positions per vertex.
1 = Success.
Python
Number of positions per vertex.
Anchor | ||||
---|---|---|---|---|
|
generatePlanarUVW
...
getNumChannelsUVW
Gets number of UVW channels of the object.
Language | Syntax |
---|---|
C++ | byte generatePlanarUVWgetNumChannelsUVW( dword& iChannel, Cbase& projectorBase nChannelsUVW ) |
Python | int generatePlanarUVW( int iChannel, Cbase projectorBase ) |
...
getNumChannelsUVW() |
Return value
C++
0 = Error
...
getting number UVW
...
channels.
1 = Success.
Python
Number of UVW channels.
Anchor | ||||
---|---|---|---|---|
|
getVertex
...
addChannelUVW
Adds an UVW channel to the object.
Language | Syntax |
---|---|
C++ | byte getVertexaddChannelUVW( dword iVertex, dword iPosition, Cpoint& point & index, byte id = 0xFF ) |
Python | Cvector getVertex( int iVertex, int iPosition int addChannelUVW( byte id = 0xFF ) |
Return value
C++
0 = Error getting the vertexadding UVW channel.
1 = Success.
Python
Cvector containing the vertex requestedIndex of the new channel.
Anchor | ||||
---|---|---|---|---|
|
setVertex
...
generateSphericalUVW
Generates spherical UVW coordinates.
Language | Syntax |
---|---|
C++ | byte setVertexgenerateSphericalUVW( dword iVertex, dword iPosition, const Cpoint& point & iChannel, CbaseT& projectorBase, real& startLatitude, real& endLatitude, real& startLongitude, real& endLongitude ) |
Python | int setVertexgenerateSphericalUVW( int iVertex, int iPosition, Cvector point iChannel, Cbase projectorBase, float startLatitude, float endLatitude, float startLongitude, float endLongitude ) |
Return value
0 = Error setting the vertexgenerating spherical UVW coordinaltes.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getNormal
...
generateCylindricalUVW
Generates cylindrical UVW coordinates.
Language | Syntax |
---|---|
C++ | byte getNormalgenerateCylindricalUVW( dword iVertex, dword iPosition, Cvector &normal )& iChannel, Cbase& projectorBase, real& startAngle, real& endAngle ) |
Python | Cvector getNormalint generateCylindricalUVW( int iVertex, int iPosition iChannel, Cbase projectorBase, float startAngle, float endAngle ) |
Return value
...
C++
0 = Error
...
generating cylindrical UVW coordinaltes.
1 = Success.
...
Python
...
Anchor | ||||
---|---|---|---|---|
|
setNormal
...
generateCubicUVW
Generates cubic UVW coordinates.
Language | Syntax |
---|---|
C++ | byte setNormalgenerateCubicUVW( dword iNormal, dword iPosition, const Cvector& normal & iChannel, Cbase& projectorBase, bool mirrorBackFaces = false ) |
Python | int setNormalgenerateCubicUVW( int iNormal, int iPosition, Cvector normal iChannel, Cbase projectorBase, bool mirrorBackFaces = False ) |
Return value
0 = Error setting the normalgenerating cubic UVW coordinaltes.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getTriangle
...
generatePlanarUVW
Generates planar UVW coordinates.
Language | Syntax |
---|---|
C++ | byte getTrianglegeneratePlanarUVW( dword iTriangle, dword& iVertex1iChannel, dword &iVertex2, dword &iVertex3, dword &iNormal1, dword &iNormal2, dword &iNormal3 Cbase& projectorBase ) |
Python | dict getTriangleint generatePlanarUVW( int iTriangle iChannel, Cbase projectorBase ) |
Return value
C++
...
0 = Error
...
generating planar UVW coordinaltes.
1 = Success.
Python
Dictionary containing the triangle data ("iVertex1", "iVertex2", "iVertex3", "iNormal1", "iNormal2", "iNormal3").
...
setTriangle
Sets triangle (vertexes and normals)
Anchor | ||||
---|---|---|---|---|
|
getVertex
Gets vertex by index.
Language | Syntax |
---|---|
C++ | byte setTrianglegetVertex( dword iTriangleiVertex, dword iVertex1, dword iVertex2, dword iVertex3, dword iNormal1, dword iNormal2, dword iNormal3 iPosition, Cpoint& point ) |
Python | int setTriangleCvector getVertex( int iTriangleiVertex, int iVertex1, int iVertex2, int iVertex3, int iNormal1, int iNormal2, int iNormal3 iPosition ) |
Return value
C++
0 = Error
...
getting the
...
vertex.
1 = Success.
Python
Cvector containing the vertex requested.
Anchor | ||||
---|---|---|---|---|
|
getTriangleGroup
...
setVertex
Sets vertex by index.
Language | Syntax |
---|---|
C++ | byte getTriangleGroupsetVertex( dword iTriangleiVertex, dword iPosition, const Cpoint& idGroup point ) |
Python | int getTriangleGroupsetVertex( int iTriangle iVertex, int iPosition, Cvector point ) |
Return value
C++
...
0 = Error
...
setting the
...
vertex.
1 = Success.
...
Python
...
Anchor | ||||
---|---|---|---|---|
|
setTriangleGroup
...
getNormal
Gets normal by index.
Language | Syntax |
---|---|
C++ | byte setTriangleGroupgetNormal( dword iTriangleiVertex, dword idGroup iPosition, Cvector&normal ) |
Python | int setTriangleGroup( int iTriangleCvector getNormal( int iVertex, int idGroup iPosition ) |
Return value
C++
0 = Error
...
getting the
...
normal.
1 = Success.
Python
Cvector containing the normal requested.
Anchor | ||||
---|---|---|---|---|
|
getTriangleUVW
...
setNormal
Sets normal by index.
Language | Syntax |
---|---|
C++ | byte getTriangleUVWsetNormal( dword iTriangleiNormal, dword iChannelIDiPosition, float& u1, float& v1, float& w1, float& u2, float& v2, float& w2, float& u3, float& v3, float& w3 const Cvector& normal ) |
Python | dict getTriangleUVWint setNormal( int iTriangleiNormal, int iChannelID iPosition, Cvector normal ) |
Return value
...
C++
0 = Error
...
setting the
...
normal.
1 = Success.
Python
Dictionary containing the triangle UVW coordinates ('u1','v1,'w1,'u2','v2','w2','u2','v2','w3').
...
setTriangleUVW
Sets triangle UVW coordinantes.
Language | Syntax |
---|---|
C++ | byte setTriangleUVW( dword iTriangle, dword iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3 ) |
Python | int setTriangleUVW( int iTriangle, int iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u2, float v2, float w3 ) |
Return value
0 = Error setting the triangle UVW coordinates.
1 = Success.
...
getTriangleMaterial
Gets triangle material
Anchor | ||||
---|---|---|---|---|
|
getTriangle
Gets triangle (vertexes and normals) by index.
Language | Syntax |
---|---|
C++ | byte getTriangle( dword iTriangle, dword &iVertex1, dword &iVertex2, dword &iVertex3, dword &iNormal1, dword &iNormal2, dword &iNormal3 ) |
Python | (int iVertex1, int iVertex2, int iVertex3, int iNormal1, int iNormal2, int iNormal3) getTriangle( int iTriangle ) |
Return value
C++
0 = Error getting the triangle.
1 = Success.
Python
Tuple containing the triangle data.
Anchor | ||||
---|---|---|---|---|
|
setTriangle
Sets triangle (vertexes and normals) by index.
Language | Syntax |
---|---|
C++ | byte setTriangle( dword iTriangle, dword iVertex1, dword iVertex2, dword iVertex3, dword iNormal1, dword iNormal2, dword iNormal3 ) |
Python | int setTriangle( int iTriangle, int iVertex1, int iVertex2, int iVertex3, int iNormal1, int iNormal2, int iNormal3 ) |
Return value
0 = Error setting the triangle.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getTriangleGroup
Gets triangle group by index.
Language | Syntax |
---|---|
C++ | byte getTriangleGroup( dword iTriangle, dword& idGroup ) |
Python | int getTriangleGroup( int iTriangle ) |
Return value
C++
0 = Error getting the triangle group.
1 = Success.
Python
Triangle group ID.
Anchor | ||||
---|---|---|---|---|
|
setTriangleGroup
Sets group that's the triangle belongs to.
Language | Syntax |
---|---|
C++ | byte setTriangleGroup( dword iTriangle, dword idGroup ) |
Python | int setTriangleGroup( int iTriangle, int idGroup ) |
Return value
0 = Error setting the triangle group.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getTriangleUVW
Gets triangle UVW coordinates.
Language | Syntax |
---|---|
C++ | byte getTriangleUVW( dword iTriangle, dword iChannelID, float& u1, float& v1, float& w1, float& u2, float& v2, float& w2, float& u3, float& v3, float& w3 ) |
Python | (float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3) getTriangleUVW( int iTriangle, int iChannelID ) |
Return value
C++
0 = Error getting the triangle UVW coordinates.
1 = Success.
Python
Tuple containing the triangle UVW coordinates.
Anchor | ||||
---|---|---|---|---|
|
setTriangleUVW
Sets triangle UVW coordinantes.
Language | Syntax |
---|---|
C++ | byte setTriangleUVW( dword iTriangle, dword iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u3, float v3, float w3 ) |
Python | int setTriangleUVW( int iTriangle, int iChannelID, float u1, float v1, float w1, float u2, float v2, float w2, float u2, float v2, float w3 ) |
Return value
0 = Error setting the triangle UVW coordinates.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getTriangleMaterial
Gets triangle material.
Language | Syntax |
---|---|
C++ | byte getTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial& material ) |
Python | CmaxwellMaterial getTriangleMaterial( int iTriangle ) |
Return value
C++
0 = Error getting triangle material.
1 = Success.
Python
Triangle material.
Anchor | ||||
---|---|---|---|---|
|
setTriangleMaterial
Sets the triangle material.
Language | Syntax |
---|---|
C++ | byte setTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial material ) |
Python | int setTriangleMaterial( int iTriangle, CmaxwellMaterial material ) |
Return value
0 = Error setting triangle material.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getGroupMaterial
Gets material of a group of triangles.
Language | Syntax |
---|---|
C++ | byte getGroupMaterial( dword iGroup, Cmaxwell::Cmaterial& material ) |
Python | CmaxwellMaterial getGroupMaterial( int iGroup ) |
Return value
C++
0 = Error getting triangle group material.
1 = Success.
Python
Triangle group material.
Anchor | ||||
---|---|---|---|---|
|
setGroupMaterial
Sets material of a group of triangles.
Language | Syntax |
---|---|
C++ | byte setGroupMaterial( dword iGroup, Cmaxwell::Cmaterial material ) |
Python | int setGroupMaterial( int iGroup, CmaxwellMaterial material ) |
Return value
0 = Error setting triangle group material.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
setBaseAndPivot
Sets base and pivot axes of the object.
Language | Syntax |
---|---|
C++ | byte setBaseAndPivot( Cbase base, Cbase pivot, real substepTime = 0.0 ) |
Python | int setBaseAndPivot( Cbase base, Cbase pivot, float substepTime = 0.0 ) |
Return value
0 = Error setting object base and pivot.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getBaseAndPivot
Gets base and pivot axes of the object.
Language | Syntax |
---|---|
C++ | byte getBaseAndPivot( Cbase& base, Cbase& pivot, const real substepTime = 0.0 ) |
Python | (Cbase base, Cbase pivot) getBaseAndPivot( float substepTime = 0.0 ) |
Return value
C++
0 = Error getting object base and pivot.
1 = Success.
Python
Tuple containing Cbase base and Cbase pivot axes (base,pivot).
Anchor | ||||
---|---|---|---|---|
|
getWorldTransform
Returns the world transform of the object taking into account base and pivot of all its parents..
Return value
C++
0 = Error getting world transform of the object.
1 = Success.
Python
Object world transform.
Anchor | ||||
---|---|---|---|---|
|
getTransfromSubstepsCount
Return the number of substeps used for defining Base and Pivot motion blur.
Language | Syntax |
---|---|
C++ | dword getTransformSubstepsCount() |
Python | int getTransformSubstepsCount() |
Anchor | ||||
---|---|---|---|---|
|
getTransformStepInfoByIndex
Return transform information( base, pivot and time) for the given index.
Language | Syntax |
---|---|
C++ | byte getTransformStepInfoByIndex( Cbase& base, Cbase& pivot, real& time, const dword index ) |
Python | (Cbase base, Cbase pivot, float time) getTransformStepInfoByIndex( int index ) |
Return value
C++
0 = Error getting transform information of the object.
1 = Success.
Python
Tuple containing transform information.
Anchor | ||||
---|---|---|---|---|
|
isPosRotScaleInitialized
Checks if any of the following methods have been used for the object: setPosition, setRotation, setScale, setShear, setPivotPosition and setPivotRotation. The correct way to transform the object is through the setBaseAndPivot method.
Language | Syntax |
---|---|
C++ | byte isPosRotScaleInitialized( bool& init ) |
Python | bool isPosRotScaleInitialized() |
Return value
C++
0 = Error getting object transformed for Maxwell Studio.
1 = Success.
Python
True = object initialized using setPosition, setRotation, setScale, setShear, setPivotPosition and/or setPivotRotation (methods used for Maxwell Studio, not for rendering.
Anchor | ||||
---|---|---|---|---|
|
cleanGeometry
Optional routine that removes degenerated triangles, repeated/unused vertex and normals. This function is automatically called inside the writeMXS method. It is not needed to call it except in scenarios like the interactive engine.
Language | Syntax |
---|---|
C++ | byte cleanGeometry() |
Python | int cleanGeometry() |
Return value
0 = Error cleaning geometry.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getHide
Gets "hide" status of the object.
Language | Syntax |
---|---|
C++ | byte getHide( bool& hide ) |
Python | bool getHide() |
Return value
C++
0 = Error getting "hide" status.
1 = Success.
Python
True = object is hidden.
False = object is not hidden.
Anchor | ||||
---|---|---|---|---|
|
setHide
Sets "hide" status of the object.
Language | Syntax |
---|---|
C++ | byte getTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial& material setHide( bool hide ) |
Python | CmaxwellMaterial getTriangleMaterial( int iTriangle int setHide( bool hide ) |
Return value
C++
...
0 = Error
...
setting "hide" state.
1 = Success
...
Python
...
.
Anchor | ||||
---|---|---|---|---|
|
setTriangleMaterial
...
getHideToCamera
Gets "hide to camera" status of the object.
Language | Syntax |
---|---|
C++ | byte setTriangleMaterial( dword iTriangle, Cmaxwell::Cmaterial material getHideToCamera( bool& hide ) |
Python | int setTriangleMaterial( int iTriangle, CmaxwellMaterial material bool getHide() |
Return value
C++
0 = Error
...
getting "hide to camera" status.
1 = Success.
Python
True = object is hidden to camera.
False = object is not hidden to camera.
Anchor | ||||
---|---|---|---|---|
|
getGroupMaterial
...
setHideToCamera
Sets "hide to camera" status of the object.
Language | Syntax |
---|---|
C++ | byte getGroupMaterial( dword iGroup, Cmaxwell::Cmaterial& material setHideToCamera( bool hide ) |
Python | CmaxwellMaterial getGroupMaterial( int iGroup int setHideToCamera( bool hide ) |
Return value
C++
...
0 = Error setting "hide to camera" state.
1 = Success.
Python
Triangle group material.
Anchor | ||||
---|---|---|---|---|
|
setGroupMaterial
...
getHideToReflectionsRefractions
Gets "hide to reflections and refractions" status of the object.
Language | Syntax |
---|---|
C++ | byte setGroupMaterial( dword iGroup, Cmaxwell::Cmaterial material getHideToReflectionsRefractions( bool& hide ) |
Python | int setGroupMaterial( int iGroup, CmaxwellMaterial material bool getHideToReflectionsRefractions() |
Return value
C++
0 = Error
...
getting "hide to reflections and refractions" status.
1 = Success.
Python
True = object is hidden to reflections and refractions.
False = object is not hidden to reflections and refractions.
Anchor | ||||
---|---|---|---|---|
|
...
setHideToReflectionsRefractions
Sets base and pivot axes "hide to reflections and refractions" status of the object.
Language | Syntax |
---|---|
C++ | byte setBaseAndPivot( Cbase base, Cbase pivot, real substepTime = 0.0 setHideToReflectionsRefractions( bool hide ) |
Python | int setBaseAndPivot( Cbase base, Cbase pivot, float substepTime = 0.0 setHideToReflectionsRefractions( bool hide ) |
Return value
0 = Error setting object base and pivot"hide to reflections and refractions" state.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
...
getHideToGI
Gets base and pivot axes "hide to global illumination" status of the object.
Language | Syntax |
---|---|
C++ | byte getBaseAndPivotgetHideToGI( Cbase& base, Cbase& pivot, const real substepTime = 0.0 bool& hide ) |
Python | tuple getBaseAndPivot( float substepTime = 0.0 bool getHideToGI() |
Return value
C++
0 = Error getting object base and pivot"hide to global illumination" status.
1 = Success.
Python
Object base and pivot axesTrue = object is hidden to global illumination.
False = object is not hidden to global illumination.
Anchor | ||||
---|---|---|---|---|
|
getWorldTransform
...
setHideToGI
Sets "hide to global Illumination" status of the object.
Language | Syntax |
---|---|
C++ | byte getWorldTransform( Cbase& base setHideToGI( bool hide ) |
Python | Cbase getWorldTransformint setHideToGI( bool hide ) |
Return value
C++
...
0 = Error
...
setting "hide to global illumination" state.
1 = Success.
Python
Object world transform.
...
getTransfromSubstepsCount
Return the number of substeps used for defining Base and Pivot motion blur.
Language | Syntax |
---|---|
C++ | dword getTransformSubstepsCount() |
Python | int getTransformSubstepsCount() |
...
getTransformStepInfoByIndex
Return transform information( base, pivot and time) for the given index
Anchor | ||||
---|---|---|---|---|
|
isExcludedOfCutPlanes
Gets "excluded of cut planes" status of the object.
Language | Syntax |
---|---|
C++ | byte isExcludedOfCutPlanes( bool& excluded ) |
Python | bool isExcludedOfCutPlanes() |
Return value
C++
0 = Error getting "excluded of cut planes" status.
1 = Success.
Python
True = object is excluded to cut planes.
False = object is not excluded of cut planes.
Anchor | ||||
---|---|---|---|---|
|
excludeOfCutPlanes
Sets "excluded of cut planes" status of the object.
Language | Syntax |
---|---|
C++ | byte getTransformStepInfoByIndex( Cbase& base, Cbase& pivot, real& time, const dword index excludeOfCutPlanes( bool exclude ) |
Python | dict getTransformStepInfoByIndex( int index int excludeOfCutPlanes( bool exclude ) |
Return value
C++
...
0 = Error
...
1 = Success.
Python
Dictionary containing transform information ('base','pivot','time').
...
isPosRotScaleInitialized
Checks if any of the following methods have been used for the object: setPosition, setRotation, setScale, setShear, setPivotPosition and setPivotRotation. The correct way to transform the object is through the setBaseAndPivot method.
...
setting "excluded of cut planes" state.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getReferenceDisplayPoints
This function is useful to display a mesh on a viewport. Returns an array with the vertices of the object in object space. This function is not accurate but should be used for preview purposes only.
Language | Syntax |
---|---|
C++ | float* getReferenceDisplayPoints( const dword& percent, const dword& maxPoints, dword& nPoints ) |
Python | array getReferenceDisplayPoints( int percent, int maxPoints ) |
Parameters
Type | Name | In/Out | Description |
---|---|---|---|
const dword& | percent | in | Percent of points of the mesh that will be returned. |
const dword& | maxPoints | in | Maximum number of points that will be in the returned array (-1 means there is not a maximum fixed) |
dword& | nPoints | out | Number of points returned. |
Return value
C++
0 = Error getting object transformed for Maxwell Studio.
1 = Success.
Python
True = object initialized using setPosition, setRotation, setScale, setShear, setPivotPosition and/or setPivotRotation (methods used for Maxwell Studio, not for renderingArray of nPoints * 3 containing the proxy points requested.
Python
NumPy array containing the proxy points requested. Shape is (nPoints,3).
Anchor | ||||
---|---|---|---|---|
|
cleanGeometry
...
setColorID
Sets the color used by this object in the Object ID render channel. RGB values must always be in the 0-1 range.
Language | Syntax |
---|---|
C++ | byte cleanGeometrysetColorID( const Crgb& color ) |
Python | int cleanGeometry setColorID( Crgb color ) |
Return value
0 = Error cleaning geometrysetting color ID.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getHide
...
getColorID
Gets the color used by this object in the Object ID render channel.
Language | Syntax |
---|---|
C++ | byte getHidegetColorID( bool Crgb & hide color ) |
Python | bool getHideCrgb getColorID() |
Return value
C++
0 = Error getting "hide" statusthe color ID.
1 = Success.
Python
True = object is hidden.
False = object is not hidden.
...
setHide
...
Crgb containing the color ID.
Anchor | ||||
---|---|---|---|---|
|
setSubdivisionLevel
Sets the subdivision level of the mesh.
Language | Syntax |
---|---|
C++ | byte |
setSubdivisionLevel( const dword& level ) | |
Python | int |
setSubdivisionLevel( | |
int level ) |
Return value
0 = Error setting "hide" state.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
...
getSubdivisionLevel
Gets "hide to camera" status the subdivision level of the objectmesh.
Language | Syntax |
---|---|
C++ | byte getHideToCameragetSubdivisionLevel( booldword& hide level ) |
Python | bool getHide(int level, int success) getSubdivisionLevel() |
Return value
C++
0 = Error getting "hide to camera" status.
1 = Success.
Python
True = object is hidden to camera.
False = object is not hidden to cameraError
1 = Success
Python
Tuple containing the subdivision level of the mesh and the success value of the method.
Anchor | ||||
---|---|---|---|---|
|
setHideToCamera
...
setGeometryDirty
Method used to recalculate structures needed in interactive mode when the object changes. It is not needed to call it if the UVs or material change, but just should be called when the mesh or base change.
Language | Syntax |
---|---|
C++ | byte setHideToCamerasetGeometryDirty( bool hide ) |
Python | int setHideToCamerasetGeometryDirty( bool hide ) |
Return value
0 = Error setting "hide to camera" stategeometry dirty.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getHideToReflectionsRefractions
...
initializeMesh
Clean the mesh and allocates memory for vertexes, normals, triangles and motion blur.
Language | Syntax |
---|---|
C++ | byte getHideToReflectionsRefractions( bool& hide initializeMesh( dword nVertex, dword nNormals, dword nFaces, dword positionsPerVertex ) |
Python | bool getHideToReflectionsRefractions() |
Return value
C++
0 = Error getting "hide to reflections and refractions" status.
1 = Success.
Python
True = object is hidden to reflections and refractions.
False = object is not hidden to reflections and refractions.
...
setHideToReflectionsRefractions
...
int initializeMesh( int nVertex, int nNormals, int nFaces, int positionsPerVertex ) |
Return value
0 = Error initializing mesh.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
resizeMesh
This function reinitializes all the basic geometry and UV arrays. The number of UV channels and their ids remain the same, but UV´s are zeroed. Motion blur vertices can be wiped (if there were) setting newNpositionsPerVertex = 1, or added (if there weren´t) setting newNpositionsPerVertex = 2.
Language | Syntax |
---|---|
C++ | byte setHideToReflectionsRefractions( bool hide resizeMesh( dword newNVertex, dword newNNormals, dword newNFaces, dword newNpositionsPerVertex ) |
Python | int setHideToReflectionsRefractions( bool hide resizeMesh( int newNVertex, int newNNormals, int newNFaces, int newNpositionsPerVertex ) |
Return value
0 = Error setting "hide to reflections and refractions" stateresizing mesh.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getHideToGI
...
generateCustomUVW
--TODO--.
Language | Syntax |
---|---|
C++ | byte getHideToGI( bool& hide generateCustomUVW( dword iChannel, dword iGeneratorType ) |
Python | bool getHideToGI(int generateCustomUVW( int iChannel, int iGeneratorType ) |
Return value
C++
...
0 = Error generating custom UVW coordinates.
1 = Success.
Python
True = object is hidden to global illumination.
False = object is not hidden to global illumination.
...
setHideToGI
Sets "hide to global Illumination" status of the object.
Language | Syntax |
---|---|
C++ | byte setHideToGI( bool hide ) |
Python | int setHideToGI( bool hide ) |
Return value
0 = Error setting "hide to global illumination" state.
1 = Success.
...
isExcludedOfCutPlanes
Gets "excluded of cut planes" status of the object
Anchor | ||||
---|---|---|---|---|
|
getUVWChannelProperties
--TODO--.
Language | Syntax |
---|---|
C++ | byte getUVWChannelProperties( dword iChannel, byte& projType, bool& customProj, Cbase& projectorBase, real& startLatitude, real& endLatitude, real& startLongitude, real& endLongitude, real& startAngle, real& endAngle, bool& mirrorBackFaces ) |
Python | (int projType, bool custumProj, Cbase projectorBase, float startLatitude, float endLatutide, float startLongitude, float endLongitude, float startAngle, float endAngle, bool mirrorBackFaces) getUVWChannelProperties( int iChannel ) |
Return value
C++
0 = Error getting UVW channel properties.
1 = Success.
Python
Tuple containing the UVW channel properties.
Anchor | ||||
---|---|---|---|---|
|
getGlobalXform
--TODO--.
Language | Syntax |
---|---|
C++ | byte isExcludedOfCutPlanesgetGlobalXform( bool Cbase& excluded xForm ) |
Python | bool isExcludedOfCutPlanesCbase getGlobalXform() |
Return value
C++
0 = Error getting "excluded of cut planes" status. --TODO--
1 = Success.
Python
True = object is excluded to cut planes.
False = object is not excluded of cut planes.
...
excludeOfCutPlanes
...
Cbase containing --TODO--
Anchor | ||||
---|---|---|---|---|
|
getGlobalNormalsXform
--TODO--.
Language | Syntax |
---|---|
C++ | byte excludeOfCutPlanes( bool exclude getGlobalNormalsXform( Cbase& xForm ) |
Python | int excludeOfCutPlanesCbase getGlobalNormalsXform( bool exclude ) |
Return value
C++
0 = Error
...
getting --TODO--
1 = Success.
Python
Cbase containing --TODO--
Anchor | ||||
---|---|---|---|---|
|
getProxyDisplayPoints
...
getInverseGlobalXform
--TODO--.
Language | Syntax |
---|---|
C++ | float* getProxyDisplayPoints( const dword& percent, const dword& maxPoints, dword& nPoints byte getInverseGlobalXform( Cbase& ixForm ) |
Python | array getProxyDisplayPoints( int percent, int maxPoints ) |
Parameters
Type | Name | In/Out | Description |
---|---|---|---|
const dword& | percent | in | Percent of points of the mesh that will be returned. |
const dword& | maxPoints | in | Maximum number of points that will be in the returned array (-1 means there is not a maximum fixed) |
dword& | nPoints | out | Number of points returned. |
Cbase getInverseGlobalXform() |
Return value
C++
0 = Error getting --TODO--
1 = Success.
Python
Cbase containing --TODO--
Anchor | ||||
---|---|---|---|---|
|
getInverseGlobalNormalXform
--TODO--.
Language | Syntax |
---|---|
C++ | byte getInverseGlobalNormalXform( Cbase& ixForm ) |
Python | Cbase getInverseGlobalNormalXform() |
Return value
C++
Array of nPoints * 3 containing the proxy points requested0 = Error getting --TODO--
1 = Success.
Python
NumPy array containing the proxy points requested. Shape is (nPoints,3).Cbase containing --TODO--
Anchor | ||||
---|---|---|---|---|
|
...
isGeometryLoader
Sets the color used by this object in the Object ID render channel. RGB values must always be in the 0-1 range.Checks if the object was created by a geometry loader extension.
Language | Syntax |
---|---|
C++ | byte setColorIDisGeometryLoader( const Crgbbool& color isGeomExtension ) |
Python | int setColorIDbool isGeometryLoader( Crgb color ) |
Return value
C++
0 = Error
...
checking object was created from a geometry loader extension.
1 = Success.
Python
True = the object was created by a geometry loader extension.
Anchor | ||||
---|---|---|---|---|
|
getColorID
...
isGeometryProcedural
Checks if the object was created by a procedural geometry extension.
Language | Syntax |
---|---|
C++ | byte getColorIDisGeometryProcedural( Crgbbool& color isGeomProceduralExtension ) |
Python | Crgb getColorIDbool isGeometryProcedural() |
Return value
C++
0 = Error getting the color IDchecking object was created from a procedural geometry extension.
1 = Success.
Python
Crgb containing the color IDTrue = the object was created by a procedural geometry extension.
Method used to recalculate structures needed in interactive mode when the object changes. It is not needed to call it if the UVs or material change, but just should be called when the mesh or base change
Anchor | setgeometrydirty | setgeometrydirty |
---|
setGeometryDirty
|
hasGeometryModifiers
Checks if the object has geometry modifiers (extensions).
Language | Syntax |
---|---|
C++ | byte setGeometryDirtyhasGeometryModifiers( bool& isGeomModifiersExtension ) |
Python | int setGeometryDirtybool hasGeometryModifiers() |
Return value
C++
0 = Error
...
checking object have geometry modifiers (extensions).
1 = Success.
Python
True = the object have geometry modifiers (extensions).
Anchor | ||||
---|---|---|---|---|
|
initializeMesh
...
cleanAllGeometryModifierExtensions
Clean all geometry modifier extensions applyed to the object.
Language | Syntax |
---|---|
C++ | byte initializeMesh( dword nVertex, dword nNormals, dword nFaces, dword positionsPerVertex cleanAllGeometryModifierExtensions() |
Python | int initializeMesh( int nVertex, int nNormals, int nFaces, int positionsPerVertex cleanAllGeometryModifierExtensions() |
Return value
0 = Error initializing meshcleaning geometry modifier extensions.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
resizeMesh
...
getGeometryModifierExtensionsNumber
Gets the number of geometry modifier extensions applied to the object.
Language | Syntax |
---|---|
C++ | byte resizeMeshgetGeometryModifierExtensionsNumber( dword newNVertex, dword newNNormals, dword newNFaces, dword newNpositionsPerVertex & numModifierExtensions ) |
Python | int resizeMesh( int newNVertex, int newNNormals, int newNFaces, int newNpositionsPerVertex getGeometryModifierExtensionsNumber() |
Return value
C++
0 = Error
...
getting the number of geometry modifier extensions applied to the object.
1 = Success.
Python
Number of geometry modifier extensions applied to the object.