Cad Lib 4.0 GL Hatch

1
tshuva
9/14/2010 9:20 AM

Hello,

My company had bought the CadLib 3.5 suite, and we would like to upgrade it to the 4.0 version that has OpenGl that supports Hatch.
I downloaded your trial version and when I try to open our file with it, I get the following exception:


************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
  at WW.Math.Geometry.Triangulator2D. (List`1 triangles, List`1 points, UInt16 p0, UInt16 p1)
  at WW.Math.Geometry.Triangulator2D.Triangulate(IList`1 inputPoints, IList`1 polylinePointIndexesList, IList`1 triangles, Double precision)
  at WW.Math.Geometry.Triangulator2D.Triangulate(IList`1 inputPoints, IList`1 polylinePointIndexesList, IList`1 triangles)
  at WW.Cad.Model.Entities.DxfHatch.‚(Surface context)
  at WW.Cad.Model.Entities.DxfHatch.DrawInternal(Surface context)
  at WW.Cad.Model.Entities.DxfEntity.Draw(Surface context)
  at WW.Cad.Model.DxfModel.Draw(Surface context)
  at WW.Cad.Drawing.OpenGL.GLGraphics3D.CreateDrawables(DxfModel model, Matrix4D modelTransform, Boolean clearOldDrawables)
  at WW.Cad.Drawing.OpenGL.GLGraphics3D.CreateDrawables(DxfModel model, Matrix4D modelTransform)
  at DxfViewExample.ViewControl.OnHandleCreated(EventArgs e) in C:\Users\Documents\CadLib 4.0\Examples\OpenGLExtendedViewExampleCS\ViewControl.cs:line 110
  at System.Windows.Forms.Control.WmCreate(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.UserControl.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Your quick help would be truly appreciated.

Thanks

Shlomit

p.s. I tried to attach the file but it's too big

Wout
9/16/2010 6:01 PM

Hi Shlomit,

Can you e-mail me the file?

Thanks!

Wout

tshuva
9/18/2010 5:35 PM

Hi,

The file is too be to be sent through here.
To which mail can I send it?

Thanks in advance,

Shlomit

1