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
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
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
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
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
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_
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
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
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
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
10 matches
Mail list logo