Mar 26, 2015


  • administrators

    Alejandro Silvestri
    I'm amazed with openJSCAD!
    I hope I'm not annoying anybody with my questions:

    1- A way to copy/clone a body?
    2- Is there a simple way to intersect a body with a plane and get the 2D path footprint?
    3- Which method on a body get the surface polygons?

    Thank you very much.
    3 comments
    3
    one plus one
    1
    no shares
    Shared publicly•View activity

    Alejandro Silvestri
    +Anthony Liekens , thank you for the response.  Please give me an example, let's say:
    
    var cube = CSG.cube({
      center: [0, 0, 0],
      radius: [1, 1, 1]
    });
    
    var cube2 = ?
    
    How to define cube as its own function?
    

    Mar 30, 2015
    Alejandro Silvestri
    Found some of it, didn't try them yet:

    1. solid.sectionCut()
    2. solid.polygons , gives an array of polygons

    Mar 30, 2015
    Alejandro Silvestri
    +Anthony Liekens , ok, thank you for the explanation.
    Unfortunately I was looking for some way to clone an existing solid. But I understand there is no simple way for this, so I'll keep in mind your solution.