CachedTextureCoordinates

CommonObjectReferences
Used for cached texture coordinates

Properties

Count

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

Dim

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

Disposed

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

HasUserData

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

IsDocumentControlled

public virtual bool IsDocumentControlled { get; }
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.
inherited fromCommonObject

IsReadOnly

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

IsValid

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

MappingId

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

UserData

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

UserDictionary

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

Indexers

Explicit

IList<Point3d>.this[]

#
Point3d IList<Point3d>.this[int index]
index (int)

this[]

#
public Point3d this[int index] { get; }
Gets the element at the specified index. Never call the set method, it will always throw a NotSupportedException because this list is read-only.
index (int)The zero-based index of the element to 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

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

Contains

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

CopyTo

#Since v5.10
public void CopyTo(Point3d[] array, int arrayIndex)
Copies the elements of the this collection to an System.Array, starting at a particular System.Array index.
array (Point3d[])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 (int)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

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

Dispose

protected virtual void Dispose(bool disposing)
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.

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

EnsurePrivateCopy

public void 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.
inherited fromCommonObject

GetEnumerator

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

GetObjectData

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

IndexOf

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

IsValidWithLog

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

NonConstOperation

protected virtual void NonConstOperation()
For derived classes implementers.

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

inherited fromCommonObject

OnSwitchToNonConst

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

ICollection<Point3d>.Add

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

ICollection<Point3d>.Clear

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

IList<Point3d>.Insert

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

IList<Point3d>.RemoveAt

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

IEnumerable.GetEnumerator

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

ToJSON

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

TryGetAt

#Since v5.10
public bool TryGetAt(int index, out double u, out double v, out double w)
Use this method to iterate the cached texture coordinate array.
index (int)Index for the vertex to fetch.
u (out double)Output parameter which will receive the U value.
v (out double)Output parameter which will receive the V value.
w (out double)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.