use of artisynth.core.femmodels.FemModel.ElementFilter in project artisynth_core by artisynth.
the class FemModel3dEditor method addNewSurfaceMesh.
private void addNewSurfaceMesh(FemModel3d model) {
GLViewer v = myMain.getViewer();
ElementFilter efilter = new ClippedElementFilter(v.getClipPlanes());
FemMeshComp mcomp = FemMeshComp.createSurface(null, model, efilter);
mcomp.setSurfaceRendering(SurfaceRender.Shaded);
model.addMeshComp(mcomp);
}
use of artisynth.core.femmodels.FemModel.ElementFilter in project artisynth_core by artisynth.
the class FemModel3dEditor method addNewSurfaceMeshForSelectedElements.
private void addNewSurfaceMeshForSelectedElements(FemModel3d model) {
ElementFilter efilter = new SelectedElementFilter();
FemMeshComp mcomp = FemMeshComp.createSurface(null, model, efilter);
mcomp.setSurfaceRendering(SurfaceRender.Shaded);
model.addMeshComp(mcomp);
}
Aggregations