tpaviot / pythonocc-demos

Examples and demos for the pythonocc CAD package
216 stars 115 forks source link

Error in Example File: core_geometry_oriented_bounding_box #64

Open JonathanFalise opened 1 year ago

JonathanFalise commented 1 year ago

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