mattools / matGeom

Matlab geometry toolbox for 2D/3D geometric computing
BSD 2-Clause "Simplified" License
263 stars 95 forks source link

clipPolygon3dHP is not fully implemented #164

Closed dlegland closed 11 months ago

oqilipo commented 11 months ago

There are still two todos in clipPolygon3dHP

grafik

oqilipo commented 11 months ago

Two questions remain: What should be the output if the plane is same as polygon plane? Should we rename this function to: clipPolygonByPlane3d?

Maybe reopen till final decision?

dlegland commented 11 months ago

Yes, I agree.

my opinion about the two questions:

best, David

oqilipo commented 11 months ago

Sounds good!

One more question. Before processing the input polygon it is checked if all points are in a plane. What tolerance would you use here? At the moment it is. 1e-8. But maybe you use some other (default) tolerance in other functions?

Kind regards

oqilipo commented 11 months ago

Sounds good!

One more question. Before processing the input polygon it is checked if all points are in a plane. What tolerance would you use here? At the moment it is. 1e-8. But maybe you use some other (default) tolerance in other functions?

Kind regards

I've changed it to 1e-14 now.

dlegland commented 11 months ago

Hi,

there is no absolute default for tolerance within the library. I often use 1e-8, but other functions use 1e-12. Value 1e-14 is fine as well for me.

The problem is that this often depends on the range of input data. I usually try to make the tests on normalized values, but there stille may be some uncoverd cases;