FormIt C++ API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
FormIt::Graphics API

Description

Functions

FORMIT_CORE_EXPORT void FormIt::Graphics::GetObjectTypes (size_t historyId, const 1::vector< size_t > &objectIds, 1::vector< WSM::nObjectType > &outTypes)
 Get the object types for a list of object ids.
 
FORMIT_CORE_EXPORT void FormIt::Graphics::GetRenderableFaces (size_t historyId, bool backside, bool calculateTextureCoordinates, const 1::vector< size_t > &faces, 1::vector< size_t > &outFaceIndices, 1::vector< double > &outPositions, 1::vector< double > &outNormals, 1::vector< double > &outTexCoords)
 Get vertices, normals, and uvs for multiple faces at once, as unstructured vectors of doubles.
 
FORMIT_CORE_EXPORT void FormIt::Graphics::GetObjectRenderableEdges (size_t historyId, size_t objectId, bool includeSmooth, 1::vector< double > &outVertices, 1::vector< double > &outSmoothVertices)
 Get vertices for all the edges in an object, as a flat list of doubles.
 
FORMIT_CORE_EXPORT void FormIt::Graphics::GetRenderableEdges (size_t historyId, const 1::vector< size_t > &edges, bool includeSmooth, 1::vector< double > &outVertices, 1::vector< double > &outSmoothVertices)
 Get vertices for multiple edges at once, as a flat list of doubles.
 

Function Documentation

◆ GetObjectRenderableEdges()

FORMIT_CORE_EXPORT void FormIt::Graphics::GetObjectRenderableEdges ( size_t  historyId,
size_t  objectId,
bool  includeSmooth,
1::vector< double > &  outVertices,
1::vector< double > &  outSmoothVertices 
)

Get vertices for all the edges in an object, as a flat list of doubles.

Parameters
[in]historyId
[in]objectId
[in]includeSmooth
[out]outVertices
[out]outSmoothVertices

◆ GetObjectTypes()

FORMIT_CORE_EXPORT void FormIt::Graphics::GetObjectTypes ( size_t  historyId,
const 1::vector< size_t > &  objectIds,
1::vector< WSM::nObjectType > &  outTypes 
)

Get the object types for a list of object ids.

Parameters
[in]historyId
[in]objectIds
[out]outTypes

◆ GetRenderableEdges()

FORMIT_CORE_EXPORT void FormIt::Graphics::GetRenderableEdges ( size_t  historyId,
const 1::vector< size_t > &  edges,
bool  includeSmooth,
1::vector< double > &  outVertices,
1::vector< double > &  outSmoothVertices 
)

Get vertices for multiple edges at once, as a flat list of doubles.

Parameters
[in]historyId
[in]edges
[in]includeSmooth
[out]outVertices
[out]outSmoothVertices

◆ GetRenderableFaces()

FORMIT_CORE_EXPORT void FormIt::Graphics::GetRenderableFaces ( size_t  historyId,
bool  backside,
bool  calculateTextureCoordinates,
const 1::vector< size_t > &  faces,
1::vector< size_t > &  outFaceIndices,
1::vector< double > &  outPositions,
1::vector< double > &  outNormals,
1::vector< double > &  outTexCoords 
)

Get vertices, normals, and uvs for multiple faces at once, as unstructured vectors of doubles.

Parameters
[in]historyId
[in]backside
[in]calculateTextureCoordinates
[in]faces
[out]outPositions
[out]outNormals
[out]outTexCoords
Parameters
outFaceIndicesoutputs