Search in sources :

Example 1 with ElementFilter

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);
}
Also used : GLViewer(maspack.render.GL.GLViewer) FemMeshComp(artisynth.core.femmodels.FemMeshComp) ElementFilter(artisynth.core.femmodels.FemModel.ElementFilter)

Example 2 with ElementFilter

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);
}
Also used : FemMeshComp(artisynth.core.femmodels.FemMeshComp) ElementFilter(artisynth.core.femmodels.FemModel.ElementFilter)

Aggregations

FemMeshComp (artisynth.core.femmodels.FemMeshComp)2 ElementFilter (artisynth.core.femmodels.FemModel.ElementFilter)2 GLViewer (maspack.render.GL.GLViewer)1