<?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: Basic data types in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240504#M74570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to Scott for you explanation !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2016 02:03:17 GMT</pubDate>
    <dc:creator>bjyuen</dc:creator>
    <dc:date>2016-11-15T02:03:17Z</dc:date>
    <item>
      <title>Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240499#M74565</link>
      <description>&lt;P&gt;Hi~&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to progamm add-on application of gear hobbing using the CoCreate/SolidDesigner Integration Kit.&lt;/P&gt;
&lt;P&gt;But I met some questions about the basic data types in Modeling sofeware environment.&lt;/P&gt;
&lt;P&gt;Just like point (gpnt3d or gpnt2d),&amp;nbsp; direction ,&amp;nbsp; vector , position , u-vector , gpntwc , etc.&lt;/P&gt;
&lt;P&gt;Does anybody could help me to explain them , and what difference between them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Justin&lt;/P&gt;&lt;BR /&gt;&lt;STRONG&gt;This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread.  You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist. &lt;/STRONG&gt;</description>
      <pubDate>Sun, 13 Dec 2020 09:23:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240499#M74565</guid>
      <dc:creator>bjyuen</dc:creator>
      <dc:date>2020-12-13T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240500#M74566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpnt3d is the data structure for a 3D coordinate or vector.&amp;nbsp; This structure can be created from the X, Y, Z values using the make-gpnt3d command and likewise the X, Y, Z values can be read from the gpnt3d structure using the gpnt3d_x, gpnt3d_y and gpnt3d_z commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is how this might look in lisp code.&amp;nbsp; This is not tested so forgive me if I typed something in wrong (which is highly likely).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(setf coord (make-gpnt3d :X 23.67 :Y 52.69 :Z 75.23))&amp;nbsp; ; sets variable coord with x=23.67, y=52.69 and z=75.23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(print coord) ; in case you want to see the coord values in the consule window (to help with debugging)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(setf xcoord (gpnt3d_x coord))&amp;nbsp; ; sets xcoord to the X coordinate of coord&lt;/P&gt;&lt;P&gt;(setf ycoord (gpnt3d_y coord))&amp;nbsp; ; sets ycoord to the Y coordinate of coord&lt;/P&gt;&lt;P&gt;(setf zcoord (gpnt3d_z coord))&amp;nbsp; ; sets zcoord to the Z coordinate of coord&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As applied to vectors, the X value is the magnitude in the X direction, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this gets you headed in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:10:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240500#M74566</guid>
      <dc:creator>sobrien-2</dc:creator>
      <dc:date>2016-10-28T11:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240501#M74567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The length of a &lt;STRONG&gt;direction &lt;/STRONG&gt;is always 1. (e.g. 1,0,0 or 0,-0.5,0.866)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A &lt;STRONG&gt;vector &lt;/STRONG&gt;is essentially a direction and distance. It is expressed as the distance in each of the 3 directions (e.g. 0,10,5 or 1,1,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A &lt;STRONG&gt;position&lt;/STRONG&gt; is the coordinates in X, Y, and Z, but it can also be thought of as a &lt;STRONG&gt;vector&lt;/STRONG&gt; from 0,0,0 to the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpnt3d is the construct for a value with 3 coordinates. This can represent a 3D position (point), a vector, or a direction since all three have 3 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpnt2d is the construct for a value with 2 coordinates. This is normally the 2D coordinates of a point on a workplane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpntwc is the construct for when you pick a point in the viewport (if you don't pick on an existing object)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:03:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240501#M74567</guid>
      <dc:creator>PeterKehoe</dc:creator>
      <dc:date>2016-10-28T17:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240502#M74568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to Pete and Scott, the basics of points, vectors etc. have been explained.&lt;/P&gt;&lt;P&gt;My question is: Do you have a IKIT license?&lt;/P&gt;&lt;P&gt;While you can start prototyping in "interpreted LISP", the usual way to develop an add-on application is:&lt;/P&gt;&lt;P&gt;- Develop and test LISP Code&lt;/P&gt;&lt;P&gt;- Finally, use the LISP Compiler to create a DLL (to protect your development)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 17:46:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240502#M74568</guid>
      <dc:creator>MaxR.Kublin</dc:creator>
      <dc:date>2016-10-31T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240503#M74569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our customized LISP code is not compiled.&amp;nbsp; We use the commands from the Integration Tool Kit to write customization LISP code but we do not have the developer's kit (IKIT) license.&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 20:18:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240503#M74569</guid>
      <dc:creator>sobrien-2</dc:creator>
      <dc:date>2016-10-31T20:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240504#M74570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to Scott for you explanation !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 02:03:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240504#M74570</guid>
      <dc:creator>bjyuen</dc:creator>
      <dc:date>2016-11-15T02:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Basic data types</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240505#M74571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to Peter for your explanation !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the world coordinate （gptwc) dynamic or static in the viewport?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 02:14:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Basic-data-types/m-p/240505#M74571</guid>
      <dc:creator>bjyuen</dc:creator>
      <dc:date>2016-11-15T02:14:03Z</dc:date>
    </item>
  </channel>
</rss>

