Zitiert von: Nemo
And what is not working with the code?
Some hints:
Inside a GROUP-clause you don't need to define the SECT_FACESTYLE.
A GROUP cannot transport this kind of information! GROUP holds only the geometry of the polyhedron(s)!
This has to be infront of GROUP_PLACE.
It is not recommended to use variable name for GROUP name!
Hi Nemo, I checked and it's fine not to make a single group but make 2 group (one for structure and one for covering).
I changed the code for make 2 group but my problem is that I can't get the 2 different styles to the 2 groups (like sketck).
ROTX 90
GROUP "gra"
FOR n = 1 TO g
PRISM 4 , larg ,
0 , 0 ,
0 , alz ,
ped , alz ,
0 , 0
TRANS ped , alz , 0
NEXT
GROUP_END
GROUP "sol"
PRISM 5 , larg ,
0 , 0 ,
g * ped , g * alz ,
g * ped , g * alz - f_v ,
apg , 0 ,
0 , 0
GROUP_END
GROUP "pdt"
FOR n = 1 TO g
PRISM 5 , larg ,
-sp_f_ped , alz ,
-sp_f_ped , alz + s_ped ,
ped , alz + s_ped ,
ped , alz ,
-sp_f_ped , alz
TRANS ped , alz , 0
NEXT
GROUP_END
GROUP "azt"
FOR n = 1 TO g
PRISM 5 , larg ,
-s_alz , s_ped ,
-s_alz , alz ,
0 , alz ,
0 , s_ped ,
-s_alz , s_ped
TRANS ped , alz , 0
NEXT
GROUP_END
result_a = ""
result_a = GROUP_UNION ( "gra" , "sol" )
FACE_STYLE str_3d
GROUP_PLACE result_a
result_b = ""
result_b = GROUP_UNION ( "pdt" , "azt" )
FACE_STYLE riv_3d
GROUP_PLACE result_b