Click or drag to resize

SubDFace Class

Single face of a SubD
Inheritance Hierarchy
SystemObject
  Rhino.GeometrySubDComponent
    Rhino.GeometrySubDFace

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class SubDFace : SubDComponent

The SubDFace type exposes the following members.

Properties
  NameDescription
Public propertyComponentDirection
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.
(Inherited from SubDComponent.)
Public propertyControlNetCenterFrame
The face's control net center frame is a plane with normal equal to ControlNetCenterNormal and origin equal to ControlNetCenterPoint. The x and y axes of the frame have no predictable relationship to the face or SubD control net topology.
Public propertyControlNetCenterNormal
When the face's control net polygon is planar, the face's control net normal is a unit vector perpendicular to the plane that points outwards. If the control net polygon is not planar, the control net normal is control net normal is a unit vector that is the average of the control polygon's corner normals.
Public propertyControlNetCenterPoint
The face's control net center point is the average of the face's vertex control net points. This is the same point as the face's subdivision point.
Public propertyEdgeCount
Number of edges for this face. Note that EdgeCount is always the same as VertexCount. Two properties are provided simply for clarity.
Public propertyId
Unique id within the parent SubD for this item
(Inherited from SubDComponent.)
Public propertyIsDamaged
Returns true if the SubD component is damaged.
(Inherited from SubDComponent.)
Public propertyIsDeleted
Returns true if the SubD component is deleted.
(Inherited from SubDComponent.)
Public propertyIsHidden
Returns true if the SubD component is hidden.
(Inherited from SubDComponent.)
Public propertyIsHighlighted
Returns true if the SubD component is highlighted.
(Inherited from SubDComponent.)
Public propertyIsLocked
Returns true if the SubD component is locked.
(Inherited from SubDComponent.)
Public propertyIsSelected
Returns true if the SubD component is selected.
(Inherited from SubDComponent.)
Public propertyLimitSurfaceCenterPoint
Get the limit surface point location at the center of the face
Public propertyParentSubD
SubD that this component belongs to
(Inherited from SubDComponent.)
Public propertyPerFaceColor
If per-face color is "Empty", then this face does not have a custom color
Public propertySurfaceCenterFrame
Get the limit surface tangent plane at the center of the face. The plane's origin is the point on the limit surface at the center of the face. The plane's z axis is the limit surface normal vector at the center of the face.
Public propertySurfaceCenterNormal
Get the limit surface normal vector at the center of the face.
Public propertyVertexCount
Number of vertices for this face. Note that EdgeCount is always the same as VertexCount. Two properties are provided simply for clarity.
Top
Methods
  NameDescription
Public methodClearSavedSubdivisionPoints
Discards the cached subdivision and surface points for this face, so they are recomputed on next use.
Public methodComponentIndex
Gets the component index of this face.
Public methodEdgeAt
Get an edge at a given index
Public methodEdgeDirectionMatchesFaceOrientation
Check if a given edge in this face has the same direction as the face orientation
Public methodEquals(Object)
Determines whether an object is a SubDComponent referring to the same component, with the same orientation, in the same SubD.
(Inherited from SubDComponent.)
Public methodEquals(SubDComponent)
Determines whether this component and another refer to the same component, with the same orientation, in the same SubD.
(Inherited from SubDComponent.)
Public methodGetHashCode
Gets a hash code for this component.
(Inherited from SubDComponent.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodReverseComponentDirection
Flips ComponentDirection and returns this component, so it can be used inline where an oppositely oriented reference is wanted.
(Inherited from SubDComponent.)
Public methodToString
Returns a string of the form "SubDEdge(+12)", naming the component type, the orientation it is referenced with, and its id.
(Inherited from SubDComponent.)
Public methodVertexAt
Get a vertex that this face uses by index
Top
See Also