This interface defines the resulting OOBB, and references the OOBB request id returned
by FeatureManagerInterface.retrieveOOBB.
Valid OOBB request ids are strictly positive integers.
/** * Sample to illustrate the retrieval of the OOBB of a geometry. */ import { FeatureManagerInterface, FeatureManagerInterfaceSignal, InfiniteEngineInterface, InfiniteEvent, OOBB, OOBBTypeAttachment } from'generated_files/documentation/appinfiniteapi';
// created previously letlInfiniteEngine : InfiniteEngineInterface;
// the geometric instance to retrieve OOBB from letlGeometricInstanceId : number;
// retrieve the `feature` manager constlFeatureManager : FeatureManagerInterface = lInfiniteEngine.getFeatureManager(); // the OOBB request id letlRetrieveOobbRequestId : number = 0;
// and request an oobb lRetrieveOobbRequestId = lFeatureManager.retrieveOOBB(lGeometricInstanceId); if(lRetrieveOobbRequestId <= 0) { console.log('Failed to query oobb, is the geometric instance id correct ?'); }
The OOBBTypeAttachment interface defines an OOBB result of a call to FeatureManagerInterface.retrieveOOBB.
This interface defines the resulting OOBB, and references the OOBB request id returned by FeatureManagerInterface.retrieveOOBB. Valid OOBB request ids are strictly positive integers.
It is included in the attachment of the FeatureManagerInterfaceSignal.OOBBReady signal event.
See
FeatureManagerInterface.retrieveOOBB