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
Syntaxpublic CachedTextureCoordinates GetCachedTextureCoordinates(
File3dm file,
Guid objectId,
Texture texture
)
Public Function GetCachedTextureCoordinates (
file As File3dm,
objectId As Guid,
texture As Texture
) As CachedTextureCoordinates
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:
CachedTextureCoordinatesCached texture coordinates if available and otherwise null
See Also