Grasshopper

algorithmic modeling for Rhino

Hello,

I'm trying to rebuild a trimmed surface in Python, but in the process the surface is always untrimmed. How do I stop that from happening?

My code:

import Rhino as rc

eps = rs.SurfaceEditPoints(srf)

udist = eps[0].DistanceTo(eps[2])
vdist = eps[0].DistanceTo(eps[1])

u = int(udist/resolution)
v = int(vdist/resolution)

rebuilt = srf.Rebuild(3,3,u,v)

Cheers,

Max

Views: 910

Attachments:

Replies to This Discussion

Perfect, thanks!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service