<?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_ &amp;amp; Top edge visibility in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125460#M23306</link>
    <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;
&lt;BR /&gt;
Sorry, I don't think so. My status code just means 11+64 (first) , and 15+64 (second).&lt;BR /&gt;
"step 1", is the default setting, thus it is implicit. No need to write it.&lt;/BLOCKQUOTE&gt;

 Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.&lt;BR /&gt;
&lt;BR /&gt;
 I write step out of habit just as I remove all the transformations in a for/next loop. Because DEL 1 doesn't remove them efficiently.&lt;BR /&gt;
&lt;BR /&gt;
good luck</description>
    <pubDate>Tue, 27 Oct 2009 13:35:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-10-27T13:35:44Z</dc:date>
    <item>
      <title>HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125454#M23300</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;This is an old feature, which I always found annoying.&lt;BR /&gt;
For the first solution (Left), top contour edges don't show in elevation. &lt;BR /&gt;
Am I missing something? &lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;	R   = 0.2
	mat = SYMB_MAT
	
	for k = 1 to 2
		body -1
		s = 11 + 4*(k=2) + 64
	
		hprism_  mat, mat, mat, mat,
			10, 1, 0, R*0.5, 1,
			R  , 0  , s,
			1-R, 0  , s,
			1  , R  , s+1000,
			1  , 1-R, s,
			1-R, 1  , s+1000,
			R  , 1  , s,
			0  , 1-R, s+1000,
			0  , R  , s,
			R  , 0  , s+1000,
			R  , 0  ,-1

		addx 1.5
	next k
		del 2
&lt;/PRE&gt;&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68308i7AFC7331BDAD277E/image-size/large?v=v2&amp;amp;px=999" border="0" alt="HPRISM_.png" title="HPRISM_.png" /&gt;</description>
      <pubDate>Mon, 26 Oct 2009 19:34:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125454#M23300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-26T19:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125455#M23301</link>
      <description>No, you are not missing something. I always check with this code, because these status codes always confuse me&lt;BR /&gt;

&lt;PRE&gt;   R   = 0.2
   mat = SYMB_MAT
   
   for s = 1 to 99
      body -1
    
      hprism_  mat, mat, mat, mat,
         10, 1, 0, R*0.5, 1,
         R  , 0  , s,
         1-R, 0  , s,
         1  , R  , s+1000,
         1  , 1-R, s,
         1-R, 1  , s+1000,
         R  , 1  , s,
         0  , 1-R, s+1000,
         0  , R  , s,
         R  , 0  , s+1000,
         R  , 0  ,-1

      addx 1.5
   next k&lt;/PRE&gt;

But I have a dirty fix for you:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;   R   = 0.2
   mat = SYMB_MAT
   
IF GLOB_CONTEXT=4 THEN
	k=2
ELSE
	k=1
ENDIF

      body -1
      s = 11 + 4*(k=2) + 64
   
      hprism_  mat, mat, mat, mat,
         10, 1, 0, R*0.5, 1,
         R  , 0  , s,
         1-R, 0  , s,
         1  , R  , s+1000,
         1  , 1-R, s,
         1-R, 1  , s+1000,
         R  , 1  , s,
         0  , 1-R, s+1000,
         0  , R  , s,
         R  , 0  , s+1000,
         R  , 0  ,-1
&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Oct 2009 20:15:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125455#M23301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-26T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125456#M23302</link>
      <description>&lt;BLOCKQUOTE&gt;Master wrote:&lt;BR /&gt;No, you are not missing something. I always check with this code, because these status codes always confuse me&lt;BR /&gt;
&lt;BR /&gt;
But I have a dirty fix for you:
&lt;/BLOCKQUOTE&gt;

I'm aware of these "global_context" workarounds. I'm not satified with them.  &lt;BR /&gt;
In case of object rotation (x, y, z), it can't be a solution.&lt;BR /&gt;
I still have to add a parameter to control (manually) the mask value, in function of the rotation, which is not predictable. &lt;BR /&gt;
&lt;BR /&gt;
I would like a fix, not a workaround.&lt;BR /&gt;
&lt;BR /&gt;
There is always the solution to deal with GDL primitives (vert, edge, pgon). What a pain. &lt;BR /&gt;
It defeats the purpose of this tool.</description>
      <pubDate>Mon, 26 Oct 2009 21:18:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125456#M23302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-26T21:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125457#M23303</link>
      <description>It's because one instance is s = 11 + 4 + 64 and all else s = 11 + 8 + 64&lt;BR /&gt;
