PathEngine home | previous: | next: |
Constructs a content chunk object which can then be saved out and later loaded for instantiation in a separate content tool.
std::unique_ptr<iContentChunk> newContentChunk(const iFaceVertexMesh* ground, const iAnchorsAndPinnedShapes* anchorsAndShapes, const char *const* attributes) |
ground |
Pointer to an object derived from iFaceVertexMesh,
defining the ground elements of the content chunk. A null pointer may be passed into this argument to indicate that a content chunk has no ground component. Otherwise, this ground component must be non-empty (i.e. ground->faces() must not be zero). The client application remains responsible for deleting this object. The information provided by this callback is copied on content chunk creation, and PathEngine does not retain a pointer to this object after the method call completes. | ||
anchorsAndShapes |
Pointer to an object derived from iAnchorsAndPinnedShapes,
defining the set of anchors and pinned shape associated with the content chunk. A null pointer may be passed into this argument to indicate that a content chunk has no anchors and shapes component. Otherwise, this anchors and shapes component must be non-empty (i.e. anchorsAndShapes->numberOfAnchors() must not be zero). The client application remains responsible for deleting this object. The information provided by this callback is copied on content chunk creation, and PathEngine does not retain a pointer to this object after the method call completes. | ||
attributes | A set of attribute and value pairs that can be used to control the behaviour of the newly constructed content chunk. |
If the data passed in is valid then a newly created
Otherwise non-fatal errors will be reported relating to
the validation failure and zero will be returned.
ContentChunk newContentChunk(FaceVertexMesh ground, AnchorsAndPinnedShapes anchorsAndShapes, string[] attributes); |
ContentChunk newContentChunk(FaceVertexMesh ground, AnchorsAndPinnedShapes anchorsAndShapes, String[] attributes); |
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |