discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Namespace separation of included/used files?

T
Troberg
Thu, Jan 7, 2021 1:15 PM

Is there some way I can have separate namespaces in included files?

Example (very simplified, just to make the point):

include<otherthing.scad>;

module draw(){
//draw something
}

draw(); //draws something

otherthing.draw();  //calls draw from otherthing.scad

--
Sent from: http://forum.openscad.org/

Is there some way I can have separate namespaces in included files? Example (very simplified, just to make the point): include<otherthing.scad>; module draw(){ //draw something } draw(); //draws something otherthing.draw(); //calls draw from otherthing.scad -- Sent from: http://forum.openscad.org/