C4 Engine
C4 Engine API Documentation

class HoleGeometry

Defined in:  C4Primitives.h
The HoleGeometry class represents a hole primitive node in a world.
Definition

class HoleGeometry final : public PrimitiveGeometry

Constructor

HoleGeometry(const Vector2D& inner, const Vector2D& outer);

Parameters
inner The size of the inner hole.
outer The size of the outer plate.
Description
The HoleGeometry class represents a hole primitive node in a world. In its local coordinate space, a hole primitive lies in the x-y plane with the center of the hole at the origin. The components of the inner parameter define the semiaxis lengths of the hole in the x and y directions, and the components of the outer parameter define the extents of the plate in the positive and negative x and y directions.

When a new hole geometry is created, the corresponding HoleGeometryObject is automatically created and referenced by the geometry node.
Base Classes
PrimitiveGeometry A hole is a specific type of primitive geometry.
See Also

HoleGeometryObject