Dear list,
I am trying to apply style properties to a line. When I use the following code, the color is applied but the linewdith and dashpattern are ignored when the line is rendered. Am I missing something?
 
 Point3d point1=new Point3d(0,0,0);
 Point3d point2=new Point3d(1.0,1.0,1.0);
 LineArray lineTest =new LineArray(2,LineArray.COORDINATES);
 lineTest.setCoordinates(0,new Point3d[]{point1,point2});
 Appearance app=new Appearance();
 LineAttributes attr=new LineAttributes();
 attr.setLineWidth(5.0f);
 attr.setPatternMask(0x00ff);
 app.setLineAttributes(attr);
 ColoringAttributes colAttr=new ColoringAttributes(new Color3f(Color.red),ColoringAttributes.NICEST);
 app.setColoringAttributes(colAttr);
 Shape3D sh=new Shape3D(lineTest,app);
 objRoot.addChild(sh);
 objRoot.compile();
 
Thanks in advance,
David

Reply via email to