Home
Reply
Contributor
vmonte01
Posts: 9

BREP Wireframe and BREP Hidden Line

These view modes seem to work fine until I add a block to the model.  Why is this occurring?  See attached files (the attached txt files are actually hmf files so that I could upload them.  After renaming to .hmf, they can be loaded into the HOOPS-ACIS Part Viewer to see the problem).
 
Thanks,
Victor
Spatial Employee
Bashi
Posts: 22

Re: BREP Wireframe and BREP Hidden Line

Hello Victor,
 
As you know, hmf is a text file. I compared your hmf files and noticed that there is a difference.
If you open "headlamp with box.hmf" using text editor ( such as vm editor ), you can find "(User_Value 0x1)" in line# 5.
If you delete this line, your problem will be fixed, although I don't know why this operator caused this problem nor what it is for.
Please note that you need to modify text file first, then load it.
Deleting this operator by using segment browser of hoops3dpartviewer.exe may not work.
 
Thanks,
Bashi
Contributor
vmonte01
Posts: 9

Re: BREP Wireframe and BREP Hidden Line

Thanks Bashi, with your info I was able to determine the culprit.  I have the following lines preceding my call to api_solid_block():

pSolidModel->m_bSolidModel = true;
pSolidModel->m_bSolidData = true;
pSolidModel->SetBRepGeometry(
true);
pSolidModel->SetModelHandedness(HandednessSetLeft);

I added these calls because the Hoops-Acis Part Viewer makes these calls before loading a solid model and I figured it best to keep it similar if I was going to add a solid to the model.  If I remove the call to SetBRepGeometry(true), then the problem goes away.  I hope this won't have any side effects.  Do you foresee any possible side effects from removing this line?