SubDComponent

References
[DebuggerDisplay("{ToString()}")] public abstract class SubDComponent : IEquatable<SubDComponent>
A part of SubD geometry. Common base class for vertices, faces, and edges

Properties

ComponentDirection

#Since v8.36
True when this component is referenced with the reverse of its natural orientation. This is always false for vertices, and for edges and faces obtained directly from the parent SubD; it is only set on components reached through an oriented reference, such as the face on a given side of an oriented edge.
public bool ComponentDirection { get; set; }

Id

#Since v7.0
Unique id within the parent SubD for this item
[CLSCompliant(false)] public uint Id { get; }

IsDamaged

#Since v7.6
Returns true if the SubD component is damaged.
public bool IsDamaged { get; }

IsDeleted

#Since v7.6
Returns true if the SubD component is deleted.
public bool IsDeleted { get; }

IsHidden

#Since v7.6
Returns true if the SubD component is hidden.
public bool IsHidden { get; }

IsHighlighted

#Since v7.6
Returns true if the SubD component is highlighted.
public bool IsHighlighted { get; }

IsLocked

#Since v7.6
Returns true if the SubD component is locked.
public bool IsLocked { get; }

IsSelected

#Since v7.6
Returns true if the SubD component is selected.
public bool IsSelected { get; }

ParentSubD

#Since v7.0
SubD that this component belongs to
public SubD ParentSubD { get; }

Methods

Equals

#Since v8.36
Determines whether an object is a SubDComponent referring to the same component, with the same orientation, in the same SubD.
public override bool Equals(
obj
The object to compare with.
)
Object.Equals

Equals

#Since v8.36
Determines whether this component and another refer to the same component, with the same orientation, in the same SubD.
public bool Equals(
other
The component to compare with.
)

GetHashCode

#Since v8.36
Gets a hash code for this component.
public override int GetHashCode()

ReverseComponentDirection

#Since v8.36
Flips ComponentDirection and returns this component, so it can be used inline where an oppositely oriented reference is wanted.
public SubDComponent ReverseComponentDirection()
This component.

ToString

#Since v8.36
Returns a string of the form "SubDEdge(+12)", naming the component type, the orientation it is referenced with, and its id.
public override string ToString()
Object.ToString

Operators

OperationResultDescription
SubDComponent==SubDComponentboolDetermines whether two components refer to the same component, with the same orientation, in the same SubD.
SubDComponent!=SubDComponentboolDetermines whether two components refer to different components, orientations, or SubDs.