src/hmisc/hasts/openscad_ast

    Dark Mode
Search:
Group by:
  Source   Edit

Procs

proc `$`(size: Size3): string {....raises: [ValueError], tags: [].}
  Source   Edit
proc addComment(node: ScadNode; comment: string): ScadNode {....raises: [],
    tags: [].}
  Source   Edit
proc makeCube(size: Size3; center: bool = false): ScadNode {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
proc makeCube(size: Size3; center: Vec3): ScadNode {....raises: [ValueError],
    tags: [].}
  Source   Edit
proc makeCube(w, d, h: float): ScadNode {....raises: [ValueError], tags: [].}
  Source   Edit
proc makeGroup(elements: openArray[ScadNode]; gType: GroupModeType = gmtRegular): ScadNode {.
    ...raises: [], tags: [].}
Make group node   Source   Edit
proc makeGroupWith(node: ScadNode; other: openArray[ScadNode];
                   reverse: bool = false): ScadNode {....raises: [], tags: [].}
Add scad node to group with other elements. It will be added as first or last based on reverse value: true to add as last, false otherwise   Source   Edit
proc makeScad(name: string; params: varargs[tuple[key, val: string]]): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc makeScadComment(text: string): ScadNode {....raises: [], tags: [].}
  Source   Edit
proc makeScadInclude(path: string): ScadNode {....raises: [], tags: [].}
  Source   Edit
proc makeScadModule(name: string; body: openArray[ScadNode];
                    args: varargs[tuple[key, val: string]]): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc makeScadTree(name: string; children: openArray[ScadNode];
                  params: varargs[tuple[key, val: string]]): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc makeScadVar(name, defValue: string): ScadNode {....raises: [], tags: [].}
  Source   Edit
proc scadOperator(node: ScadNode; name: string;
                  params: varargs[tuple[key, val: string]]): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc scadRotate(node: ScadNode; angle: float | string; x = 0.0; y = 0.0; z = 1.0): ScadNode
  Source   Edit
proc scadSubtract(node: ScadNode; subtract: ScadNode; traceColor: string): ScadNode {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
proc scadSubtract(node: ScadNode; subtract: seq[ScadNode]; traceColor: string): ScadNode {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
proc scadSubtract(node: ScadNode; subtract: varargs[ScadNode]): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc scadTranslate(node: ScadNode; pos: string): ScadNode {....raises: [], tags: [].}
  Source   Edit
proc scadTranslate(node: ScadNode; pos: Vec): ScadNode {....raises: [ValueError],
    tags: [].}
  Source   Edit
proc scadTranslate(node: ScadNode; pos: Vec3): ScadNode {....raises: [ValueError],
    tags: [].}
  Source   Edit
proc scadTranslate(node: ScadNode; x = 0.0; y = 0.0; z = 0.0): ScadNode {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
proc scadUnion(node: ScadNode; subtract: varargs[ScadNode]): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc setColor(node: ScadNode; colorname: string; a = 1.0): ScadNode {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
proc setColor(node: ScadNode; r = 0.0; g = 0.0; b = 0.0; a = 1.0): ScadNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc toString(node: ScadNode): string {....raises: [ValueError], tags: [].}
  Source   Edit
proc wrapComment(node: ScadNode; comment: string): ScadNode {....raises: [],
    tags: [].}
  Source   Edit