Graphics.Triangle(Point3D...) performance vs Graphics.Rectangle()

Graphics.Triangle(Point3D...) performance vs Graphics.Rectangle()

alexisDVJML
Collaborator Collaborator
334 Views
0 Replies
Message 1 of 1

Graphics.Triangle(Point3D...) performance vs Graphics.Rectangle()

alexisDVJML
Collaborator
Collaborator

While profiling my plugin rendering for performance issues, I discovered that, surprisingly, Graphics.Triangle is 2x slower than Graphics.Rectangle, while I had expected the opposite since triangles are the basic of 3D rendering and a rectangle should be made of 2 of these.

Anyone at Autodesk could have a look and comment?
PS: profiling done on Navisworks Manage 2019, I will schedule doing similar measurement with 2020 version.

Main Scientist, Full Stack Developer & When Time Permits Director of IDIGO ► On your marks, Set, Go
0 Likes
335 Views
0 Replies
Replies (0)