Share

IAcPcDataBuffer Class

Class Hierarchy

IAcPcDataBuffer

C++

class IAcPcDataBuffer;

File

AcPointCloud.h

Description

Data buffer for points returned from the point cloud engine.

Points returned in the data buffer will be in local point cloud space. To convert the points to world space you need to first add the XYZ offset to the point and then transform the point using the entityTransform.

Example

AcPcPointFloat p;

pBuffer->floatPoint(pointIndex, p);

double offsetX, offsetY, offsetZ;

pBuffer->offset(offsetX, offsetY, offsetZ);

AcGeMatrix3d xform;

pBuffer->entityTransform(xform);

AcGePoint3d pt(p->m_x+offsetX, p->m_y+offsetY, p->m_z+offsetZ);

pt = xform*pt; // Point is now in world space

Links

IAcPcDataBuffer Methods

Was this information helpful?