Open sloriot opened 1 year ago
It probably makes sense to add an overload for Bbox_3
here which constructs an exact iso cuboid. Would that solve your problem?
Is the bbox segment intersection computation done in the Mesh_3 code?
No that's the Kernel construction.
The code is using some calls to
to_double
which implies that the result cannot be exact. Why don't we use Iso_cuboid_3 implementation?
You need to use Coercion traits in case the kernel is something strange like FT = float
, it's done properly in the do_intersect()
(e.g. Bbox_3
, Plane_3
).
You mean Bbox_3/Line_3
, right?
You mean
Bbox_3/Line_3
, right?
Yes, sorry.
Do we speak about the predicate or the construction?
This comment for the bbox/isocuboid predicate mentions coercion traits.
The code is using some calls to
to_double
which implies that the result cannot be exact. Why don't we use Iso_cuboid_3 implementation?I'm not sure it is related but the following code fails (works with
Kernel::Isocuboid_3(bb)
instead ofbb
).