Link error when i use AcBrBrep , to read the solid model vertices.
Hello Team,
I want read the solid face entities so i have used the following code, i added the following header files in my .cpp file.
m facing link error.
Event i tried to include the acbr19.lib, which is not present in the BRX sdk, i brought it from ObjectARX sdk but its unable to load the .arx and .dbx files.
what should i do achieve the reading solid face entities ?
#include
#include
#include
#include
#include
#include
#include
AcDbFullSubentPath SubEntPh(ObjId,kNullSubentId);
pBrep->setSubentPath(SubEntPh);
AcBrBrepFaceTraverser FaceTr;
for (FaceTr.setBrep(*pBrep);!FaceTr.done();FaceTr.next())
{
AcBrFaceLoopTraverser faLoTrav;
AcBrFace face;
FaceTr.getFace(face);
for(faLoTrav.setFace(face);!faLoTrav.done();faLoTrav.next())
{
AcBrLoopEdgeTraverser LoEdTr;
if(LoEdTr.setLoop(faLoTrav) == AcBr::eOk)
{
for(; !LoEdTr.done(); LoEdTr.next())
{
AcBrEdge edge;
LoEdTr.getEdge(edge);
AcBrVertex start;
edge.getVertex1(start );
AcGePoint3d pt;
start.getPoint( pt );
points.append( pt );
}
} // else its an isolated loop
}
}
delete pBrep;
0
Comments
-
You need to link to brx15.lib for the brep functions. If you're getting the error anyway, please create a support request and include the complete error so someone can investigate.
0
This discussion has been closed.