(self, render_holes: bool = False)
return s
NOTE: In general, you won't want to call this method. For most purposes,
        you really want scad_render(), 
        Calling obj._render won't include necessary 'use' or 'include' statements
NOTE: In general, you won't want to call this method. For most purposes,
        you really want scad_render(), 
        Calling obj._render won't include necessary 'use' or 'include' statements
NOTE : In general you won t want to call this method . For most purposes you really want scad_render () Calling obj . _render won t include necessary use or include statements
def _render(self, render_holes: bool = False) -> str:
        """
        NOTE: In general, you won't want to call this method. For most purposes,
        you really want scad_render(), 
        Calling obj._render won't include necessary 'use' or 'include' statements
        """
        # First, render all children
        s = ""
        for child in self.children:
            # Don't immediately render hole children.
            # Add them to the parent's hole list,
            # And render after everything else
            if not render_holes and child.is_hole:
                continue
            s += child._render(render_holes)

        # Then render self and prepend/wrap it around the children
        # I've added designated parts and explicit holes to SolidPython.
        # OpenSCAD has neither, so don't render anything from these objects
        if self.name in non_rendered_classes:
            pass
        elif not self.children:
            s = self._render_str_no_children() + ";"
        else:
            s = self._render_str_no_children() + " {" + indent(s) + "\n}"

        # If this is the root object or the top of a separate part,
        # find all holes and subtract them after all positive geometry
        # is rendered
        if (not self.parent) or self.is_part_root:
            hole_children = self.find_hole_children()

            if len(hole_children) > 0:
                s += "\n/* Holes Below*/"
                s += self._render_hole_children()

                # wrap everything in the difference
                s = "\ndifference(){" + indent(s) + " /* End Holes */ \n}"
        return s
def _render ( self , render_holes : bool = False ) -> str : # First, render all children s = "" for child in self . children : # Don't immediately render hole children. # Add them to the parent's hole list, # And render after everything else if not render_holes and child . is_hole : continue s += child . _render ( render_holes ) # Then render self and prepend/wrap it around the children # I've added designated parts and explicit holes to SolidPython. # OpenSCAD has neither, so don't render anything from these objects if self . name in non_rendered_classes : pass elif not self . children : s = self . _render_str_no_children ( ) + ";" else : s = self . _render_str_no_children ( ) + " {" + indent ( s ) + "\n}" # If this is the root object or the top of a separate part, # find all holes and subtract them after all positive geometry # is rendered if ( not self . parent ) or self . is_part_root : hole_children = self . find_hole_children ( ) if len ( hole_children ) > 0 : s += "\n/* Holes Below*/" s += self . _render_hole_children ( ) # wrap everything in the difference s = "\ndifference(){" + indent ( s ) + " /* End Holes */ \n}" return s