GeomCone
Inherits: Node3D
A solid cone in 3D space, standing on its base and pointing up.
Drawing it
The code behind the picture above.
GeomDraw.matrix = Transform3D.IDENTITY
GeomDraw.blend_mode = Geom.BLEND_OPAQUE
GeomDraw.cone_colored(Vector3(0, -0.9, 0), 0.9, 1.9, MINT) Properties
| BlendMode | blend_mode | Geom.BLEND_OPAQUE |
| bool | cap | true |
| Color | color | Color(1, 1, 1, 1) |
| float | length | 1.0 |
| int | primitive_detail | 24 |
| float | radius | 0.5 |
| float | shading | 0.75 |
Enumerations
enum Geom.BlendMode
- Geom.BLEND_OPAQUE = 0
- Writes depth and sorts against other geometry; hard edges, no fade.
- Geom.BLEND_TRANSPARENT = 1
- Standard alpha compositing. The default.
- Geom.BLEND_ADDITIVE = 2
- Brightens what is behind. Good for glows.
- Geom.BLEND_MULTIPLY = 3
- Darkens what is behind. Good for tints.
- Geom.BLEND_SUBTRACT = 4
- Subtracts this color from the background.
- Geom.BLEND_TRANSPARENT_DEPTH = 5
- Transparent, but writing depth so shapes occlude by position.
Property descriptions
BlendMode blend_mode = Geom.BLEND_OPAQUE
How following shapes combine with what is already drawn.
bool cap = true
Whether the base is filled in. An open cone is cheaper and is invisible from above.
Color color = Color(1, 1, 1, 1)
Fill color for the solid.
float length = 1.0
Height from base to tip, in meters.
int primitive_detail = 24
Segments around the base. Higher is rounder and costs more vertices.
float radius = 0.5
Radius of the base, in meters.
float shading = 0.75
How strongly the built-in key light shades the solid, 0 flat to 1 full.