use of org.twak.tweed.gen.JmeGen in project chordatlas by twak.
the class SkelGen method calculate.
@Override
public void calculate() {
for (Spatial s : gNode.getChildren()) s.removeFromParent();
Node pNode = new Node();
if (toRender != null)
for (int i = 0; i < toRender.faces.size(); i++) try {
HalfFace f = toRender.faces.get(i);
SuperFace sf = (SuperFace) f;
PlanSkeleton skel = calc(sf);
if (skel != null)
setSkel(skel, skel.output, sf);
} catch (Throwable th) {
th.printStackTrace();
}
if (!pNode.getChildren().isEmpty())
tweed.frame.addGen(new JmeGen("sProfs", tweed, pNode), false);
gNode.updateModelBound();
gNode.updateGeometricState();
super.calculate();
}