|
Bifrost SDK
Bifrost SDK documentation
|
Functions | |
| Amino::Ptr< Bifrost::Object > BIFROST_GEOMETRY_DECL | Bifrost::Geometry::getMeshPrototype () |
| Returns the prototypical mesh object. More... | |
| void BIFROST_GEOMETRY_DECL | Bifrost::Geometry::populateMesh (Bifrost::Object &object) |
| Populate an object with the required properties to conform to the Mesh geometry schema. More... | |
| bool BIFROST_GEOMETRY_DECL | Bifrost::Geometry::populateMesh (Amino::Ptr< Amino::Array< Bifrost::Math::float3 > > positions, Amino::Ptr< Amino::Array< Bifrost::Geometry::Index > > face_vertices, Amino::Ptr< Amino::Array< Bifrost::Geometry::Index > > face_offsets, Bifrost::Object &object) |
| Populate an object with the required properties to conform to the Mesh geometry schema. More... | |
| void BIFROST_GEOMETRY_DECL | Bifrost::Geometry::populateCubeMesh (float width, Bifrost::Object &object) |
| Populate an object with the properties and values required to define a six-sided cube mesh. More... | |
| void BIFROST_GEOMETRY_DECL | Bifrost::Geometry::populateSphereMesh (float radius, Bifrost::Object &object) |
| Populate an object with the properties of a mesh sphere. More... | |
| void BIFROST_GEOMETRY_DECL | Bifrost::Geometry::populatePlaneMesh (float width, unsigned subdivisions, Bifrost::Object &object) |
| Populate an object with the properties and values required to define a unit plane with the requested subdivisions on the X and Z axes. More... | |
Functions for creating Mesh geometry objects.
| Amino::Ptr< Bifrost::Object > BIFROST_GEOMETRY_DECL Bifrost::Geometry::getMeshPrototype | ( | ) |
Returns the prototypical mesh object.
The returned pointer may be used in conjunction with Bifrost::Object::isA to determine if an object conforms to the mesh schema. The returned object may not be modified.
| void BIFROST_GEOMETRY_DECL Bifrost::Geometry::populateCubeMesh | ( | float | width, |
| Bifrost::Object & | object | ||
| ) |
Populate an object with the properties and values required to define a six-sided cube mesh.
| [in] | width | Width of the cube. |
| [in,out] | object | Mesh geometry object to be populated. |
| bool BIFROST_GEOMETRY_DECL Bifrost::Geometry::populateMesh | ( | Amino::Ptr< Amino::Array< Bifrost::Math::float3 > > | positions, |
| Amino::Ptr< Amino::Array< Bifrost::Geometry::Index > > | face_vertices, | ||
| Amino::Ptr< Amino::Array< Bifrost::Geometry::Index > > | face_offsets, | ||
| Bifrost::Object & | object | ||
| ) |
Populate an object with the required properties to conform to the Mesh geometry schema.
The mesh is initialized with the specified data arrays.
For example, to define a mesh that contains two triangles covering the unit square:
| [in] | positions | The vertex positions of the new mesh. |
| [in] | face_vertices | The face vertices of the new mesh. |
| [in] | face_offsets | The face offsets of the new mesh. |
| [in,out] | object | Mesh geometry object to be populated. |
| void BIFROST_GEOMETRY_DECL Bifrost::Geometry::populateMesh | ( | Bifrost::Object & | object | ) |
| void BIFROST_GEOMETRY_DECL Bifrost::Geometry::populatePlaneMesh | ( | float | width, |
| unsigned | subdivisions, | ||
| Bifrost::Object & | object | ||
| ) |
Populate an object with the properties and values required to define a unit plane with the requested subdivisions on the X and Z axes.
| [in] | width | Width of the plane. |
| [in] | subdivisions | Number of X and Z subdivisions. Minimum is one. |
| [in,out] | object | Mesh geometry object to be populated. |
| void BIFROST_GEOMETRY_DECL Bifrost::Geometry::populateSphereMesh | ( | float | radius, |
| Bifrost::Object & | object | ||
| ) |
Populate an object with the properties of a mesh sphere.
| [in] | radius | Radius of the sphere. |
| [in,out] | object | Mesh geometry object to be populated. |