GDL Polyline masking problems (again).
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-27 05:04 PM
2010-01-27
05:04 PM
Any ideas where I'm going wrong?
PEN 1 MATERIAL 2 RESOL 16 hei = 0.1 ! Height wid = 0.15 ! Width thik = 0.02 ! Thickness !----outline of prism PUT 0 , 0 , 15, wid, 0 , 15, wid, hei, 15, 0, hei, 15, 0 , 0 , -1 !!---A rectangular hole xx=0.1 yy=hei/2 !PUT xx, yy, 15, ! xx+0.015, yy, 15, ! xx+0.015, yy+0.012, 15, ! xx, yy+0.012, 15, ! xx, yy, -1 !!----Two circular holes !The first circular hole in the sequence doesn't mask properly. PUT 0.035, yy, 900+79, 0.015, 360, 4000+79 PUT 0.065, yy, 900+79, 0.01, 360, 4000+79 !!-----Do the prism PRISM_ nsp/3, thik, GET (nsp)
15 REPLIES 15
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-28 11:32 AM
2010-01-28
11:32 AM
!!! ----- 1st hole -----
put 0.035+0.015, yy, 79, ! 1st point
0.035 , yy, 900,
0, 360-360/16, 4000+79, ! 16 is the resolution
0.035+0.015, yy, -1 ! closing
But 360-360/16 is equal to 337,5... So its not a full circle, right?
I just can't understand why 360(Full circle) doesn't work.
put 0.035+0.015, yy, 79, ! 1st point
0.035 , yy, 900,
0, 360-360/16, 4000+79, ! 16 is the resolution
0.035+0.015, yy, -1 ! closing
But 360-360/16 is equal to 337,5... So its not a full circle, right?
I just can't understand why 360(Full circle) doesn't work.

Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-28 12:22 PM
2010-01-28
12:22 PM
Braza wrote:Right, it is an angle, not a full circle.
But 360-360/16 is equal to 337,5... So its not a full circle, right?
I just can't understand why 360(Full circle) doesn't work.
In functiun of the resolution, it indicates the last point
before the closing (1st point).
Alternative solution. Place an additional point, just before the end of contour,
with status code 15+64 (invisible edge). Next hole will be smooth.
This is for 3D script.
EPS = 0.0001 !!! ---- outline of prism PUT 0 , 0 , 15, wid, 0 , 15, wid, hei, 15, 0 , hei, 15, 0 , EPS, 15+64, ! additional point 0 , 0 , -1 !!! ----- 1st hole ----- PUT 0.035, yy, 900, 0.015, 360, 4000+15+64 !!! ----- 2nd hole ----- PUT 0.065, yy, 900, 0.010, 360, 4000+15+64
The weird thing is that in 2D script, for status code 4000, changes apply immediately.
In 3D script, the apply at the next iteration.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-28 02:37 PM
2010-01-28
02:37 PM
Olivier wrote:
Peter, in your attachment (line 3), this is not the same code as in my example.

Thank you all for investigating the problem. I will stick with the extra point on the boundary and use EPS instead of having two points in exactly the same place.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-02-02 01:05 PM
2010-02-02
01:05 PM
Olivier wrote:Which example do you mean by that? I can see problems in this field but all 3 examples around page 180 in the Manual work and produce the same results as shown in the figures. I'd like to make the description more correct; I just don't know what to change exactly.
GDL ref guide is inconsistant on this point.
The fifteen years old example which explains the purpose ...
just shows that it doesn't work in the way it is intended for.
Sorry to be the eternal ranter. 😉
I'm really thankful for all reports which help us make the documentation or GDL better!
Regards,
Zsolt
Zsolt Táskai
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-02-02 02:54 PM
2010-02-02
02:54 PM
Hi Zsolt,
The confusion concerns status code 4000 with full circle 360°, according to 2D and 3D script.
In 2D script, changes apply immediately, when you switch status s from 1 to 0.
with the desired status code BEFORE the full circle,
to get a smooth hole (64). Not intuitive.
to control the smoothness of hole.
Not a major issue, of course. Just a bit tricky.
The confusion concerns status code 4000 with full circle 360°, according to 2D and 3D script.
In 2D script, changes apply immediately, when you switch status s from 1 to 0.
put 0, 0, 1, A, 0, 1, A, B, 1, 0, B, 1, 0, 0, -1 put A/2, B/2 , 900, ! 1st hole r, 360, 4000+sIn 3D script for a full circle, you need to place an additional point
with the desired status code BEFORE the full circle,
to get a smooth hole (64). Not intuitive.
put 0, 0 , 15, A, 0 , 15, A, B , 15, 0, B , 15, 0, EPS, 15+64, ! additional point 0, 0 , -1 put A/2, B/2, 900, ! 1st hole r, 360, 4000+15+64Or you have to script an arc or two half circles.
to control the smoothness of hole.
put 0, 0 , 15, A, 0 , 15, A, B , 15, 0, B , 15, 0, 0 , -1 put A/2+r, B/2, 15+64, ! 1st point of the hole A/2, B/2, 900, 0, 360-360/res, 4000+15+64, A/2+r, B/2, -1 ! closingPlease, correct me if I am wrong.
Not a major issue, of course. Just a bit tricky.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-02-02 06:58 PM
2010-02-02
06:58 PM
Oh, I see! This never occurred to me before. At first glance I consider this an ArchiCAD bug - not a bug of the documentation.
I'm going to check the background of this behavior!
Thanks!
I'm going to check the background of this behavior!
Thanks!
Zsolt Táskai
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »