MeshSetCachedTextureCoordinatesFromMaterial Method (File3dm, Guid, Material) |
Sets up cached texture coordinate set for each texture in the material.
Textures in the Material define which mapping channels are used and
the object with the specified id in the file defines what texture mapping
is used for each mapping channel.
After this method is called all necessary texture coordinate sets are cached
and correct texture coordinates for each texture can be fetched using
GetCachedTextureCoordinates(File3dm file, Guid objectId, Rhino.DocObjects.Texture texture)
If any texture coordinates are already cached they will not be re-computed.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.1
Syntaxpublic void SetCachedTextureCoordinatesFromMaterial(
File3dm file,
Guid objectId,
Material material
)
Public Sub SetCachedTextureCoordinatesFromMaterial (
file As File3dm,
objectId As Guid,
material As Material
)
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 - material
- Type: Rhino.DocObjectsMaterial
Material with textures that define mapping channels
See Also