CachedTextureCoordinates

CommonObjectReferences
Used for cached texture coordinates

Properties

Count

#Since v5.10
Number of cached coordinates.
public int Count { get; }

Dim

#Since v5.10
Coordinate dimension: 2 = UV, 3 = UVW
public int Dim { get; }

Disposed

Indicates if this object has been disposed or the document it originally belonged to has been disposed.
public bool Disposed { get; }
inherited fromCommonObject

HasUserData

Gets true if this class has any custom information attached to it through UserData.
public bool HasUserData { get; }
inherited fromCommonObject

IsDocumentControlled

If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException.
public virtual bool IsDocumentControlled { get; }
inherited fromCommonObject

IsReadOnly

#Since v5.10
This collection is always read-only
public bool IsReadOnly { get; }

IsValid

Tests an object to see if it is valid.
public virtual bool IsValid { get; }
inherited fromCommonObject

MappingId

#Since v5.10
The texture mapping Id.
public Guid MappingId { get; }

UserData

List of custom information that is attached to this class.
public UserDataList UserData { get; }
inherited fromCommonObject

UserDictionary

Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use shareable set of information.
public ArchivableDictionary UserDictionary { get; }
inherited fromCommonObject

Indexers

Explicit

IList<Point3d>.this[]

#
Point3d IList<Point3d>.this[
index
]

this[]

#
Gets the element at the specified index. Never call the set method, it will always throw a NotSupportedException because this list is read-only.
public Point3d this[
index
The zero-based index of the element to get.
] { get; }
The element at the specified index.
NotSupportedExceptionIList implementation, this list is always read-only so calling the set method will always cause a NotSupportedException to be thrown.

Methods

ConstructConstObject

Assigns a parent object and a sub-object index to this.
protected void ConstructConstObject(
parentObject,
The parent object.
subobjectIndex
The sub-object index.
)
inherited fromCommonObject

Contains

#Since v5.10
Determines whether this collection contains a specific value.
public bool Contains(
item
)

CopyTo

#Since v5.10
Copies the elements of the this collection to an System.Array, starting at a particular System.Array index.
public void CopyTo(
array,
The one-dimensional System.Array that is the destination of the elements copied from this collection. The System.Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
)
ArgumentNullExceptionarray is null
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentExceptionThe number of elements in this collection is greater than the available space from arrayIndex to the end of the destination array.

Dispose

Actively reclaims unmanaged resources that this instance uses.
public void Dispose()
inherited fromCommonObject

Dispose

For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

protected virtual void Dispose(
disposing
true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.
)
inherited fromCommonObject

EnsurePrivateCopy

If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
public void EnsurePrivateCopy()
inherited fromCommonObject

GetEnumerator

#Since v5.10
Returns an enumerator that iterates through this collection.
public IEnumerator<Point3d> GetEnumerator()
A enumerator that can be used to iterate through this collection.

GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData(
info,
The System.Runtime.Serialization.SerializationInfo to populate with data.
context
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
)
inherited fromCommonObject

IndexOf

#Since v5.10
Determines the index of a specific point in this collection.
public int IndexOf(
item
The point (UV or UVW) to locate in this collection.
)
The index of item if found in the list; otherwise, -1.

IsValidWithLog

Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.
public bool IsValidWithLog(
out string
log
A textual log. This out parameter is assigned during this call.
)
inherited fromCommonObject
true if this object is valid; false otherwise.

NonConstOperation

For derived classes implementers.

Defines the necessary implementation to free the instance from being constant.

protected virtual void NonConstOperation()
inherited fromCommonObject

OnSwitchToNonConst

Is called when a non-constant operation first occurs.
protected virtual void OnSwitchToNonConst()
inherited fromCommonObject
Explicit

ICollection<Point3d>.Add

#Since v5.10
void ICollection<Point3d>.Add(
item
)
Explicit

ICollection<Point3d>.Clear

#Since v5.10
IList implementation, this list is always read-only so calling this will cause a NotSupportedException to be thrown.
void ICollection<Point3d>.Clear()
Explicit

ICollection<Point3d>.Remove

#Since v5.10
IList implementation, this list is always read-only so calling this will cause a NotSupportedException to be thrown.
Explicit

IList<Point3d>.Insert

#Since v5.10
void IList<Point3d>.Insert(
index,
item
)
Explicit

IList<Point3d>.RemoveAt

#Since v5.10
void IList<Point3d>.RemoveAt(
index
)
Explicit

IEnumerable.GetEnumerator

#Since v5.10
Returns an enumerator that iterates through this collection.
IEnumerator IEnumerable.GetEnumerator()
A enumerator that can be used to iterate through this collection.

ToJSON

Create a JSON string representation of this object
public string ToJSON()
inherited fromCommonObject

TryGetAt

#Since v5.10
Use this method to iterate the cached texture coordinate array.
public bool TryGetAt(
index,
Index for the vertex to fetch.
out double
u,
Output parameter which will receive the U value.
out double
v,
Output parameter which will receive the V value.
out double
w
Output parameter which will receive the W value, this is only meaningful if Dim is 3.
)
Returns true if index is valid; otherwise returns false.