Click or drag to resize

MeshGetCachedTextureCoordinates Method (File3dm, Guid, Texture)

Returns cached texture coordinate set based on the texture. Make sure to set up cached texture coordinates for all textures in the material first by calling SetCachedTextureCoordinatesFromMaterial(File3dm file, Guid objectId, Rhino.DocObjects.Material material) If this function returns null then there are no texture coordinates available.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.1
Syntax
public CachedTextureCoordinates GetCachedTextureCoordinates(
	File3dm file,
	Guid objectId,
	Texture texture
)

Parameters

file
Type: Rhino.FileIOFile3dm
File that contains the object and its texture mappings
objectId
Type: SystemGuid
Id of the object in the file that defines texture mappings
texture
Type: Rhino.DocObjectsTexture
Texture that defines the mapping channel

Return Value

Type: CachedTextureCoordinates
Cached texture coordinates if available and otherwise null
See Also