Return type |
Description |
int3
|
shape.buildPCoordsMesh(int vertexId)
Builds parametric coordinates for shapes of type mesh, sampled in "vertex" mode.
|
int3
|
shape.buildPCoordsMesh(int triangleId, float2 uv)
Builds parametric coordinates for shapes of type mesh, sampled in "surface" mode.
uv are the barycentric coordinates of the sample in the triangle triangleId.
|
int3
|
shape.buildPCoordsMesh(int tetraId, float3 uvw)
Builds parametric coordinates for shapes of type mesh, sampled in "volume" mode.
uvw are the barycentric coordinates of the sample in the tetrahedron tetraId.
|
int3
|
shape.buildPCoordsBox(int faceId, float2 uv)
Builds parametric coordinates for shapes of type box, sampled in "surface" mode.
uv are the [0,1] coordinates of the sample on the face faceId.
|
int3
|
shape.buildPCoordsBox(float3 uvw)
Builds parametric coordinates for shapes of type box, sampled in "surface" mode.
uvw are the [0,1] coordinates of the sample in the normalized box.
|
int3
|
shape.buildPCoordsSphere(float2 angles, float radius)
Builds parametric coordinates for shapes of type sphere, sampled in "surface" or "volume" modes.
angles are the theta/phi polar angles of the sample, normalized into the [0, 1] range.
radius is the normalized [0, 1] sample position between the inner and outer radius.
|
int3
|
shape.buildPCoordsCapsule(float height, float angle, float radius)
Builds parametric coordinates for shapes of type capsule, sampled in "surface" or "volume" modes.
height is the normalized [0, 1] sample coordinate between the lowest point of the bottom hemisphere, and the highest point of the top hemisphere.
angle is the theta polar angles of the sample, normalized into the [0, 1] range.
radius is the normalized [0, 1] sample coordinate between the inner and outer radius.
|
int3
|
shape.buildPCoordsCylinder(float height, float angle, float radius)
Builds parametric coordinates for shapes of type cylinder, sampled in "surface" or "volume" modes.
height is the normalized [0, 1] sample coordinate between the bottom and top cylinder caps.
angle is the theta polar angles of the sample, normalized into the [0, 1] range.
radius is the normalized [0, 1] sample coordinate between the inner and outer radius.
|
int3
|
shape.buildPCoordsCone(float height, float angle)
Builds parametric coordinates for shapes of type cone, sampled in "surface" mode.
height is the normalized [0, 1] sample coordinate between the bottom cap and the apex of the cone.
angle is the theta polar angles of the sample, normalized into the [0, 1] range.
|
int3
|
shape.buildPCoordsCone(float height, float angle, float radius)
Builds parametric coordinates for shapes of type cone, sampled in "volume" mode.
height is the normalized [0, 1] sample coordinate between the bottom cap and the apex of the cone.
angle is the theta polar angles of the sample, normalized into the [0, 1] range.
radius is the normalized [0, 1] sample coordinate between the center and the edge of the cone.
|