omdl  v0.9.5
OpenSCAD Mechanical Design Library
Conditional Operations

Conditional transformations and operations. More...

+ Collaboration diagram for Conditional Operations:

Files

file  operation_cs.scad
 Conditional version of standard transformations and operations.
 

Functions

module hull_cs (c=true, s)
 Conditionally apply the convex hull transformation. More...
 
module minkowski_cs (c=true, s, convexity)
 Conditionally apply the minkowski sum transformation. More...
 
module union_cs (c=true, s)
 Conditionally apply the union boolean operation. More...
 
module difference_cs (c=true, s)
 Conditionally apply the difference boolean operation. More...
 
module intersection_cs (c=true, s)
 Conditionally apply the difference intersection operation. More...
 

Detailed Description

Conditional transformations and operations.

Requires:
include <omdl-base.scad>;
include <tools/operation_cs.scad>;

Function Documentation

◆ difference_cs()

module difference_cs ( = true,
 
)

Conditionally apply the difference boolean operation.

Parameters
c<boolean> conditional.
s<integer|integer-list|range> child object selection(s).

When c is true, apply the operation on the children objects, otherwise return the children unmodified. When a child object selection is specified, only the selected children are returned irrespective of c.

Definition at line 263 of file operation_cs.scad.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hull_cs()

module hull_cs ( = true,
 
)

Conditionally apply the convex hull transformation.

Parameters
c<boolean> conditional.
s<integer|integer-list|range> child object selection(s).

When c is true, apply the transformation to the children objects, otherwise return the children unmodified. When a child object selection is specified, only the selected children are returned irrespective of c.

Definition at line 168 of file operation_cs.scad.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ intersection_cs()

module intersection_cs ( = true,
 
)

Conditionally apply the difference intersection operation.

Parameters
c<boolean> conditional.
s<integer|integer-list|range> child object selection(s).

When c is true, apply the operation on the children objects, otherwise return the children unmodified. When a child object selection is specified, only the selected children are returned irrespective of c.

Definition at line 293 of file operation_cs.scad.

+ Here is the call graph for this function:

◆ minkowski_cs()

module minkowski_cs ( = true,
,
convexity   
)

Conditionally apply the minkowski sum transformation.

Parameters
c<boolean> conditional.
s<integer|integer-list|range> child object selection(s).
convexity<integer> The maximum number of front sides (or back sides) a ray intersection the object might penetrate..

When c is true, apply the transformation to the children objects, otherwise return the children unmodified. When a child object selection is specified, only the selected children are returned irrespective of c.

Definition at line 199 of file operation_cs.scad.

+ Here is the call graph for this function:

◆ union_cs()

module union_cs ( = true,
 
)

Conditionally apply the union boolean operation.

Parameters
c<boolean> conditional.
s<integer|integer-list|range> child object selection(s).

When c is true, apply the operation on the children objects, otherwise return the children unmodified. When a child object selection is specified, only the selected children are returned irrespective of c.

Definition at line 234 of file operation_cs.scad.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: