cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Bruce
Advisor

Circular hole in circular PRISM

Can someone enlighten me on the trick to create a circular hole in a circular PRISM? The usual -1 status code doesn't seem to work.

E.g., by my reading of the GDL reference guide (page 27 for AC21) the code should be:
PRISM_ 5, height,
 0, 0, 913,
radius_outer, 360, 4000,
0, 0, -1,
radius_inner,  360, 4000,
radius_inner,  360, -1
OR
PRISM_ 6, height,
 0, 0, 913,
radius_outer, 360, 4000,
0, 0, -1,
0, 0, 913,
radius_inner,  360, 4000,
0, 0, -1
But both of these return a compiling error.
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
1 Solution

Accepted Solutions
Barry Kelly
Moderator
Try this.
I think the problem is you are needing to use the circle centre with the -1 mask which dosen't work with a full 360 degree circle.

Break it up into semi circles.

	PRISM_ 14, height,
		radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_outer,       0.0,     -1,

		radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_inner,       0.0,     -1
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Go to post

4 Replies 4
Barry Kelly
Moderator
Try this.
I think the problem is you are needing to use the circle centre with the -1 mask which dosen't work with a full 360 degree circle.

Break it up into semi circles.

	PRISM_ 14, height,
		radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_outer,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_outer,       0.0,     -1,

		radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
	   -radius_inner,       0.0,      15+64, 
		0,       0.0,    900, 
		   0,          180,   4000, 
		radius_inner,       0.0,     -1
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Advisor
That's it Barry - thanks.
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Jochen Suehlo
Moderator Emeritus
Although logically it should not, the following simplified version works as well:
PRISM_ 3, 1,
0, 0,  979,
0.2, 360, 4079,
0.1, 360, 4049
Jochen Suehlo . AC12-29 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Bruce
Advisor
I like that one too!
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!