Difference between revisions of "Contour2D"

From Web3D.org
Jump to: navigation, search
 
Line 3: Line 3:
  
 
<pre>
 
<pre>
CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
+
Contour2D : X3DNode {  
   MFNode   [in]    addChildren
+
   MFNode [in]    addChildren         [NurbsCurve|ContourPolyline2D]
   MFNode   [in]    removeChildren
+
   MFNode [in]    removeChildren     [NurbsCurve|ContourPolyline2D]
   MFNode   [in,out] children      []       [X3DProductStructureChildNode]
+
   MFNode [in,out] children      []   [NurbsCurve|ContourPolyline2D]
   SFNode   [in,out] metadata      NULL     [X3DMetadataObject]
+
   SFNode [in,out] metadata      NULL [X3DMetadataObject]
  SFString [in,out] name ""
+
  SFVec3f  []      bboxCenter    0 0 0    (-∞,∞)
+
  SFVec3f  []      bboxSize      -1 -1 -1 [0,∞) or −1 −1 −1
+
 
}
 
}
 
</pre>
 
</pre>
The CADAssembly node holds a set of assemblies or parts grouped together.
 
  
 +
The Contour2D node groups a set of curve segments to a composite contour. The children shall form a closed loop with the first point of the first child repeated as the last point of the last child and the last point of a segment repeated as the first point of the consecutive one. The segments shall be defined by concrete nodes that implement the X3DNurbsControlCurveNode abstract type nodes and shall be enumerated in the ''children'' field in consecutive order according to the topology of the contour.
  
The ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
 
  
 
+
The 2D coordinates used by the node shall be interpreted to lie in the (u, v) coordinate space defined by the NURBS surface.
The ''name'' field documents the name of this CADAssembly.
+
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Revision as of 16:05, 1 February 2006

Contour2D

Contour2D : X3DNode { 
  MFNode [in]     addChildren         [NurbsCurve|ContourPolyline2D]
  MFNode [in]     removeChildren      [NurbsCurve|ContourPolyline2D]
  MFNode [in,out] children       []   [NurbsCurve|ContourPolyline2D]
  SFNode [in,out] metadata       NULL [X3DMetadataObject]
}

The Contour2D node groups a set of curve segments to a composite contour. The children shall form a closed loop with the first point of the first child repeated as the last point of the last child and the last point of a segment repeated as the first point of the consecutive one. The segments shall be defined by concrete nodes that implement the X3DNurbsControlCurveNode abstract type nodes and shall be enumerated in the children field in consecutive order according to the topology of the contour.


The 2D coordinates used by the node shall be interpreted to lie in the (u, v) coordinate space defined by the NURBS surface.