Skip to content

stl_boolean could accept expression rather than just two operands and an operation #4

@jallwine

Description

@jallwine

stl_boolean could accept named variables as arguments (-a selector_or_filename -b selector_or_filename -c selector_or_filename) and then accept an expression for how to combine them (+ for union, - for difference and & for intersection, I would think all with equal precedence).

An example:

# with files
stl_boolean -a a.stl -b b.stl -c c.stl “a&b-c” # would intersect a and b then subtract c.

# with streams and selector syntax suggested in #1
stl_cube | stl_torus | stl_cone | stl_boolean -a @index[0] -b @index[1] -c @index[2] “a&b-c” # would intersect the cube and torus then subtract the cone.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions