#include <ShapeIterator.h>
|
static SelectedShapesIteratorPtr | create (GenerateContext &context, size_t initialShapeIndex, const std::vector< int32_t > &selectedShapes) |
|
Generates a shape tree and traverses the selected set of shapes. Shapes can be selected by their IDs. Generating an InitialShape more than once is guaranteed to result the same shape tree with the same shape IDs if the OcclusionSet was not changed in-between the prt::generate() calls and no internal multithreading is used.
◆ create()
static SelectedShapesIteratorPtr prtx::SelectedShapesIterator::create |
( |
GenerateContext & |
context, |
|
|
size_t |
initialShapeIndex, |
|
|
const std::vector< int32_t > & |
selectedShapes |
|
) |
| |
|
static |
Creates an instance of a BreadthFirstIteratorPtr.
- Parameters
-
context | GenerateContext to use. |
initialShapeIndex | Index of the InitialShape in the context to use as start shape. |
selectedShapes | IDs of the shapes to extract. |
The documentation for this class was generated from the following file: