|
| | ON_SubDFaceParameter ()=default |
| |
| | ON_SubDFaceParameter (const ON_SubDFaceParameter &)=default |
| |
| | ON_SubDFaceParameter (ON_SubDFaceCornerDex cdex, double corner_s, double corner_t) |
| | Create a SubD face parameter that identifies a point on the face. The parameters (0,0) correspond the corner vertex cdex.Vertex(face). The corner_s parameter runs from the corner vertex to the midpoint of cdex.RightEdge(face). The corner_t parameter runs from the corner vertex to the midpoint of cdex.LeftEdge(face). The parameters (1/2, 1/2) correspond the center of the face. More...
|
| |
| | ~ON_SubDFaceParameter ()=default |
| |
| const bool | AtVertex () const |
| | An evaluation point is at a SubD vertex if IsSet() is true and FaceCornerParameters() = (0,0, 0,0). More...
|
| |
| const ON_SubDFaceCornerDex | FaceCornerDex () const |
| | m_cdex identifies face's subdivision quad the s and t parameters apply to. The corner vertex is V = m_cdex.Vertex(face). The edge entering the corner is LE = m_cdex.LeftEdge(face). The edge leaving the corner is RE = m_cdex.RightEdge(face). V = LE.RelativeVertex(1) = RE.RelativeVertex(0). More...
|
| |
| const ON_2dPoint | FaceCornerParameters () const |
| | cdex = FaceCornerDex() identifies face's subdivision quad the s and t parameters apply to. The corner vertex is V = cdex.Vertex(face). The edge entering the corner is LE = cdex.LeftEdge(face). The edge leaving the corner is RE = cdex.RightEdge(face). V = LE.RelativeVertex(1) = RE.RelativeVertex(0). More...
|
| |
| bool | IsNotSet () const |
| | - Returns
- True if any value is not valid.
More...
|
| |
| bool | IsSet () const |
| | - Returns
- True if all values are valid.
More...
|
| |
| const bool | OnEdge () const |
| | An evaluation point is on a subD edge if IsSet() is true and at least one of the values in FaceCornerParameters() is 0.0. More...
|
| |
| ON_SubDFaceParameter & | operator= (const ON_SubDFaceParameter &)=default |
| |
| const ON_2dPoint | QuadFaceParameters () const |
| | For quad faces, QuadFaceParameters() returns 2 normalized parameters that span the entire quad face. The 2d points (0,0), (1,0), (1,1), (0,1) corresponed to the quad face's vertices face.Vertex(0), face.Vertex(1), face.Vertex(2), face.Vertex(3). More...
|
| |
| const ON_2dPoint ON_SubDFaceParameter::FaceCornerParameters |
( |
| ) |
const |
cdex = FaceCornerDex() identifies face's subdivision quad the s and t parameters apply to. The corner vertex is V = cdex.Vertex(face). The edge entering the corner is LE = cdex.LeftEdge(face). The edge leaving the corner is RE = cdex.RightEdge(face). V = LE.RelativeVertex(1) = RE.RelativeVertex(0).
p = FaceCornerParameters(); The p.x parameter runs along half of RE from V to the midpoint of RE. 0 <= p.x < 1/2. The p.y parameter runs along half of LE from V to the midpoint of LE. 0 <= p.y < 1/2. At V, p=(0,0). At the midpoint of RE, p=(1/2,0) At the midpoint of LE, p=(0,1/2) At the center of the face, p=(1/2,1/2).
| const ON_2dPoint ON_SubDFaceParameter::QuadFaceParameters |
( |
| ) |
const |
For quad faces, QuadFaceParameters() returns 2 normalized parameters that span the entire quad face. The 2d points (0,0), (1,0), (1,1), (0,1) corresponed to the quad face's vertices face.Vertex(0), face.Vertex(1), face.Vertex(2), face.Vertex(3).
- Returns
- If m_cdex.IsQUadFace() is true, then the 2 normalized quad face parameters corresponding to this ON_SubDFaceParameter are returned. Otherwise ON_2dPoint::NanPoint is returned.