Re: [Pythonocc-users] Draw a Rectangle

2011-09-13 Thread Naide
Hi everyone ! I follow your advices and change my program but I have the same problem with rectangles' colors in function of my point of view. I want to know if you have it if you interpret my code with your machine and open an empty IGES file. Thank you in advance. Naide My code is : import wx

Re: [Pythonocc-users] Draw a Rectangle

2011-08-02 Thread jelle feringa
I can't explain the strange colors, but it could have something to do with the inefficient / strange way of building the geometry. Don't use points_to_bspline nor make_n_edges, but rather make_closed_polygon and make_face Like so: face = make_face( make_closed_polygon(p5,p6,p7) ) Your trying too

Re: [Pythonocc-users] Draw a Rectangle

2011-08-02 Thread Naide
jelle feringa writes: > > please provide a screencap and / or code, we'll need a little more info... > Sure. You can see on the first image rectangles with good colors (Red, White, Blue and Green) that I want and program. And on the second image rextangles becomes white and yellow when I chang

Re: [Pythonocc-users] Draw a Rectangle

2011-08-02 Thread jelle feringa
please provide a screencap and / or code, we'll need a little more info... ___ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users

Re: [Pythonocc-users] Draw a Rectangle

2011-08-02 Thread Naide
Thomas Paviot writes: > > > 2011/8/1 Naide ece.fr> > > > > Thank you. > When I use the functiondisplay.DisplayColoredShape(your_topods_shape, > 'ORANGE') > there are just the border of the rectangle which are coloring in ORANGE. > What i have forgoten to do ? > Thank you in advance. > My c

Re: [Pythonocc-users] Draw a Rectangle

2011-08-01 Thread Thomas Paviot
2011/8/1 Naide > Thank you. > > When I use the function > display.DisplayColoredShape(your_topods_shape, 'ORANGE') > there are just the border of the rectangle which are coloring in ORANGE. > > What i have forgoten to do ? > > Thank you in advance. > > My code : > p5 = gp_Pnt(X1,Y1,Z1) > p6 = gp_

Re: [Pythonocc-users] Draw a Rectangle

2011-08-01 Thread Naide
Thank you. When I use the function display.DisplayColoredShape(your_topods_shape, 'ORANGE') there are just the border of the rectangle which are coloring in ORANGE. What i have forgoten to do ? Thank you in advance. My code : p5 = gp_Pnt(X1,Y1,Z1) p6 = gp_Pnt(X2,Y2,Z2) p7 = gp_Pnt(X3,Y3,Z3) p8

Re: [Pythonocc-users] Draw a Rectangle

2011-07-29 Thread jelle feringa
sure. display.DisplayColoredShape(your_topods_shape, 'ORANGE') you can also set the materials when calling the display.DisplayShape method... -jelle On Fri, Jul 29, 2011 at 10:38 AM, Naide wrote: > > Hi, > > Thank you for your answer. > Is there a function that color the inside of the rectangle

Re: [Pythonocc-users] Draw a Rectangle

2011-07-29 Thread Naide
Hi, Thank you for your answer. Is there a function that color the inside of the rectangle ? Thank you in advance Naide ___ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users

Re: [Pythonocc-users] Draw a Rectangle

2011-07-28 Thread jelle feringa
if you are on a recent [ 0.5 / SVN ] version of pyocc: from OCC.Utils.Construct import make_closed_polygon, gp_Pnt rect = make_closed_polygon(p1,p2,p3,p3) than add rect to your display -jelle On Thu, Jul 28, 2011 at 4:36 PM, Naide wrote: > Hi everyone, > > I want to know if there is a PythocO