Rhino script question


Results 1 to 8 of 8

Thread: Rhino script question

  1. #1
    Registered
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default Rhino script question

    Hi iam wondering if its possible to write a script that will tell me if the selected object is closed or not.?

    Is there a way of creating text in the command line as an output?

    ?????.

    Similar Threads:


  2. #2
    Member Dan B's Avatar
    Join Date
    Apr 2003
    Location
    Ontario
    Posts
    1357
    Downloads
    0
    Uploads
    0

    Default

    I wrote a script a long time ago that will report if an object is a closed "solid", and if not, it will report the number of naked edges. However, it's kind of pointless now as the ShowEdge command will do this for you, as well as show you the naked edges, and even let you zoom closer to them.

    It also outputs the results to the command line.

    Does this work for you, or is there something else you need it to do?

    Dan

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    Ta. No want to be able to check curves as well.



  4. #4
    Member Dan B's Avatar
    Join Date
    Apr 2003
    Location
    Ontario
    Posts
    1357
    Downloads
    0
    Uploads
    0

    Default

    Yes, this can be done. So do you need it to report closed polysurfaces and closed curves, or just curves?

    Dan

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  5. #5
    Registered
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Dan B View Post
    Yes, this can be done. So do you need it to report closed polysurfaces and closed curves, or just curves?

    Dan
    Both.



  6. #6
    Member Dan B's Avatar
    Join Date
    Apr 2003
    Location
    Ontario
    Posts
    1357
    Downloads
    0
    Uploads
    0

    Default

    Contact me at rhinomech@gmail.com and we can arrange something.

    Dan

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  7. #7
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    436
    Downloads
    0
    Uploads
    0

    Default

    You could select the curve, press explode, then join. It will tell you something like "3 opens curves joined into 1 closed curve". Rhino 4.0 does this.

    The best way is to select the curve, then Anylize_Mass Properties_Area. This will tell you in the command prompt whether or not it is closed.



  8. #8
    Registered
    Join Date
    Sep 2004
    Location
    Switzerland
    Posts
    264
    Downloads
    0
    Uploads
    0

    Default

    The best way is to select the curve, then Anylize_Mass Properties_Area. This will tell you in the command prompt whether or not it is closed.
    Wouldn't it just be simpler to use SelOpenCrv, SelOpenSrf or SelOpenPolysrf? Or their counterparts SelClosedCrv, SelClosedSrf or SelClosedPolysrf?

    Whatever highlights (or not) will show you what you need to know.

    You can also macro the three together into one command, give it an alias of something like SelOpenObjects or SelClosedObjects...

    Or do you really need the script or command line report for something else?

    --ch



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Rhino script question

Rhino script question