<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HPrism Contour Lines in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268232#M4289</link>
    <description>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&lt;BR /&gt;
&lt;BR /&gt;
Starts at page 203 onwards.</description>
    <pubDate>Mon, 19 Feb 2018 12:50:32 GMT</pubDate>
    <dc:creator>Erwin Edel</dc:creator>
    <dc:date>2018-02-19T12:50:32Z</dc:date>
    <item>
      <title>HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268228#M4285</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi, &lt;BR /&gt;
&lt;BR /&gt;
I want to remove the contour line shown in the attached image but I want it to remain in elevations. It seems to have worked for the rest of the lines that I want but not the square on top.&lt;BR /&gt;

&lt;PRE&gt;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 &lt;/PRE&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Feb 2018 09:57:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268228#M4285</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-02-16T09:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268229#M4286</link>
      <description>For some reason I can't attach an image. It is half a box with a fillet applied to all edges. The contour line that I want removed is a square at the top before it begins to curve.</description>
      <pubDate>Fri, 16 Feb 2018 09:59:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268229#M4286</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-02-16T09:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268230#M4287</link>
      <description>It is the same masking as a standard PRISM.&lt;BR /&gt;
&lt;BR /&gt;
A small trick is to create a mask value and then you can adjust one value and see how it affects your prism.&lt;BR /&gt;
The last mask should be '-1' and the curves can be 4000 instead of 4001.&lt;BR /&gt;
&lt;BR /&gt;
Try this ...&lt;BR /&gt;

&lt;PRE&gt;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 &lt;/PRE&gt;

Barry.</description>
      <pubDate>Mon, 19 Feb 2018 02:32:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268230#M4287</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-02-19T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268231#M4288</link>
      <description>Thanks for the reply Barry!&lt;BR /&gt;
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. &lt;BR /&gt;
What is the difference between 4000 and 4001?&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately I couldn't get it to do what I wanted it to do.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Mon, 19 Feb 2018 11:21:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268231#M4288</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-02-19T11:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268232#M4289</link>
      <description>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&lt;BR /&gt;
&lt;BR /&gt;
Starts at page 203 onwards.</description>
      <pubDate>Mon, 19 Feb 2018 12:50:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268232#M4289</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2018-02-19T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268233#M4290</link>
      <description>&lt;BLOCKQUOTE&gt;Erwin wrote:&lt;BR /&gt;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&lt;BR /&gt;
&lt;BR /&gt;
Starts at page 203 onwards.&lt;/BLOCKQUOTE&gt;

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. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 19 Feb 2018 13:07:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268233#M4290</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-02-19T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268234#M4291</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
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. 
&lt;/BLOCKQUOTE&gt;

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.&lt;BR /&gt;
The multiplication part is just an easy way to operate the switch to say if it is on or off.&lt;BR /&gt;
&lt;BR /&gt;
So...&lt;BR /&gt;
1 is the lower edge (1*0 = off, 1*1 = on)&lt;BR /&gt;
2 is the vertical edge (2*0 = off, 2*1 = on)&lt;BR /&gt;
4 is the upper edge (4*0 = off, 4*1 = on)&lt;BR /&gt;
8 is the surface face (8*0 = off, 8*1 = on)&lt;BR /&gt;
&lt;BR /&gt;
1+2+4+8 = 15 ... so if you want all lines and surfaces on then set the mask for 15.&lt;BR /&gt;
&lt;BR /&gt;
To turn the top lines off in your example, turn the 4 switch off so mask = 11&lt;BR /&gt;
&lt;BR /&gt;
Because you have curved edges you can turn off the vertical edge (2) as well or you can leave it on and use +64 which is a special mask.&lt;BR /&gt;
64 only works when 2 is on and will make a curved edge visible as you rotate your object - it basically creates a line that moves with the angle you are viewing from.&lt;BR /&gt;
Just 2 on by itself (i.e.64 = 0) will create a fixed line that won't move with the viewing angle.&lt;BR /&gt;
&lt;BR /&gt;
Each mask value is separate for each surface, so they can all be different.&lt;BR /&gt;
They don't have to be the same for each node - so you can turn lines and surfaces on/off as you go around your element (prism).&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
What is the difference between 4000 and 4001?
&lt;/BLOCKQUOTE&gt;

To be honest I don't really know.&lt;BR /&gt;
It also controls visibility but I have never figured it out.&lt;BR /&gt;
4000 shows all line but 4001 sometimes doesn't.&lt;BR /&gt;
&lt;BR /&gt;
EXTRUDE 3, 1, 1, 3, 1+2+4+16+32,&lt;BR /&gt;
0, 0, 900,&lt;BR /&gt;
3, 360, 4001,&lt;BR /&gt;
2, 360, 4000&lt;BR /&gt;
&lt;BR /&gt;
The first 4001 hides the lines on the inside of the extrude, but 4001 on the outside doesn't have any affect.&lt;BR /&gt;
4100 will cover over the top surface completely.&lt;BR /&gt;
Values can be between 4000 and 4100, but I only see a difference between 4000, 4001 and 4100.&lt;BR /&gt;
If anyone else can explain this one I would be grateful.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 20 Feb 2018 04:15:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268234#M4291</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-02-20T04:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268235#M4292</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
For some reason I can make it invisible 3d but it then turns invisible in elevation/section too. 
&lt;/BLOCKQUOTE&gt;

If you can't see it in 3D you won't see it in elevation.&lt;BR /&gt;
Elevations are just a 3D view from the side.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;
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. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;
&lt;/BLOCKQUOTE&gt;

This is probably due to the 64 mask value.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 20 Feb 2018 04:18:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268235#M4292</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-02-20T04:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268236#M4293</link>
      <description>Try this to see what the 64 mask does.&lt;BR /&gt;

&lt;PRE&gt;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&lt;/PRE&gt;



Barry.</description>
      <pubDate>Tue, 20 Feb 2018 04:27:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268236#M4293</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-02-20T04:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268237#M4294</link>
      <description>The 4000 mask is just an extension of the standard node mask in the element.&lt;BR /&gt;
So for a PRISM_ the standard mask is 15+64, so you could substitute 4015+64 for your curved surfaces.&lt;BR /&gt;
For an EXTRUDE the standard node mask is 0 or 1 so you could use 4000 or 4001 for the curved surfaces.&lt;BR /&gt;
&lt;BR /&gt;
The mask takes effect on the surface following that node which is why in the EXTRUDE example I gave changing the second 4000 mask did nothing - there is nothing defined after it.&lt;BR /&gt;
To affect the lines on the outside surface you would have change the 900 mask to 901 or possibly insert a starting node on the outer edge and set the mask for that to hide the lines.&lt;BR /&gt;

&lt;PRE&gt;EXTRUDE 3, 1, 1, 3, 1+2+4+16+32,
0, 0, 901,
3, 360, 4001,
2, 360, 4000&lt;/PRE&gt;

Barry</description>
      <pubDate>Tue, 20 Feb 2018 07:48:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268237#M4294</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-02-20T07:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268238#M4295</link>
      <description>Just a short reminder that you can avoid some issues if you do something like this:&lt;BR /&gt;

&lt;PRE&gt;! 3d script
mask = 0
! section or elevation
if GLOB_VIEW_TYPE = 4 OR GLOB_VIEW_TYPE = 5 then
	mask = 1    ! your desired maskvalue
endif&lt;/PRE&gt;
You will then use "mask" instead of a fixed number – now you can have different lines in different view types.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cool.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:21:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268238#M4295</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2018-02-20T09:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: HPrism Contour Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268239#M4296</link>
      <description>&lt;BLOCKQUOTE&gt;runxel wrote:&lt;BR /&gt;Just a short reminder that you can avoid some issues if you do something like this:&lt;BR /&gt;

&lt;PRE&gt;! 3d script
mask = 0
! section or elevation
if GLOB_VIEW_TYPE = 4 OR GLOB_VIEW_TYPE = 5 then
	mask = 1    ! your desired maskvalue
endif&lt;/PRE&gt;
You will then use "mask" instead of a fixed number – now you can have different lines in different view types.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cool.gif" style="display : inline;" /&gt;&lt;/BLOCKQUOTE&gt;

Thanks very much, didn't even consider this. I was so focused on getting the mask to work correctly!</description>
      <pubDate>Tue, 20 Feb 2018 10:10:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPrism-Contour-Lines/m-p/268239#M4296</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-02-20T10:10:36Z</dc:date>
    </item>
  </channel>
</rss>

