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

    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?

    ?????.


  2. #2
    Moderator
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    817
    Downloads
    0
    Uploads
    0
    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
    Ta. No want to be able to check curves as well.


  4. #4
    Moderator
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    817
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    12
    Downloads
    0
    Uploads
    0
    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
    Moderator
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    817
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    448
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Sep 2004
    Location
    Switzerland
    Posts
    264
    Downloads
    0
    Uploads
    0
    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


  • Similar Threads

    1. Rhino Video Tutorial - Create a Diamond Solid in Rhino
      By Robert Schutz in forum Rhino 3D
      Replies: 2
      Last Post: 06-02-2008, 02:58 PM
    2. Rhino and Sheetcam question...
      By gregrnel in forum SheetCam
      Replies: 2
      Last Post: 07-22-2007, 08:12 PM
    3. split question in Rhino
      By turmite in forum Rhino 3D
      Replies: 10
      Last Post: 06-20-2006, 08:33 AM
    4. Rhino script question
      By sdantonio in forum Rhino 3D
      Replies: 0
      Last Post: 04-18-2006, 09:57 PM
    5. Rhino or Onecnc ? That is the question.
      By 1bordeaux in forum General CAM Discussion
      Replies: 4
      Last Post: 05-09-2005, 07:51 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.