Click or drag to resize
AB4D logo

ExtrudeTextureCoordinatesGenerationType Enumeration

ExtrudeTextureCoordinatesGenerationType defines the types of texture coordinates generation that are available when using CreateExtrudedMeshGeometry.

Namespace: Ab3d.Meshes
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.0.8746.1045
Syntax
C#
public enum ExtrudeTextureCoordinatesGenerationType
Members
Member nameValueDescription
None0 Do not generate texture coordinates (this option is preferred when using solid color material because here no texture coordinates are needed)
AddAdditionalPositions1 Do not generate any texture coordinates but add additional positions when the last position around the extruded shape meets the first position. This allows to generate texture coordinates later with using the right most pixel from the texture on the edge when the last point on the shape meets the first point. The additional positions are added when any type of texture geometry generation is used (except None).
Cylindrical2 Generates texture coordinates with using cylindrical projection. This means that the top and bottom planes are horizontally mapped to the 2D texture, the texture coordinates for the cylindrical part are generated in such a way as the 2D texture is wrapped around the cylinder (extruded object).
See Also