pythonocc-demos icon indicating copy to clipboard operation
pythonocc-demos copied to clipboard

Error in Example File: core_geometry_oriented_bounding_box

Open JonathanFalise opened this issue 1 year ago • 0 comments

Hi,

While trying to understand how to display bounding box of shapes, I discovered that the example core_geometry_oriented_bounding_box doesn't run through.

Error message prompt: Exception has occurred: RuntimeError "Standard_ConstructionErrorgp_Dir() - input vector has zero norm raised from method gp_Dir of class gp_Dir" "RuntimeError: Standard_ConstructionErrorgp_Dir() - input vector has zero norm raised from method gp_Dir of class gp_Dir"

I believe the error is on line 44, with both gp_Dir(aZDir) and gp_Dir(aXDir)

Thank you for the work

JonathanFalise avatar May 11 '23 13:05 JonathanFalise