Main Content

hasConnection

Check if connection between two views is in view set

Description

example

tf= hasConnection(vSet,viewId1,viewId2)returns1(真正的),如果观点之间的联系viewId1andviewId2is in the view set,vSet. The function returns0(false), if the connection does not exist invSet.

Examples

崩溃了ll

Create an empty point cloud view set.

vSet = pcviewset;

Add two views to the point cloud view set.

vSet = addView(vSet,1); vSet = addView(vSet,2);

Add a connection to the point cloud view set.

vSet = addConnection(vSet,1,2);

Check if the connection is between views is in the point cloud view set.

tf = hasConnection(vSet,1,2)
tf =logical1

Input Arguments

崩溃了ll

Point cloud view set, specified as apcviewsetobject.

View identifier 1, specified as an integer. View identifiers are unique to a specific view.

View identifier 2, specified as an integer. View identifiers are unique to a specific view.

Output Arguments

崩溃了ll

True or false result indicating if the connection between viewsviewId1andviewId2exists in view setvSet, returned as a1or0data typelogical.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2020a

See Also

Objects