Author Topic: xcsg finished with exception: (carve error): D:\cpde_3rdparty\msvclibs\carve\lib  (Read 225 times)

matthest

  • Newbie
  • *
  • Posts: 7
    • View Profile
I downloaded the STEP from this website https://www.newhavendisplay.com/nhd70800480ftcsxvctp-p-9577.html
Converted to .OFF using freecad then imported to angelcad.

solid@ display_no_FPC()
{
    tmatrix@ DISP_OFFSET = translate(0,-200,0);
    tmatrix@ face_out = rotate_x(deg:90);
   
    solid@ s =  Enc().toEdgeTop()*Enc().toCenterZ()*DISP_OFFSET * face_out
                 *(polyhedron("C:/Users/mattis/Documents/OpenSCADLIB/VS/Display - NHD-7.0-800480FT-CSXV-CTP.off"));
   
    return s;
}
void main()
{

   shape@ obj = enclosure() + display_no_FPC();

   obj.write_xcsg(GetInputFullPath(),secant_tolerance:0.005);
}


I get the error
xcsg finished with exception: (carve error): D:\cpde_3rdparty\msvclibs\carve\lib
If i change the line:
tmatrix@ DISP_OFFSET = translate(0,-200,0); =>     tmatrix@ DISP_OFFSET = translate(0,-100,0);
then the error disappears. Any idea what the problem is?

Carsten Arnholm

  • Administrator
  • Jr. Member
  • *****
  • Posts: 59
    • View Profile
Hi, if you provide a link to the .OFF we might have a look.

Maybe it is some overlap issue, hard to say without the OFF.

matthest

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hi Carsten. I have made the object in angelcad instead of using the .OFF file.

If it is interesting for error-debugging. you may have a look at the .off file attached.


Carsten Arnholm

  • Administrator
  • Jr. Member
  • *****
  • Posts: 59
    • View Profile
The code is not complete. The function enclosure() is missing