File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
src/geode/model/representation/core Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -452,8 +452,8 @@ namespace geode
452452 const PolyhedronFacet& polyhedron_facet ) const ;
453453
454454 /* !
455- * Return the normal of a given PolyhedronFacet (should be oriented
456- * towards the inside of the polyhedron).
455+ * Return the normal of a given PolyhedronFacet (in the geode
456+ * convention, it is oriented towards the inside of the polyhedron).
457457 * @param[in] polyhedron_facet Local index of facet in polyhedron.
458458 */
459459 [[nodiscard]] std::optional< Vector3D > polyhedron_facet_normal (
Original file line number Diff line number Diff line change @@ -917,11 +917,7 @@ namespace geode
917917 bbox.add_box ( block_mesh.bounding_box () );
918918 bbox_computed = true ;
919919 }
920- OPENGEODE_EXCEPTION ( bbox_computed,
921- " [BRep::bounding_box] Cannot return the bounding_box of a BRep "
922- " with not meshed Blocks and no Corners, no Lines and no "
923- " Surfaces." );
924- OPENGEODE_EXCEPTION ( bbox.min () <= bbox.max (),
920+ OPENGEODE_EXCEPTION ( bbox_computed && bbox.min () <= bbox.max (),
925921 " [BRep::bounding_box] Cannot return the "
926922 " bounding_box of an empty BRep." );
927923 return bbox;
You can’t perform that action at this time.
0 commit comments