mirror of https://github.com/vitalif/openscad
Implemented intersection_for
parent
1f0705f8a0
commit
7b31827fe3
|
@ -1087,5 +1087,16 @@ Response GeometryEvaluator::visit(State &state, const RenderNode &node)
|
||||||
|
|
||||||
Response GeometryEvaluator::visit(State &state, const AbstractIntersectionNode &node)
|
Response GeometryEvaluator::visit(State &state, const AbstractIntersectionNode &node)
|
||||||
{
|
{
|
||||||
assert(false);
|
if (state.isPrefix() && isCached(node)) return PruneTraversal;
|
||||||
|
if (state.isPostfix()) {
|
||||||
|
shared_ptr<const class Geometry> geom;
|
||||||
|
if (!isCached(node)) {
|
||||||
|
geom = applyToChildren(node, OPENSCAD_INTERSECTION).constptr();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
geom = GeometryCache::instance()->get(this->tree.getIdString(node));
|
||||||
|
}
|
||||||
|
addToParent(state, node, geom);
|
||||||
|
}
|
||||||
|
return ContinueTraversal;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue