2018-02-16 10:57 AM
HPRISM_ mat_prism, mat_prism, mat_prism, mat_prism,
17, (ZZYZX/2), 0,
chamfer, 1,
chamfer, 0, 78,
(A-chamfer), 0, 78,
(A-chamfer), chamfer, 900,
0, 90, 4001,
A, chamfer, 78,
A, (B-chamfer),78,
(A-chamfer), (B-chamfer),900,
0, 90, 4001,
(A-chamfer), B, 78,
chamfer, B, 78,
chamfer, (B-chamfer),900,
0, 90, 4001,
0, (B-chamfer),78,
0, chamfer, 78,
chamfer, chamfer, 900,
0, 90, 4001,
chamfer, 0, 78 2018-02-16 10:59 AM
2018-02-19 03:32 AM
mask = 1*1+2*0+4*0+8*1+64*1
HPRISM_ mat_prism, mat_prism, mat_prism, mat_prism,
17, (ZZYZX/2), 0,
chamfer, 1,
chamfer, 0, mask,
(A-chamfer), 0, mask,
(A-chamfer), chamfer, 900,
0, 90, 4000,
A, chamfer, mask,
A, (B-chamfer),mask,
(A-chamfer), (B-chamfer),900,
0, 90, 4000,
(A-chamfer), B, mask,
chamfer, B, mask,
chamfer, (B-chamfer),900,
0, 90, 4000,
0, (B-chamfer),mask,
0, chamfer, mask,
chamfer, chamfer, 900,
0, 90, 4000,
chamfer, 0, -1
Barry.
2018-02-19 12:21 PM
2018-02-19 01:50 PM
2018-02-19 02:07 PM
Erwin wrote:I've had a good look through. It does make more sense. However, I don't think I am able to achieve what I want. For some reason I can make it invisible 3d but it then turns invisible in elevation/section too. There are other lines that aren't there in 3D but they appear in elevation/section which is exactly what I want. I just can't work it out.
Look up 'status codes' in the GDL Reference Guide, there is a fairly clear explanation about all the different numbers and what edges are hidden, shown etc for solid shapes, wireframes, curves etc etc
Starts at page 203 onwards.
2018-02-20 05:15 AM
JGoode wrote:The mask value is just a series on number (I think they are called binary integers) that will turn on or off an edge or surface.
I don't understand why the mask value has to be so complex with all the multiplications? If you would be able to explain then that would be interesting to know.
JGoode wrote:To be honest I don't really know.
What is the difference between 4000 and 4001?
2018-02-20 05:18 AM
JGoode wrote:If you can't see it in 3D you won't see it in elevation.
For some reason I can make it invisible 3d but it then turns invisible in elevation/section too.
JGoode wrote:This is probably due to the 64 mask value.
There are other lines that aren't there in 3D but they appear in elevation/section which is exactly what I want. I just can't work it out.![]()
2018-02-20 05:27 AM
chamfer = 0.2
mask = 1*1+2*1+4*0+8*1+64*0
HPRISM_ mat_prism, mat_prism, mat_prism, mat_prism,
17, (ZZYZX/2), 0,
chamfer, 1,
chamfer, 0, mask,
(A-chamfer), 0, mask,
(A-chamfer), chamfer, 900,
0, 90, 4000,
A, chamfer, mask,
A, (B-chamfer),mask,
(A-chamfer), (B-chamfer),900,
0, 90, 4000,
(A-chamfer), B, mask,
chamfer, B, mask,
chamfer, (B-chamfer),900,
0, 90, 4000,
0, (B-chamfer),mask,
0, chamfer, mask,
chamfer, chamfer, 900,
0, 90, 4000,
chamfer, 0, -1
ADD A*1.5,0,0
mask = 1*1+2*1+4*0+8*1+64*1
HPRISM_ mat_prism, mat_prism, mat_prism, mat_prism,
17, (ZZYZX/2), 0,
chamfer, 1,
chamfer, 0, mask,
(A-chamfer), 0, mask,
(A-chamfer), chamfer, 900,
0, 90, 4000,
A, chamfer, mask,
A, (B-chamfer),mask,
(A-chamfer), (B-chamfer),900,
0, 90, 4000,
(A-chamfer), B, mask,
chamfer, B, mask,
chamfer, (B-chamfer),900,
0, 90, 4000,
0, (B-chamfer),mask,
0, chamfer, mask,
chamfer, chamfer, 900,
0, 90, 4000,
chamfer, 0, -1
DEL 1
Barry.
2018-02-20 08:48 AM
EXTRUDE 3, 1, 1, 3, 1+2+4+16+32, 0, 0, 901, 3, 360, 4001, 2, 360, 4000Barry