Package com.aspose.threed
Class NurbsSurface
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Geometry
-
- com.aspose.threed.NurbsSurface
-
- All Implemented Interfaces:
IMeshConvertible
public class NurbsSurface extends Geometry implements IMeshConvertible
NurbsSurface
is a surface represented by NURBS(Non-uniform rational basis spline), ANurbsSurface
is defined by twoNurbsDirection
getU()
andgetV()
. The w component in control point is used as control point's weight whatever the direction's type is aCurveDimension.TWO_DIMENSIONAL
orCurveDimension.THREE_DIMENSIONAL
-
-
Constructor Summary
Constructors Constructor Description NurbsSurface()
Initializes a new instance of theNurbsSurface
class.NurbsSurface(java.lang.String name)
Initializes a new instance of theNurbsSurface
class.
-
Method Summary
Modifier and Type Method Description protected RenderableResource
createRenderableResource(Renderer renderer)
CreateRenderableResource
for renderingNurbsDirection
getU()
Gets the nurbs surface's U directionNurbsDirection
getV()
Gets the nurbs surface's V directionMesh
toMesh()
Convert the nurbs surface to the mesh-
Methods inherited from class com.aspose.threed.Geometry
addElement, createElement, createElement, createElementUV, createElementUV, getBoundingBox, getCastShadows, getControlPoints, getDeformers, getDeformers2, getElement, getReceiveShadows, getVertexElementOfUV, getVertexElements, getVisible, setCastShadows, setReceiveShadows, setVisible
-
Methods inherited from class com.aspose.threed.Entity
getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
NurbsSurface
public NurbsSurface()
Initializes a new instance of theNurbsSurface
class.
-
NurbsSurface
public NurbsSurface(java.lang.String name)
Initializes a new instance of theNurbsSurface
class.- Parameters:
name
- Name.
-
-
Method Detail
-
getU
public NurbsDirection getU()
Gets the nurbs surface's U direction
-
getV
public NurbsDirection getV()
Gets the nurbs surface's V direction
-
toMesh
public Mesh toMesh()
Convert the nurbs surface to the mesh- Specified by:
toMesh
in interfaceIMeshConvertible
- Returns:
- The mesh.
-
createRenderableResource
protected RenderableResource createRenderableResource(Renderer renderer)
CreateRenderableResource
for rendering- Overrides:
createRenderableResource
in classEntity
- Parameters:
renderer
-
-
-