Interface NurbsCurve2D
- All Superinterfaces:
X3DNode
,X3DNurbsControlCurveNode
- All Known Implementing Classes:
NurbsCurve2D
NurbsCurve2D defines a trimming segment that is part of a trimming contour in the u-v domain of a surface.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
NurbsCurve2D node tooltip: [X3DNurbsControlCurveNode] NurbsCurve2D defines a trimming segment that is part of a trimming contour in the u-v domain of a surface. NurbsCurve2D and ContourPolyline2D nodes that together form a closed contour, defined in the u-v parametric space of a NURBS surface, may be used as children in a Contour2D node.
- Warning: NurbsCurve2D is not a renderable geometry node.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Provide boolean value from initializeOnly SFBool field named closed.double[]
Provide array of 2-tuple double results from inputOutput MFVec2d field named controlPoint.double[]
getKnot()
Provide array of double results from initializeOnly MFDouble field named knot.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.int
getOrder()
Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named order.int
Provide int value from inputOutput SFInt32 field named tessellation.double[]
Provide array of double results within allowed range of (0,infinity) from inputOutput MFDouble field named weight.setClosed
(boolean newValue) Accessor method to assign boolean value to initializeOnly SFBool field named closed.setControlPoint
(double[] newValue) Accessor method to assign 2-tuple double array to inputOutput MFVec2d field named controlPoint.setKnot
(double[] newValue) Accessor method to assign double array to initializeOnly MFDouble field named knot.setMetadata
(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setOrder
(int newValue) Accessor method to assign int value to initializeOnly SFInt32 field named order.setTessellation
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named tessellation.setWeight
(double[] newValue) Accessor method to assign double array to inputOutput MFDouble field named weight.
-
Method Details
-
getClosed
boolean getClosed()Provide boolean value from initializeOnly SFBool field named closed.
Tooltip: Whether or not the curve is closed (i.e. matching end values). *- Returns:
- value of closed field
-
setClosed
Accessor method to assign boolean value to initializeOnly SFBool field named closed.
Tooltip: Whether or not the curve is closed (i.e. matching end values). *- Parameters:
newValue
- is new value for the closed field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getControlPoint
double[] getControlPoint()Provide array of 2-tuple double results from inputOutput MFVec2d field named controlPoint.
Tooltip: controlPoint defines a set of control points of dimension uDimension by vDimension, and defines a mesh where the points do not have uniform spacing. *- Specified by:
getControlPoint
in interfaceX3DNurbsControlCurveNode
- Returns:
- value of controlPoint field
-
setControlPoint
Accessor method to assign 2-tuple double array to inputOutput MFVec2d field named controlPoint.
Tooltip: controlPoint defines a set of control points of dimension uDimension by vDimension, and defines a mesh where the points do not have uniform spacing. *- Specified by:
setControlPoint
in interfaceX3DNurbsControlCurveNode
- Parameters:
newValue
- is new value for the controlPoint field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getKnot
double[] getKnot()Provide array of double results from initializeOnly MFDouble field named knot.
Tooltip: knot vector, where size = number of control points + order of curve. *- Returns:
- value of knot field
-
setKnot
Accessor method to assign double array to initializeOnly MFDouble field named knot.
Tooltip: knot vector, where size = number of control points + order of curve. *- Parameters:
newValue
- is new value for the knot field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
X3DMetadataObject getMetadata()Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
getMetadata
in interfaceX3DNode
- Specified by:
getMetadata
in interfaceX3DNurbsControlCurveNode
- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
setMetadata
in interfaceX3DNode
- Specified by:
setMetadata
in interfaceX3DNurbsControlCurveNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getOrder
int getOrder()Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named order.
Tooltip: define order of surface by polynomials of degree = order-1. *- Returns:
- value of order field
-
setOrder
Accessor method to assign int value to initializeOnly SFInt32 field named order.
Tooltip: define order of surface by polynomials of degree = order-1. *- Parameters:
newValue
- is new value for the order field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getTessellation
int getTessellation()Provide int value from inputOutput SFInt32 field named tessellation.
Tooltip: hint for surface tessellation. *- Returns:
- value of tessellation field
-
setTessellation
Accessor method to assign int value to inputOutput SFInt32 field named tessellation.
Tooltip: hint for surface tessellation. *- Parameters:
newValue
- is new value for the tessellation field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getWeight
double[] getWeight()Provide array of double results within allowed range of (0,infinity) from inputOutput MFDouble field named weight.
Tooltip: Vector assigning relative weight value to each control point. *- Returns:
- value of weight field
-
setWeight
Accessor method to assign double array to inputOutput MFDouble field named weight.
Tooltip: Vector assigning relative weight value to each control point. *- Parameters:
newValue
- is new value for the weight field.- Returns:
NurbsCurve2D
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-