eVision Python API
Loading...
Searching...
No Matches
eVision.Easy3D.EPlaneCropper Class Reference

A eVision.Easy3D.EPlaneCropper object is used to crop some points of a eVision.Easy3D.EPointCloud object. More...

Public Member Functions

None __init__ (self)
 Creates an eVision.Easy3D.EPlaneCropper object using a horizontal plane as a default reference.
None __init__ (self, eVision.Easy3D.E3DPlane plane)
 Creates an eVision.Easy3D.EPlaneCropper object using a horizontal plane as a default reference.
None __init__ (self, eVision.Easy3D.EPlaneCropper other)
 Creates an eVision.Easy3D.EPlaneCropper object using a horizontal plane as a default reference.
None Load (self, str path)
 Loads the eVision.Easy3D.EPlaneCropper configuration.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.Easy3D.EPlaneCropper configuration.
None Save (self, str path)
 Saves the eVision.Easy3D.EPlaneCropper configuration.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.Easy3D.EPlaneCropper configuration.
None Crop (self, eVision.Easy3D.EPointCloud cloudIn, eVision.Easy3D.EPointCloud cloudOut, eVision.Easy3D.EPlaneCropperType type, float maxDistance)
 Crops an eVision.Easy3D.EPointCloud.
None Crop (self, eVision.Easy3D.EPointCloud cloudIn, eVision.Easy3D.EPointCloud cloudOut, eVision.Easy3D.EPlaneCropperType type)
 Crops an eVision.Easy3D.EPointCloud.
eVision.Easy3D.E3DPlane Plane (self)
 Sets/gets the new reference eVision.Easy3D.E3DPlane of the eVision.Easy3D.EPlaneCropper object.
 Plane (self, eVision.Easy3D.E3DPlane value)
 Sets/gets the new reference eVision.Easy3D.E3DPlane of the eVision.Easy3D.EPlaneCropper object.

Detailed Description

A eVision.Easy3D.EPlaneCropper object is used to crop some points of a eVision.Easy3D.EPointCloud object.

The points to keep are selected according to their positions with respect to a reference plane. A eVision.Easy3D.EPlaneCropper object is characterized by its reference plane and is used to produce an output eVision.Easy3D.EPointCloud object from an input eVision.Easy3D.EPointCloud object. The produced point cloud contains a subset of the input point cloud.

Remarks:

License(s): Easy3D

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.Easy3D.EPlaneCropper.__init__ ( self)

Creates an eVision.Easy3D.EPlaneCropper object using a horizontal plane as a default reference.

◆ __init__() [2/3]

None eVision.Easy3D.EPlaneCropper.__init__ ( self,
eVision.Easy3D.E3DPlane plane )

Creates an eVision.Easy3D.EPlaneCropper object using a horizontal plane as a default reference.

Parameters
planeReference eVision.Easy3D.E3DPlane used for the initialization.

◆ __init__() [3/3]

None eVision.Easy3D.EPlaneCropper.__init__ ( self,
eVision.Easy3D.EPlaneCropper other )

Creates an eVision.Easy3D.EPlaneCropper object using a horizontal plane as a default reference.

Parameters
otherReference eVision.Easy3D.EPlaneCropper used for the initialization.

Member Function Documentation

◆ Crop() [1/2]

None eVision.Easy3D.EPlaneCropper.Crop ( self,
eVision.Easy3D.EPointCloud cloudIn,
eVision.Easy3D.EPointCloud cloudOut,
eVision.Easy3D.EPlaneCropperType type )

Crops an eVision.Easy3D.EPointCloud.

An output point cloud is produced from an input point cloud by only keeping the points that satisfy the specified condition.

The condition tests the (signed) distance of the points with respect to the reference plane of the cropper.

Remarks:

The input point cloud 'cloudIn' should be different from the output point cloud 'cloudOut'. If not a exception will be thrown.

Parameters
cloudInThe input point cloud.
cloudOutThe output point cloud.
typeAn enum of type eVision.Easy3D.EPlaneCropperType that specifies which points of the input point cloud will be copied to the output point cloud.

◆ Crop() [2/2]

None eVision.Easy3D.EPlaneCropper.Crop ( self,
eVision.Easy3D.EPointCloud cloudIn,
eVision.Easy3D.EPointCloud cloudOut,
eVision.Easy3D.EPlaneCropperType type,
float maxDistance )

Crops an eVision.Easy3D.EPointCloud.

An output point cloud is produced from an input point cloud by only keeping the points that satisfy the specified condition.

The condition tests the (signed) distance of the points with respect to the reference plane of the cropper.

Remarks:

The input point cloud 'cloudIn' should be different from the output point cloud 'cloudOut'. If not a exception will be thrown.

Parameters
cloudInThe input point cloud.
cloudOutThe output point cloud.
typeAn enum of type eVision.Easy3D.EPlaneCropperType that specifies which points of the input point cloud will be copied to the output point cloud.
maxDistanceSpecifies the distance from the plane for the types "EPlaneCropperType_KeepClose" and "EPlaneCropperType_KeepFar". It should be 0 for the types "EPlaneCropperType_KeepAbove" and "EPlaneCropperType_KeepBelow.

◆ Load() [1/2]

None eVision.Easy3D.EPlaneCropper.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.Easy3D.EPlaneCropper configuration.

The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.Easy3D.EPlaneCropper.Load ( self,
str path )

Loads the eVision.Easy3D.EPlaneCropper configuration.

The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Plane() [1/2]

eVision.Easy3D.E3DPlane eVision.Easy3D.EPlaneCropper.Plane ( self)

Sets/gets the new reference eVision.Easy3D.E3DPlane of the eVision.Easy3D.EPlaneCropper object.

◆ Plane() [2/2]

eVision.Easy3D.EPlaneCropper.Plane ( self,
eVision.Easy3D.E3DPlane value )

Sets/gets the new reference eVision.Easy3D.E3DPlane of the eVision.Easy3D.EPlaneCropper object.

◆ Save() [1/2]

None eVision.Easy3D.EPlaneCropper.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.Easy3D.EPlaneCropper configuration.

The given ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

None eVision.Easy3D.EPlaneCropper.Save ( self,
str path )

Saves the eVision.Easy3D.EPlaneCropper configuration.

The given ESerializer must have been created for writing.

Parameters
pathThe file path.