&lt;BR /&gt;
k is a variable and increases with each for/next and at this point it is still 1 to 2.&lt;BR /&gt;
&lt;BR /&gt;
for k = 1 to 2 step 1&lt;BR /&gt;
s = 11 + 4 + 64 &lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Tue, 27 Oct 2009 00:01:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125457#M23303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T00:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125458#M23304</link>
      <description>&lt;BLOCKQUOTE&gt;Jeffrey wrote:&lt;BR /&gt;It's because one instance is s = 11 + 4 + 64 and all else s = 11 + 8 + 64&lt;BR /&gt;
&lt;BR /&gt;
k is a variable and increases with each for/next and at this point it is still 1 to 2.&lt;BR /&gt;
&lt;BR /&gt;
for k = 1 to 2 step 1&lt;BR /&gt;
s = 11 + 4 + 64 &lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;/BLOCKQUOTE&gt;

Sorry, I don't think so. My status code just means 11+64 (first) , and 15+64 (second).&lt;BR /&gt;
"step 1", is the default setting, thus it is implicit. No need to write it.</description>
      <pubDate>Tue, 27 Oct 2009 07:01:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125458#M23304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T07:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125459#M23305</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;This is an old feature, which I always found annoying.&lt;/BLOCKQUOTE&gt;   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
You are right Olivier... This "feature" must be fixed.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 27 Oct 2009 09:37:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125459#M23305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T09:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125460#M23306</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;
&lt;BR /&gt;
Sorry, I don't think so. My status code just means 11+64 (first) , and 15+64 (second).&lt;BR /&gt;
"step 1", is the default setting, thus it is implicit. No need to write it.&lt;/BLOCKQUOTE&gt;

 Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.&lt;BR /&gt;
&lt;BR /&gt;
 I write step out of habit just as I remove all the transformations in a for/next loop. Because DEL 1 doesn't remove them efficiently.&lt;BR /&gt;
&lt;BR /&gt;
good luck</description>
      <pubDate>Tue, 27 Oct 2009 13:35:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125460#M23306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T13:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125461#M23307</link>
      <description>&lt;BLOCKQUOTE&gt;Jeffrey wrote:&lt;BR /&gt;
Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.
&lt;/BLOCKQUOTE&gt;

I don't follow you. &lt;BR /&gt;

&lt;PRE&gt;	for k = 1 to 2
		s = 11 + 4*(k=2) + 64
		print s
	next k&lt;/PRE&gt;

It returns 75 and 79. All is fine.&lt;BR /&gt;
&lt;BR /&gt;
My remark was about status code 11+64 (75). I don't want 15+64 (79).&lt;BR /&gt;
64*j7 controls the viewpoint dependent visibility of the current &lt;B&gt;vertical&lt;/B&gt; edge.&lt;BR /&gt;
I was wondering about a similar feature for the &lt;B&gt;horizontal&lt;/B&gt;  top edge visibility.</description>
      <pubDate>Tue, 27 Oct 2009 17:51:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125461#M23307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T17:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125462#M23308</link>
      <description>&lt;BLOCKQUOTE&gt;Olivier wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Jeffrey wrote:&lt;BR /&gt;
Regardless of what you think the computer disagrees. While you will get no argument about the inconsistencies of the status and mask values from me. The math in GDL, however inaccurate, is consistent. 14 + 64 would be (11+(4*1)) +64 and you are our of luck with 15 because if and when k =2, which it does only after the first instance of the object you get 19 provided it is written correctly or you get 8 the way you have written it.
&lt;/BLOCKQUOTE&gt;

I don't follow you. &lt;BR /&gt;

&lt;PRE&gt;	for k = 1 to 2
		s = 11 + 4*(k=2) + 64
		print s
	next k&lt;/PRE&gt;

