public class SweptAreaSolid extends Entity implements IMeshConvertible
SweptAreaSolid constructs a geometry by sweeping a profile along a directrix.
Example:
The following code shows how to modeling an solid entity by sweeping a C-shape on a circle
var directrix = new Circle(20);
var shape = new CShape();
var swept = new SweptAreaSolid();
swept.setShape(shape);
swept.setDirectrix(directrix);
swept.setStartPoint(EndPoint.fromDegree(0));
swept.setEndPoint(EndPoint.fromDegree(130));
var scene = new Scene();
scene.getRootNode().createChildNode(swept);
scene.save("swept.obj");
name, properties| Constructor and Description |
|---|
SweptAreaSolid() |
| Modifier and Type | Method and Description |
|---|---|
Curve |
getDirectrix()
The directrix that the swept area sweeping along with.
|
EndPoint |
getEndPoint()
The end point of the directrix.
|
Profile |
getShape()
The base profile to construct the geometry.
|
EndPoint |
getStartPoint()
The start point of the directrix.
|
void |
setDirectrix(Curve value)
The directrix that the swept area sweeping along with.
|
void |
setEndPoint(EndPoint value)
The end point of the directrix.
|
void |
setShape(Profile value)
The base profile to construct the geometry.
|
void |
setStartPoint(EndPoint value)
The start point of the directrix.
|
Mesh |
toMesh()
Convert current object to mesh
|
getBoundingBox, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNodegetScenefindProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setPropertypublic Profile getShape()
public void setShape(Profile value)
value - New valuepublic Curve getDirectrix()
public void setDirectrix(Curve value)
value - New valuepublic EndPoint getStartPoint()
public void setStartPoint(EndPoint value)
value - New valuepublic EndPoint getEndPoint()
public void setEndPoint(EndPoint value)
value - New valuepublic Mesh toMesh()
toMesh in interface IMeshConvertible