Bézier(start, control1, control2, end, steps) Bézier(start, control1, control2, end, steps) BézierPatch(p00, p10, p20, p30, p01, p11, p21, p31, p02, p12, p22, p32, p03, p13, p23, p33, steps) Extrude(polygon, depth, includeBackFace, flatSideNormals) Extrude(polygons, depth, includeBackFace, flatSideNormals) Extrude(pieces, depth, smoothness, includeBackFace) pt(x, y, z, normalOverride) pt(x, y, z, befX, afX, befY, afY) Rotate(face, axisStart, axisEnd, angle) Rotate(faces, axisStart, axisEnd, angle) Rotate(faces, axisStart, axisEnd, angle) Rotate(faces, axisStart, axisEnd, angle) Rotate(faces, axisStart, axisEnd, angle) Rotate(vi, axisStart, axisEnd, angle) Rotate(face, axisStart, axisEnd, angle) Rotate(face, axisStart, axisEnd, angle) Rotate(face, axisStart, axisEnd, angle)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: VertexInfo[][] Texturize(this VertexInfo[][], double, double)- Declared in: RT.Modeling.Md
Declarationpublic static VertexInfo[][] Texturize(
this VertexInfo[][] model,
double baseY,
double rMult
) Summary
Applies texture coordinates (UV mapping) to a model by determining the maximum extent along the x- and z-axis
and then optionally stretching/shrinking the space according to the y-coordinate. Parametersthis VertexInfo[][] | model |
The model to process. | double | baseY |
The y-coordinate at which the UV coordinates should match the maximum x/z extent of the vertices. | double | rMult |
The amount by which a Y-coordinate’s deviation from baseY should cause the UV coordinates
to stretch/shrink. Specify 0 (zero) to prevent stretching/shrinking (straight rectilinear projection). |
Returns
The same model but with texture coordinates applied. Remarks
This method assumes that you want to project the texture down the y-coordinate. To use any other projection
direction, rotate the model to align with the y-axis first, then apply Md.Texturize(this VertexInfo[][], double, double), then rotate it back. |