It returns 75 and 79. All is fine.&lt;BR /&gt;
&lt;BR /&gt;
My remark was about status code 11+64 (75). I don't want 15+64 (79).&lt;BR /&gt;
64*j7 controls the viewpoint dependent visibility of the current &lt;B&gt;vertical&lt;/B&gt; edge.&lt;BR /&gt;
I was wondering about a similar feature for the &lt;B&gt;horizontal&lt;/B&gt;  top edge visibility.&lt;/BLOCKQUOTE&gt;

 Wow, You have serious accuracy issues then. &lt;BR /&gt;
&lt;BR /&gt;
If it returns 75 and 79 and "all is fine" but you don't want 79 then how can all be fine?&lt;BR /&gt;
&lt;BR /&gt;
Further status codes are binary and not cumulative ( i.e.11+4*(k=2)+64 does not equal 79, 83 or even 75.&lt;BR /&gt;
&lt;BR /&gt;
 I would be most concerned with the inaccuracy issues you are having because if k =2 then 4*k = 8 therefor 11+8+64 = 83 (19+64) and when k-1, which it does in the first instance, 4*k =4 so 11+4+64 = 79 (15+64) which of course you don't want.&lt;BR /&gt;
&lt;BR /&gt;
I thought adding 1/64" to each item in the transformation stacks was a problem.</description>
      <pubDate>Tue, 27 Oct 2009 19:42:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125462#M23308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T19:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125463#M23309</link>
      <description>&lt;BLOCKQUOTE&gt;Jeffrey wrote:&lt;BR /&gt;
 Wow, You have serious accuracy issues then. 
&lt;/BLOCKQUOTE&gt;

Are you joking? &lt;BR /&gt;
&lt;BR /&gt;
Better to stop here. &lt;BR /&gt;
&lt;BR /&gt;
Cheers</description>
      <pubDate>Tue, 27 Oct 2009 20:08:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125463#M23309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125464#M23310</link>
      <description>Jeffrey,&lt;BR /&gt;
&lt;BR /&gt;
I guess you misunderstood the code... &lt;BR /&gt;
&lt;BR /&gt;
The "(k=2)" acts like a switch... if k=2 it returns 1 else its zero.&lt;BR /&gt;
&lt;BR /&gt;
So... only in the second step (k=2) the status code 4 is added.&lt;BR /&gt;
&lt;BR /&gt;
HTH.</description>
      <pubDate>Tue, 27 Oct 2009 20:36:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125464#M23310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T20:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125465#M23311</link>
      <description>&lt;BLOCKQUOTE&gt;Braza wrote:&lt;BR /&gt;Jeffrey,&lt;BR /&gt;
&lt;BR /&gt;
I guess you misunderstood the code... &lt;BR /&gt;
&lt;BR /&gt;
The "(k=2)" acts like a switch... if k=2 it returns 1 else its zero.&lt;BR /&gt;
&lt;BR /&gt;
So... only in the second step (k=2) the status code 4 is added.&lt;BR /&gt;
&lt;BR /&gt;
HTH.&lt;/BLOCKQUOTE&gt;

 I did. My apologies. I also misunderstood what I have been told about mask and status values not being cumulative as well or that the computer reads them differently although I still get different result between 2+4 or 6. Now that I understand the switch I guess I don't understand the point of it returns an undesired result.</description>
      <pubDate>Tue, 27 Oct 2009 21:07:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125465#M23311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-27T21:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: HPRISM_ &amp; Top edge visibility</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125466#M23312</link>
      <description>Hi Jeffrey,&lt;BR /&gt;
&lt;BR /&gt;
In other words...&lt;BR /&gt;

&lt;PRE&gt;s = 11 + 4*(k=2) + 64&lt;/PRE&gt;

is a more elegant way of scripting&lt;BR /&gt;

&lt;PRE&gt;if k = 1 then s = 11 + 64
if k = 2 then s = 11 + 4 + 64
&lt;/PRE&gt;

or&lt;BR /&gt;

&lt;PRE&gt;if k = 1 then s = 75
if k = 2 then s = 79
&lt;/PRE&gt;

Edit: Anyway... Its a pity to see a great command compromised by such an unwanted feature...&lt;BR /&gt;
&lt;BR /&gt;
It would be nice to hear some feedback from GS about this issue.</description>
      <pubDate>Wed, 28 Oct 2009 10:22:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HPRISM-amp-Top-edge-visibility/m-p/125466#M23312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-28T10:22:28Z</dc:date>
    </item>
  </channel>
</rss>

