Generate Scene#
Key: generateScene
Generates a USD stage to use for benchmarking and testing using reference prims from the incoming stage.
Arguments#
Seed#
The seed which will be used when generating random numbers
Name:
seedType:
intDefault Value:
123456789
Reference Mesh Paths#
Prim paths of meshes to use as reference meshes for generating random geometry. If no paths are provided random meshes will not be generated. If a path is provided that is not a mesh its children will be searched.
Name:
referenceMeshPathsType:
[string]Default Value:
[]
Generate Mesh Path#
The path and name to use for newly generated meshes
Name:
generatedMeshPathType:
strDefault Value:
""
Mesh Count#
The number of disjoint meshes that will be generated
Name:
meshCountType:
intDefault Value:
32
Uniform Layout#
Whether the generated meshes will follow a uniform layout, if false generated meshes will be randomly spaced
Name:
uniformLayoutType:
boolDefault Value:
False
2D Layout#
Whether the generated meshes will be placed in a 2D layout, if false meshes will be arranged in a 3D layout
Name:
2DLayoutType:
boolDefault Value:
False
Layout Spacing#
The distance between each generated mesh, this may be uniform or a hint for random layouts.
Name:
layoutSpacingType:
floatDefault Value:
200
Unique Mesh Percentage#
The percentage of randomly generated meshes that will have unique geometry.
Name:
uniqueMeshPercentageType:
floatDefault Value:
0.5Min Value:
0.0Max Value:
1.0
Scale Unique Meshes#
Whether meshes with unique geometry will have a scale factor applied to their points.
Name:
scaleUniqueMeshesType:
boolDefault Value:
True
Clustered Percent#
The percentage of randomly generated meshes that will be clustered together.
Name:
clusteredPercentType:
floatDefault Value:
0.75Min Value:
0.0Max Value:
1.0
Number of Clusters#
The target number of clusters to group random geometry together in. Note: a higher number of clusters may be generated if the cluster max vertex counts are exceeded.
Name:
numClustersType:
intDefault Value:
16
Material Paths#
Prim paths of materials to randomly assign to generated geometry. If no paths are provided no materials will be assigned. If a path is provided that is not a material its children will be searched.
Name:
materialPathsType:
[string]Default Value:
[]