Closed JimmyHe0527 closed 1 month ago
Thanks for opening this issue @JimmyHe0527 - looking into it!
Interesting... If you reduce the slant angle to a value like 35, everything works. I have to review the mathematics I think... Thanks for bringing this up. I will follow up here as soon as I have some news!
🔍 Before submitting the issue
🐞 Description of the bug
The point connectivity when creating a trapezoidal sketch profile seems to be incorrect:
When inspecting the source code (src/ansys/geometry/core/sketch/trapezoid.py, lines 141-144), the connectivity order 1->2->3->4 ->1is used. Based on the point coordinates defined in lines 117-132, the correct order should be: 1->2->4->3->1
📝 Steps to reproduce
sketch.trapezoid(width=Distance(1), height=Distance(0.5), slant_angle=Angle( 90 , unit=UNITS.degrees) ) sketch.plot()
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024 R2, SP1
🐍 Which Python version are you using?
3.10
📦 Installed packages