geom

Geom

Inherits: Object

Top level namespace for the library.

Enumerations

enum ThicknessSpaceGeom.ThicknessSpace

SPACE_WORLDGeom.ThicknessSpace.World = 0
World units, the same as a node's position.
SPACE_VIEWPORT_PIXELSGeom.ThicknessSpace.ViewportPixels = 1
The viewport's pixels. Constant size on screen at any zoom.
SPACE_VIEWPORT_PERCENTGeom.ThicknessSpace.ViewportPercent = 2
Percent of the viewport's shorter side. Like CSS vmin.

enum LineEndCapGeom.LineEndCap

CAP_NONEGeom.LineEndCap.None = 0
Cut off exactly at an endpoint.
CAP_SQUAREGeom.LineEndCap.Square = 1
Extend by half the thickness at an endpoint.
CAP_ROUNDGeom.LineEndCap.Round = 2
Extend by half the thickness, rounded.

enum LineGeometryGeom.LineGeometry

LINE_BILLBOARDGeom.LineGeometry.Billboard = 1
A flat quad that turns to face the camera.
LINE_VOLUMETRICGeom.LineGeometry.Volumetric3D = 2
Real tube geometry, with volume.

enum PolylineJoinGeom.PolylineJoin

JOIN_SIMPLEGeom.PolylineJoin.Simple = 0
The two segments meet at plain width, so the outside of the corner pinches in.
JOIN_MITERGeom.PolylineJoin.Miter = 1
The outside edges extend until they meet, clamped on sharp turns.
JOIN_ROUNDGeom.PolylineJoin.Round = 2
A disc over each corner.
JOIN_BEVELGeom.PolylineJoin.Bevel = 3
The outside of the corner cut off square.

enum BlendModeGeom.BlendMode

BLEND_OPAQUEGeom.BlendMode.Opaque = 0
Sorts by position. Hard edges: no anti-aliasing, and alpha is ignored.
BLEND_TRANSPARENTGeom.BlendMode.Transparent = 1
Standard alpha blending. The default.
BLEND_ADDITIVEGeom.BlendMode.Additive = 2
Adds this color to what is behind.
BLEND_MULTIPLYGeom.BlendMode.Multiply = 3
Multiplies what is behind by this color.
BLEND_SUBTRACTGeom.BlendMode.Subtract = 4
Subtracts this color from the background.
BLEND_TRANSPARENT_DEPTHGeom.BlendMode.TransparentDepth = 5
Transparent, but writes depth, so shapes with alpha 1 sort by position with anti-aliased edges. A translucent color behaves like Transparent.

enum DashSpaceGeom.DashSpace

DASH_WORLDGeom.DashSpace.World = 0
Dash size and spacing are lengths in world units.
DASH_RELATIVEGeom.DashSpace.Relative = 1
Dash size and spacing are multiples of the thickness.
DASH_FIXED_COUNTGeom.DashSpace.FixedCount = 2
Dash size is a number of dashes. Spacing is the gap relative to the dash.

enum DashSnapGeom.DashSnap

SNAP_OFFGeom.DashSnap.Off = 0
The pattern is cut wherever the shape ends.
SNAP_TILINGGeom.DashSnap.Tiling = 1
A whole number of dashes around the shape, so the pattern has no seam.
SNAP_END_TO_ENDGeom.DashSnap.EndToEnd = 2
A whole dash at each end of a line or arc.

enum DashTypeGeom.DashType

DASH_BASICGeom.DashType.Basic = 0
Square dash ends.
DASH_ANGLEDGeom.DashType.Angled = 1
Dash ends sheared into a parallelogram by dash_modifier on GeomDraw or modifier on GeomDash. At 0 it looks like DASH_BASIC.
DASH_ROUNDEDGeom.DashType.Rounded = 2
Rounded dash ends.

enum DiscTypeGeom.DiscType

DISC_DISCGeom.DiscType.Disc = 0
Filled circle.
DISC_PIEGeom.DiscType.Pie = 1
Filled circular sector, bounded by the start and end angle.
DISC_RINGGeom.DiscType.Ring = 2
Hollow ring. radius is to the middle of the wall.
DISC_ARCGeom.DiscType.Arc = 3
A section of a ring, bounded by the start and end angle.