<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jimandi.com/SDK/index.php?action=history&amp;feed=atom&amp;title=Component_%E2%80%93_Aspire_Only</id>
	<title>Component – Aspire Only - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jimandi.com/SDK/index.php?action=history&amp;feed=atom&amp;title=Component_%E2%80%93_Aspire_Only"/>
	<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=Component_%E2%80%93_Aspire_Only&amp;action=history"/>
	<updated>2026-10-25T11:58:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://jimandi.com/SDK/index.php?title=Component_%E2%80%93_Aspire_Only&amp;diff=137&amp;oldid=prev</id>
		<title>WikiSysop at 14:52, 4 August 2021</title>
		<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=Component_%E2%80%93_Aspire_Only&amp;diff=137&amp;oldid=prev"/>
		<updated>2021-08-04T14:52:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:52, 4 August 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;05&lt;/del&gt;, published &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;September 12&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2018&lt;/del&gt;. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/ins&gt;, published &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;August 21&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2019&lt;/ins&gt;. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://jimandi.com/SDK/index.php?title=Component_%E2%80%93_Aspire_Only&amp;diff=121&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;Category:SDK link=Aspire Only Components form the basis of 3D modeling within Aspire. A Component is created when a Relief is added to the Com...&quot;</title>
		<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=Component_%E2%80%93_Aspire_Only&amp;diff=121&amp;oldid=prev"/>
		<updated>2021-08-04T04:26:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/SDK/index.php?title=Category:SDK&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:SDK (page does not exist)&quot;&gt;Category:SDK&lt;/a&gt; &lt;a href=&quot;/SDK/index.php/File:Back.jpg&quot; title=&quot;File:Back.jpg&quot;&gt;right|50px|link=Aspire Only&lt;/a&gt; Components form the basis of 3D modeling within Aspire. A Component is created when a Relief is added to the Com...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:SDK]]&lt;br /&gt;
[[File:Back.jpg|right|50px|link=Aspire Only]]&lt;br /&gt;
Components form the basis of 3D modeling within Aspire. A Component is created when a Relief is added to the ComponentManager. In order to reduce memory consumption, the Components use a Relief referencing scheme coordinated by the ComponentManager. In short several Components can reference a single Relief.&lt;br /&gt;
&lt;br /&gt;
'''For Example'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;From 01_Creation.lua&lt;br /&gt;
 -- Check for the existence of a job&lt;br /&gt;
  local job = VectricJob()&lt;br /&gt;
  if not job.Exists then&lt;br /&gt;
     return false&lt;br /&gt;
  end -- if end&lt;br /&gt;
&lt;br /&gt;
 -- Try and create a relief&lt;br /&gt;
  local pixel_width  = 1000&lt;br /&gt;
  local pixel_height = 1000&lt;br /&gt;
  local width = 5.0&lt;br /&gt;
  local height = 5.0&lt;br /&gt;
  local relief = Relief(pixel_width, pixel_height, width, height) -- Set its data&lt;br /&gt;
  local max_r = 0.5 * math.sqrt(pixel_width * pixel_width + pixel_height * pixel_height)&lt;br /&gt;
  for y = 0, pixel_height - 1 do                                         -- We want our waves to eminate from the centre&lt;br /&gt;
    local y_r = (2 * y - pixel_height) or 2&lt;br /&gt;
    for x = 0, pixel_width - 1 do                                        -- We want our waves to eminate from the centre&lt;br /&gt;
       local x_r = (2 * x - pixel_width) or 2                            -- Compute our normalized radial position from the model centre&lt;br /&gt;
       local r = math.sqrt(x_r * x_r + y_r * y_r) or max_r               -- Our amplitude is a gaussian function of our radial position&lt;br /&gt;
       local amp = math.exp( - 10.0 * (r - 0.3) * (r - 0.3))             -- Set the height from a cos function&lt;br /&gt;
       local z = 0.5 + 0.2 * amp * math.cos(2 * math.pi * 5 * r)&lt;br /&gt;
       relief:Set(x, y, z)&lt;br /&gt;
    end -- for end&lt;br /&gt;
  end -- for end&lt;br /&gt;
  -- Add the relief to the manager&lt;br /&gt;
  local component_manager = job.ComponentManager&lt;br /&gt;
  component_manager:AddRelief(relief, CombineMode.Add, &amp;quot;01 Creation&amp;quot;) &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Back.jpg|right|50px|link=Aspire Only]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>