1 puts "TODO OCC22750 ALL: Faulty shapes in variables"
7 #######################################################
8 # Boolean operation: Bug in Fuse
9 #######################################################
11 # Step 1: Create surface wing
13 # Create sections as ellipses 2D (possible to create directly in 3D)
18 # Convert 2d Curves in 3d Curves, and place them along Z axis
20 to3d ee2 e2; translate ee2 0 0 100
21 to3d ee3 e3; translate ee3 0 0 200
23 rotate ee2 0 0 100 0 1 0 10
24 rotate ee3 0 0 200 0 1 0 20
26 #Approximate the ellipses by Bsplines
31 #Make a surface by approximation passing throught a set of curves
36 #Make a surface by approximation passing throught a set of ellipse
38 appsurf s2 ee1 ee2 ee3
41 # Step 2: Create surface for fuselage
43 #Create circles in 3D along axe X
44 circle c1 -100 0 0 1 0 0 10
45 circle c2 -50 0 0 1 0 0 30
46 circle c3 50 0 0 1 0 0 29
47 circle c4 100 0 0 1 0 0 20
48 circle c5 150 0 0 1 0 0 10
50 #Make a surface by approximation passing throught a set of circles
52 appsurf s3 c1 c2 c3 c4 c5
56 # Step 3: Create a Solid for the Wing
57 # Build edges from ellipse, wires with edges, faces on wires
58 # It's necessary to sew the faces to create the Shell, because the faces don't shared the same edge
59 #sewing will create a shell, it remains to create the solid from the shell
76 # The shape so1 is valid
78 #Step 4: Create a Solid for fuselage
79 # We will extract the edge from the face f3, and use them to buid faces, the edge will be shared and we
80 # can rebuild a sh and a solid with the basic and fast method
83 #nexplode give same order of exploration in different sessions
91 add f3 rr; add f7 rr; add f8 rr
97 # there is a pb of orientation, we have to chage orientation of f8
101 # We rebuild the shell and the solid
103 add f3 rr; add f7 rr; add f8 rr
111 # Step 5: Fuse the Wing to the fuselage
112 ttranslate so1 0 0 10
116 # Step 6: Create the othe wing using copy and rotation
118 trotate so3 0 0 0 1 0 0 180
120 # Step 7: Fuse the Wing to the fuselage
124 checkview -display so4 -3d -path ${imagedir}/${test_image}-3d.png
125 checkview -display so4 -2d -path ${imagedir}/${test_image}-2d.png