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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.shape.MeshViewgetName()booleanvoidA method to set the color of the model.voidsetColor(javafx.scene.paint.PhongMaterial material) voidsetMeshView(javafx.scene.shape.MeshView mv) voidvoidsetVisible(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()
-