@@ -27,6 +27,7 @@ import {
2727 shouldRecordTrajectoryHistoryPoint
2828} from './utils/trajectoryState' ;
2929import {
30+ buildVerifiedBoundaryCycles ,
3031 collectGeometricOffsetBoundaryPoints ,
3132 collectExtendedManifoldBranches ,
3233} from './utils/geometricOffsetSeed' ;
@@ -497,11 +498,20 @@ const SetValuedViz = () => {
497498 [ boundarySourceManifolds ]
498499 ) ;
499500
500- const calculatedBoundaryBranches = useMemo (
501- ( ) => collectExtendedManifoldBranches ( boundarySourceManifolds ) ,
501+ const verifiedBoundaryCycles = useMemo (
502+ ( ) => buildVerifiedBoundaryCycles ( boundarySourceManifolds ) ,
502503 [ boundarySourceManifolds ]
503504 ) ;
504505
506+ const calculatedBoundaryBranches = useMemo (
507+ ( ) => verifiedBoundaryCycles . length > 0
508+ ? verifiedBoundaryCycles
509+ : collectExtendedManifoldBranches ( boundarySourceManifolds ) ,
510+ [ boundarySourceManifolds , verifiedBoundaryCycles ]
511+ ) ;
512+
513+ const hasVerifiedBoundaryCycles = verifiedBoundaryCycles . length > 0 ;
514+
505515 const boundaryLayers = useMemo ( ( ) => {
506516 if ( calculatedBoundaryBranches . length === 0 ) {
507517 return {
@@ -2478,6 +2488,7 @@ const SetValuedViz = () => {
24782488 3.4 ,
24792489 0.24 ,
24802490 'unstable-manifold' ,
2491+ hasVerifiedBoundaryCycles ,
24812492 ) ;
24822493 }
24832494 } ) ;
@@ -2498,6 +2509,7 @@ const SetValuedViz = () => {
24982509 2.6 ,
24992510 0.23 ,
25002511 'deterministic-image' ,
2512+ hasVerifiedBoundaryCycles ,
25012513 ) ;
25022514 }
25032515 } ) ;
@@ -2806,7 +2818,7 @@ const SetValuedViz = () => {
28062818 scene . add ( sphere ) ;
28072819 }
28082820
2809- } , [ manifoldState , geometricOffsetState , bdeState , dynamicSystem , type , viewRange , readViewportSize , geometricOffsetBoundaryPoints , boundaryLayers , hasBoundarySamples , params . epsilon ] ) ;
2821+ } , [ manifoldState , geometricOffsetState , bdeState , dynamicSystem , type , viewRange , readViewportSize , geometricOffsetBoundaryPoints , boundaryLayers , hasBoundarySamples , hasVerifiedBoundaryCycles , params . epsilon ] ) ;
28102822
28112823 useEffect ( ( ) => {
28122824 if ( ! sceneRef . current ) return ;
0 commit comments