Post

NurbsSwungSurface

Overview

NurbsSwungSurface contains a profileCurve and a trajectoryCurve [X3DNurbsControlCurveNode].

The NurbsSwungSurface node belongs to the NURBS component and requires at least level 3, its default container field is geometry. It is available from X3D version 3.0 or higher.

Hierarchy

1
2
3
4
+ X3DNode
  + X3DGeometryNode
    + X3DParametricGeometryNode
      + NurbsSwungSurface

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFBool [ ] solid TRUE

Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).

Hints

  • Mnemonic “this geometry is solid like a brick” (you don’t render the inside of a brick).
  • If in doubt, use solid=’false’ for maximum visibility.
  • AccessType relaxed to inputOutput in order to support animation and visualization.

Warning

  • Default value true can completely hide geometry if viewed from wrong side!

SFBool [ ] ccw TRUE

ccw defines clockwise/counterclockwise ordering of vertex coordinates, which in turn defines front/back orientation of polygon normals according to Right-Hand Rule (RHR).

Hints

  • A good debugging technique for problematic polygons is to try changing the value of ccw, which can reverse solid effects (single-sided backface culling) and normal-vector direction.
  • Clockwise

Warning

  • Consistent and correct ordering of left-handed or right-handed point sequences is important throughout the coord array of point values.

SFNode [in, out] profileCurve NULL [X3DNurbsControlCurveNode]

2D curve in the yz-plane that describes the cross-sectional shape of the object.

SFNode [in, out] trajectoryCurve NULL [X3DNurbsControlCurveNode]

2D curve in the xz-plane that describes path over which to trace the cross-section.

See Also

This post is licensed under CC BY 4.0 by the author.