| 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.
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. This object must remain valid over the lifetime of the content chunk object. | ||
| 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. This object must remain valid over the lifetime of the content chunk object. | ||
| 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.
| Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEngine | next: |