|
MeshUtilsGenerateCylindricalTextureCoordinates(MeshGeometry3D, Vector3D, Vector3D) Method |
Returns a TextureCoordinates for the specified mesh.
TextureCoordinates are calculated with using the Cylindrical projection.
TextureCoordinates for position that are parallel to the cylinderDirectionVector use simple planar projection.
TextureCoordinates for other positions are calculated based on the angle from the cylinder center axis to the position.
The GenerateCylindricalTextureCoordinates does not set the TextureCoordinates on the mesh.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax public static PointCollection GenerateCylindricalTextureCoordinates(
MeshGeometry3D mesh,
Vector3D cylinderDirectionVector,
Vector3D cylinderPlaneHeightVector
)
Parameters
- mesh MeshGeometry3D
- MeshGeometry3D
- cylinderDirectionVector Vector3D
- Vector3D that specifies the direction of the cylinder (its height direction)
- cylinderPlaneHeightVector Vector3D
- Vector3D that specifies the direction of the height direction in the up and bottom cylinder plane
Return Value
PointCollectionPointCollection with calculated TextureCoordinates
See Also