Obtain surface points for trimmed surfaces

32 views
Skip to first unread message

Sagar Jalui

unread,
May 5, 2021, 11:57:44 AM5/5/21
to NURBS-Python

Hi Onur,

Once again thanks for creating this super awesome package and for being responsive on the group.
I learnt how to obtain 2D parametric coordinates on a parametric surface from Cartesian coordinates of the trimming curves by utilizing the point inversion algorithm that was discussed by Andras and shared on this group!

I wanted to find out what would be the best way to obtain the surface points of the trimmed surface after the surf.trims step. I tried surf.evalpts but that gives the surface points of the untrimmed surface.

Any and all help is highly appreciated!! Thanks so much!

Best,
Sagar

Onur Bingol

unread,
May 6, 2021, 10:16:34 AM5/6/21
to nurbs-python, sagar0607
Hi Sagar,

You are right, "evalpts" won't get updated after trimming. I guess we could consider this as a very minor bug. However, the points after the trimming are stored in the tessellator. You should be able to access them via "vertices" property.

Here are the links to the documentation:


Thanks,
Onur




---- On Wed, 05 May 2021 08:57:44 -0700 Sagar Jalui <saga...@hotmail.com> wrote ----

--
You received this message because you are subscribed to the Google Groups "NURBS-Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nurbs-python...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nurbs-python/a129090f-dbaa-4316-87d5-bbf3d58ff631n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages