paralleldomain.model.geometry.polygon_3d¶
- class Polygon3DBaseGeometry(lines)¶
A closed polygon made a collection of 3D Lines.
- Parameters:
lines (
List
[Line3DBaseGeometry
[TypeVar
(T
,int
,float
)]]) –lines
class_id –
class_id
instance_id –
instance_id
attributes –
attributes
- lines¶
Ordered list of
Line3DBaseGeometry
instances
- class_id¶
Class ID of the polygon. Can be used to lookup more details in
ClassMap
.
- instance_id¶
Instance ID of annotated object. Can be used to cross-reference with other instance annotation types, e.g.,
InstanceSegmentation3D
orInstanceSegmentation3D
. If unknown defaults to -1.
- attributes¶
Dictionary of arbitrary object attributes.
- to_numpy()¶
Returns all ordered vertices as a numpy array of shape (N x 3).
- property length¶
Returns the length of the line.
- class Polygon3DGeometry(lines)¶
- Parameters:
lines (List[Line3DBaseGeometry[T]]) –
- to_numpy()¶
Returns all ordered vertices as a numpy array of shape (N x 3).
- property length¶
Returns the length of the line.