<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=MathSculptorAddinSample</id>
	<title>MathSculptorAddinSample - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=MathSculptorAddinSample"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=MathSculptorAddinSample&amp;action=history"/>
	<updated>2026-07-26T03:06:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=MathSculptorAddinSample&amp;diff=25493&amp;oldid=prev</id>
		<title>Burhop Piccard: New page: The Example below is a very basic sample Addin for Math Sculptor. It has only one dependency which is the ISculptAddin which has not dependencies beyond Microsoft .NET 2.0.  ISculptAddin s...</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=MathSculptorAddinSample&amp;diff=25493&amp;oldid=prev"/>
		<updated>2007-07-14T17:40:52Z</updated>

		<summary type="html">&lt;p&gt;New page: The Example below is a very basic sample Addin for Math Sculptor. It has only one dependency which is the ISculptAddin which has not dependencies beyond Microsoft .NET 2.0.  ISculptAddin s...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Example below is a very basic sample Addin for Math Sculptor. It has only one dependency which is the ISculptAddin which has not dependencies beyond Microsoft .NET 2.0.  ISculptAddin source can be found at [[MathSculptorInterface]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Resources;&lt;br /&gt;
using Burhop.MathSculptor;&lt;br /&gt;
&lt;br /&gt;
namespace SampleAddin&lt;br /&gt;
{&lt;br /&gt;
    public class SampleAddin : ISculptAddin&lt;br /&gt;
    {&lt;br /&gt;
        int radius1;&lt;br /&gt;
        int radius2;&lt;br /&gt;
&lt;br /&gt;
        #region ISculptAddin Members&lt;br /&gt;
&lt;br /&gt;
        public string Description&lt;br /&gt;
        {&lt;br /&gt;
            get&lt;br /&gt;
            {&lt;br /&gt;
                return &amp;quot;Creates shapes based off a circle whose radius can be modified&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        public System.Drawing.Image IconImage&lt;br /&gt;
        {&lt;br /&gt;
            get { return global::SampleAddin.Properties.Resources.SampleAddinImage; }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        public string LongDescription&lt;br /&gt;
        {&lt;br /&gt;
            get&lt;br /&gt;
            {&lt;br /&gt;
                return &amp;quot;This basic addin shows how to create your our DLLs for your own more unique sculptured primitives.&amp;quot;;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        public List&amp;lt;ISculptParam&amp;gt; Params&lt;br /&gt;
        {&lt;br /&gt;
            get&lt;br /&gt;
            {&lt;br /&gt;
                List&amp;lt;ISculptParam&amp;gt; pList = new List&amp;lt;ISculptParam&amp;gt;();&lt;br /&gt;
                SculptParam&amp;lt;int&amp;gt; radius1 = new SculptParam&amp;lt;int&amp;gt;();&lt;br /&gt;
                SculptParam&amp;lt;int&amp;gt; radius2 = new SculptParam&amp;lt;int&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
                //Param 1&lt;br /&gt;
                radius1.Name = &amp;quot;X Radius&amp;quot;;&lt;br /&gt;
                radius1.Value = 100;&lt;br /&gt;
                radius1.LowValue = 0;&lt;br /&gt;
                radius1.HighValue = 127;&lt;br /&gt;
&lt;br /&gt;
                //Param 2&lt;br /&gt;
                radius2.Name = &amp;quot;Y Radius&amp;quot;;&lt;br /&gt;
                radius2.Value = 100;&lt;br /&gt;
                radius2.LowValue = 0;&lt;br /&gt;
                radius2.HighValue = 127;&lt;br /&gt;
&lt;br /&gt;
                pList.Add(radius1);&lt;br /&gt;
                pList.Add(radius2);&lt;br /&gt;
                return pList;&lt;br /&gt;
            }&lt;br /&gt;
            set&lt;br /&gt;
            {&lt;br /&gt;
                SculptParam&amp;lt;int&amp;gt; iParam;&lt;br /&gt;
                iParam = value[0] as SculptParam&amp;lt;int&amp;gt;;&lt;br /&gt;
                radius1 = iParam.Value;&lt;br /&gt;
                iParam = value[1] as SculptParam&amp;lt;int&amp;gt;;&lt;br /&gt;
                radius2 = iParam.Value;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        public xyz getXYZ(double u, double v)&lt;br /&gt;
        {&lt;br /&gt;
            xyz result;&lt;br /&gt;
            //A Cylinder&lt;br /&gt;
            result.x = (byte)(radius1 * Math.Sin(u * 2 * Math.PI) + 127);&lt;br /&gt;
            result.y = (byte)(radius2 * Math.Cos(u * 2 * Math.PI) + 127);&lt;br /&gt;
            result.z = (byte)(v * 256);&lt;br /&gt;
            return result;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        #endregion&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Burhop Piccard</name></author>
	</entry>
</feed>