Package shapes
Class STLModel
java.lang.Object
shapes.STLModel
This class represent a stl model. It has the MehsView, the name, the color and the position of the model
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.shape.MeshView
getName()
boolean
void
A method to set the color of the model.void
setColor
(javafx.scene.paint.PhongMaterial material) void
setMeshView
(javafx.scene.shape.MeshView mv) void
void
setVisible
(boolean val)
-
Constructor Details
-
STLModel
public STLModel(javafx.scene.shape.MeshView mv) -
STLModel
-
-
Method Details
-
setName
-
getName
-
setColor
A method to set the color of the model.- Parameters:
hex
- a hex value as a string
-
setColor
public void setColor(javafx.scene.paint.PhongMaterial material) -
setMeshView
public void setMeshView(javafx.scene.shape.MeshView mv) -
getMeshView
public javafx.scene.shape.MeshView getMeshView() -
setVisible
public void setVisible(boolean val) -
isVisible
public boolean isVisible()
-