poctools module

Primitives

Each primitive is added to the currently active group operation. At the outermost level, the active group operation is union().

Postfix operations

A postfix operation modifies the currently active group operation in a way other than adding another primitive to it.

Group operations

A group operation is introduced by the with statement, such as with Intersection():. At the conclusion of the with statement, its whole contents are treated as a primitive in the outer operation.

Remember that you can introduce more than one nested group operation with a single with statement (and thus a single indentation level):

with Fillet(8), Difference():
   suite

is equivalent to:

with Fillet(8):
    with Difference():
        suite

Inquiries

An inquiry returns information about the currently active group operation. These inquiries can be used to make decisions, or may also be useful to pass to postfix operations (e.g., to Fillet‘s edges= parameter)

Other routines

These routines are not normally used in poc programs, but may be useful for wrapper programs or for implementing new operations.