Home Reference Source
import {Operation} from 'rabbit-hole'
public class | source

Operation

A CSG operation.

Constructor Summary

Public Constructor
public

Constructs a new operation.

Member Summary

Public Members
public

The type of this operation.

Method Summary

Public Methods
public

Calculates the bounding box of this CSG operation while taking all child operations into account.

public

getBoundingBox(): Box3

Calculates the complete bounding box of this CSG operation if it doesn't exist yet and returns it.

Public Constructors

public constructor(type: OperationType) source

Constructs a new operation.

Params:

NameTypeAttributeDescription
type OperationType

The type of this operation.

...children Operation

Child operations.

Public Members

public type: OperationType source

The type of this operation.

Public Methods

public computeBoundingBox(): Box3 source

Calculates the bounding box of this CSG operation while taking all child operations into account.

Return:

Box3

The bounding box.

public getBoundingBox(): Box3 source

Calculates the complete bounding box of this CSG operation if it doesn't exist yet and returns it.

Return:

Box3

The bounding box.