import React from 'react'; import {FaceExplorer} from "./shellExplorer"; import { getCurveViewObjects, getEdgesViewObjects, getFacesViewObjects, getPointViewObjects, InteractiveSection } from "./utils"; export function FaceIntersectionsExplorer({faceIntersection, id, group3d}) { const category='face-intersections'; const context = faceIntersection; const {faceA, faceB, curve, nodes} = faceIntersection; return {nodes.map((node, i) =>
Enters: {node.enters[0] && 'A' } {node.enters[1] && 'B' }
Leaves: {node.leaves[0] && 'A' } {node.leaves[1] && 'B' }
)}
} function faceIntersectionsViewer(group3d, category, context, out, {faceA, faceB, curve, nodes}) { getFacesViewObjects(group3d, category, context, out, [faceA, faceB]); getCurveViewObjects(group3d, category, context, out, curve); nodesViewer(group3d, category, context, out, nodes); } function nodesViewer(group3d, category, context, out, nodes) { nodes.forEach(n => nodeViewer(group3d, category, context, out, n)); } function nodeViewer(group3d, category, context, out, nodes) { getPointViewObjects(group3d, category, context, out, nodes.point); }