|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::optional< glm::vec3 > MayaFlux::Nexus::read_anchor | ( | const std::shared_ptr< Buffers::VKBuffer > & | buf, |
| const std::optional< uint32_t > & | index | ||
| ) |
Anchor of a buffer's geometry in its own stored coordinates.
The position of the vertex at index, else the surface centroid, else the vertex mean for a mesh without faces. A point or path buffer reports the mean of its vertices; an InstanceNetworkBuffer, with no index, the centre of its bounds. Blocks for a ComputeMeshBuffer and for a buffer a field processor drives.
| buf | Buffer to read. |
| index | Vertex to anchor at, if any. |
Definition at line 213 of file Survey.cpp.
References index, offset, position_offset, and read_anchor().
Referenced by make_attachment(), read_anchor(), and recenter_attachment().
Here is the call graph for this function:
Here is the caller graph for this function: