Primitives to Meshes#
Key: primitivesToMeshes
This operation replaces gprim types sphere, cylinder, cone, and cube with a mesh approximation. This allows the geometry to be used with operations that require mesh types.
Arguments#
Primitives to convert#
Optional list of prim paths to consider
Name:
pathsType:
[string]Default Value:
[]
Convert sphere primitives#
Whether or not to generate meshes from sphere prims.
Name:
convertSpheresType:
boolDefault Value:
True
Longitude divisions#
The number of longitudinal divisions in which to divide spheres. Must be at least 3.
Name:
sphereLongitudeDivisionsType:
intDefault Value:
32Min Value:
3.0
Latitude divisions#
The number of latitudinal divisions in which to divide spheres. Must be at least 2.
Name:
sphereLatitudeDivisionsType:
intDefault Value:
16Min Value:
2.0
Convert cylinder primitives#
Whether or not to generate meshes from cylinder prims.
Name:
convertCylindersType:
boolDefault Value:
True
Wall divisions#
The number of divisions to make around the cylinder wall. Must be at least 3.
Name:
cylinderWallDivisionsType:
intDefault Value:
32Min Value:
3.0
Length divisions#
The number of end-to-end divisions to make along the cylinder. Must be positive.
Name:
cylinderLatitudeDivisionsType:
intDefault Value:
1Min Value:
1.0
Generate endcaps#
Whether or not to add endcaps to generated cylinder meshes.
Name:
cylinderEndcapsType:
boolDefault Value:
True
Convert cone primitives#
Whether or not to generate meshes from cone prims.
Name:
convertConesType:
boolDefault Value:
True
Side divisions#
The number of divisions to make around the side of the cone. Must be at least 3.
Name:
coneSideDivisionsType:
intDefault Value:
64Min Value:
3.0
Length divisions#
The number of divisions to make along the length of the cone. Must be positive.
Name:
coneLengthDivisionsType:
intDefault Value:
3Min Value:
1.0
Generate bases#
Whether or not to add a base to generated cone meshes.
Name:
coneBasesType:
boolDefault Value:
True
Convert cube primitives#
Whether or not to generate meshes from cube prims.
Name:
convertCubesType:
boolDefault Value:
True