Forgot password?

Create an account!


« back

Python – U, and V surface directions


Please log in to write a message.

  • 4. BarneyJ (Oct 07, 2016 10.48):

    Here may be answer for your question. Try to find out. Helped me couple times, good luck!

  • 3. fireproof_boots (Jul 02, 2015 19.50):

    I might be talking to myself, but how I think I have done this:

    import rhinoscriptsyntax as rs
    srfs = rs.ObjectsByType(8)

    for srf in srfs:
    points = rs.SurfacePoints(srf)
    for point in points:
    uvPt = rs.SurfaceClosestPoint(srf, point)
    frame = rs.SurfaceFrame(srf, uvPt)
    u_vector = frame[1]
    v_vector = frame[2]

    Then do whatever you want with the vectors (I was actually just trying to check their component signs). Making an individual reference frame at each point may be a round about way to do this though.

  • 2. fireproof_boots (Jul 02, 2015 19.21):

    Sorry if it wasn't clear - I'm hoping to get these values using a Python script using rhinoscriptsyntax.

  • 1. fireproof_boots (Jul 02, 2015 19.17):

    I only recently started using Rhino with rhinoscript and python, so this may be straightforward but I have not been able to determine how to do it.

    I am trying to get the U- and V-direction vectors across from a surface. Similar to how when you use the 'Dir' command, you can see the U, V, and normal vectors. Is there an easy way to get the vectors for the U and V directions?


Why are these buttons gray?