[TypeName("Model Texture Mapping")] [TypeDescription("Rhino model texture mapping")] public sealed class ModelTextureMapping : ModelComponentContent, IGH_PreviewData, IGH_PreviewMeshData
Represents a Rhino model texture mapping. Wraps the functionality of the TextureMapping type.

Constructors

ModelTextureMapping

#
public ModelTextureMapping()

ModelTextureMapping

#
public ModelTextureMapping(
Attributes
attributes
)

ModelTextureMapping

#
public ModelTextureMapping(
id
)

ModelTextureMapping

#
public ModelTextureMapping(
textureMapping,
channel,
xform
)

ModelTextureMapping

#
public ModelTextureMapping(
textureMapping,
channel
)

ModelTextureMapping

#
public ModelTextureMapping(
textureMapping
)

Fields

Serial

protected internal int Serial
inherited fromModelData

Properties

Attribs

#
protected ModelTextureMapping.Attributes Attribs { get; set; }

Capped

#
public bool? Capped { get; }

Channel

#
public int? Channel { get; }

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

DefaultAttributes

#
protected override ModelData.Attributes DefaultAttributes { get; }

DisplayName

[Browsable(false)] public string DisplayName { get; }
inherited fromModelData
DisplayName

Geometry

#
public object Geometry { get; }

Id

public Guid? Id { get; }
inherited fromModelContent

IsReferencedData

protected bool IsReferencedData { get; }
inherited fromModelContent
IsReferencedData

IsReferencedDataLoaded

protected bool IsReferencedDataLoaded { get; }
inherited fromModelContent

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

protected override string IsValidWhyNot { get; }
inherited fromModelContent

LocalTransform

#
public Transform? LocalTransform { get; }

MappingType

#
public TextureMappingType? MappingType { get; }

Name

public virtual ModelContentName Name { get; }
inherited fromModelContent

Notes

public string Notes { get; }
inherited fromModelContent

Parent

public ModelContentName Parent { get; }
inherited fromModelContent

Projection

#
public Projection? Projection { get; }

Tags

public ModelTags Tags { get; }
inherited fromModelContent

TextureSpace

#
public TextureSpace? TextureSpace { get; }

TypeDescription

protected string TypeDescription { get; }
inherited fromModelData
TypeDescription

TypeName

#
public override string TypeName { get; }

Unset

#
public static ModelTextureMapping Unset { get; }

UserText

public ModelUserText UserText { get; }
inherited fromModelComponentContent

UVWOffset

#
public Vector3d? UVWOffset { get; }

UVWRepeat

#
public Vector3d? UVWRepeat { get; }

UVWRotation

#
public Vector3d? UVWRotation { get; }

XYZOffset

#
public Vector3d? XYZOffset { get; }

XYZRotation

#
public Vector3d? XYZRotation { get; }

XYZSize

#
public Vector3d? XYZSize { get; }

Methods

AsFrozen

Try to obtain a dereferenced snapshot of itself.
public ModelContent AsFrozen(
deep = true
Determines whether or not referenced content should also be frozen.
)
inherited fromModelContent
Itself if it is already dereferenced.

Cast

#
public static ModelTextureMapping Cast(
source
)

CastTo<T>

public override bool CastTo<T>(
ref T
target
)
inherited fromModelContent
ModelData.CastTo
Explicit

IGH_PreviewMeshData.DestroyPreviewMeshes

#
void DestroyPreviewMeshes()

DrawViewportMeshes

#
public void DrawViewportMeshes()
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires()
DrawViewportWires

Equals

public bool Equals()
inherited fromModelContent

Equals

public bool Equals(
other
)
inherited fromModelData

Equals

public override bool Equals(
other
)
inherited fromModelContent
ModelData.Equals

GetHashCode

public override int GetHashCode()
inherited fromModelContent
Explicit

IGH_PreviewMeshData.GetPreviewMeshes

#
Mesh[] GetPreviewMeshes()
GetPreviewMeshes

InternaliseData

protected bool InternaliseData()
inherited fromModelContent

LoadReferencedData

protected virtual bool LoadReferencedData()
inherited fromModelContent
LoadReferencedData

Read

protected override bool Read(
reader
)
inherited fromModelContent
ModelData.Read
Read

RenderItem

protected virtual bool RenderItem(
graphics,
area,
alpha
)
inherited fromModelContent

RuntimeId

protected internal Guid? RuntimeId(
document
)
inherited fromModelContent

ToAttributes

#
public ModelTextureMapping.Attributes ToAttributes()

ToDetails

public string ToDetails()
inherited fromModelData

TooltipString

public override string TooltipString()
inherited fromModelContent

ToString

public override string ToString()
inherited fromModelContent

UnloadReferencedData

protected virtual void UnloadReferencedData()
inherited fromModelContent

Write

protected override bool Write(
writer
)
inherited fromModelContent
ModelData.Write
Write

Convertors