cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.
SOLVED!

How to obtain the X and Y coordinates of vertices on curves or line segments in GDL programming

baixiaodong
Booster

How to obtain the X and Y coordinates of vertices on a curve or line segment in GDL writing, and drive a point on another line segment through these coordinates?

I am planning to use the REVOLVE command to create a jar model. The upper and lower materials of the jar model are different, and the REVOLVE command cannot allocate different materials for the weft part. Therefore, I need to use two REVOLVE commands to create the upper and lower parts of the jar separately, in order to meet the requirements of attaching different materials. As the jar model is parameterized, the upper and lower parts will be linked and seamlessly connected, This requires the vertex at the end of the lower part to drive the starting vertex of the upper part. I think so, but I haven't found a feasible method yet.

 

Please advise

 

12 REPLIES 12
baixiaodong
Booster

Hello: Thank you for your guidance. I will continue to explore

Pertti Paasky
Expert

Try this command, You can allocate material for every segment.
REVOLVE{2} n, alphaOffset, alpha, mask, sideMat,
x1, y1, s1, mat1, ..., xn, yn, sn, matn

- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

Thank you