[V8i C++] Point Cloud API selections not lined up properly?

I am trying to use the following line

Bentley::Ustn::PointCloud::PointCloudDataQueryPtr query = 
Bentley::Ustn::PointCloud::IPointCloudDataQuery::CreateOrientedBoxQuery (eeh, OrientedBox);

The oriented box I am using is where it is supposed to be...(Notice the green and blue
 lines.. Those are the X and Y vectors used for the oriented box... Z is a very large +- vector
... Origin is defined at the point where the green and blue vectors meet...)
The red points are the points that are being selected by the orientedbox that I am using..



	pSP->UnselectAll();

if(showSelection){
pSP->SetSelectMode(PointCloudSelectPoints::Select);
pSP->SetDensityMode(PointCloudSelectPoints::FullDensity);
pSP->SetDrawColor(rgbSelection);
pSP->ByOrientedBox(OrientedBox);
}

Sometimes it will pick it out OK,  mostly not...

Parents Reply
  • Mathieu,

    Thanks for the info.. unfortunately that is not a viable solution/workaround

    Is this also why when using a larger query box, the edges of the results are not bound to my query box?

    I would expect it to work in the same way that the QuerySphere works, where the results returned are only within the sphere specified... I have attached an image below

    Simon, how were you able to get yours to show up properly? Are you on version 8.11.09.357?

Children