Line Thickness
#2
That is strange.

The following code works correctly:

Code:
Point3DCollection coll = new Point3DCollection(new Point3D[] { new Point3D(0,0,0), new Point3D(100,0,0), new Point3D(100,100,0) });

            GeometryModel3D polyModel = Line3DFactory.CreatePolyLine3D(coll, 12, Colors.Red, false, Ab3d.Common.Models.LineCap.Flat, Ab3d.Common.Models.LineCap.Flat, MainViewport);
            Group1.Children.Add(polyModel);
            
            GeometryModel3D lineModel = Line3DFactory.CreateLine3D(new Point3D(100,100,0), new Point3D(0,100,0), 12, Colors.Blue, Ab3d.Common.Models.LineCap.Flat, Ab3d.Common.Models.LineCap.Flat, MainViewport);
            Group1.Children.Add(lineModel);

Maybe you have wrongly set the last parameter: Viewport3D / Visual3D - if you have specified different Viewport3D or Visual3D than the transformation that transforms the 3d space into screen space gives different results and applies thickness differently.
Andrej Benedik
  


Messages In This Thread
Line Thickness - by brians - 02-23-2012, 02:46 PM
RE: Line Thickness - by abenedik - 03-12-2012, 05:06 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)