Skip to content

Commit a6bb13a

Browse files
committed
pierre comments
1 parent aa2e917 commit a6bb13a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

include/geode/mesh/core/solid_mesh.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

src/geode/model/representation/core/brep.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)