cuboidModel
R2026bObject for storing parametric cuboid model
Description
The cuboidModel object stores the parameters of a parametric
cuboid model. After you create a cuboidModel object, you can extract cuboid
corner points, and points within the cuboid using the object functions. Cuboid models are used
to store the output of the pcfitcuboid
and pcfitcuboidalign functions, which fit a cuboid over a point
cloud.
Creation
There are two ways to create a cuboidModel object.
Create a cuboid model by specifying the cuboid parameters in the
cuboidModelobject.Fit a cuboid model over a point cloud using the
pcfitcuboidorpcfitcuboidalignfunctions.
Description
constructs a parametric cuboid model from the 1-by-9 input vector,
model = cuboidModel(params)params.
fits a cuboid over the input point cloud data. The model = pcfitcuboid(ptCloudIn)pcfitcuboid
function stores the properties of the cuboid in a parametric cuboid model object,
model.
fits a cuboid over a selected set of points, model = pcfitcuboid(ptCloudIn,indices)indices, in the input
point cloud.
Properties
Object Functions
getCornerPoints | Get corner points of cuboid model |
findPointsInModel | Find points enclosed by cuboid model |
plot | Plot cuboid model |
transform | Transform geometric models between coordinate frames |
Examples
Extended Capabilities
Version History
Introduced in R2020bSee Also
Functions
pcfitcylinder|pcfitplane|pcfitsphere|pcfitcuboidalign|pcfitcuboid|getCornerPoints|findPointsInModel|plot|transform





