DVScenePrimitive class final
A procedural shape, in the node's local space, centred on its origin.
Constructors
- DVScenePrimitive.box(DVVec3 size)
-
A box with full extents
size.const - DVScenePrimitive.plane(double width, double depth)
-
A flat plane in local XZ,
widthalong X anddepthalong Z. - DVScenePrimitive.sphere(double radius)
-
A sphere of
radius.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- localBounds → DVAabb
-
no setter
- radius → double
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → DVScenePrimitiveShape
-
final
- size → DVVec3
-
Full extents for a box or plane; the radius in every component for a
sphere.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Object? json, String path) → DVScenePrimitive