<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have two inter-related questions regarding pst3D-solides.<div><br></div><div>First, is it possible to define objects in this system which can be used in different contexts?</div><div>I am thinking of an alternative to object=new (say object=myobject) which is user-defined&nbsp;</div><div>and can be inserted into a larger routine in pst3D-solides.</div><div>My motivation for this is this: &nbsp;I would like to create a macro which allows me to draw three nested</div><div>surfaces, each "cut open" to show the ones inside. &nbsp;I'd like to be able to control the dimensions of</div><div>the surfaces and the size of the cut, as well as other items like the colors used.</div><div>My immediate application is three level sets of a quadratic of the form&nbsp;</div><div>(x^2+y^2)/A^2-z^2/B^2</div><div>for one negative and one positive value as well as the value zero:</div><div>this means a hyperboloid of one sheet enclosing a double cone, which in turn</div><div>encloses a hyperboloid of two sheets.</div><div>I've succeeded in creating a macro which draws a hyperboloid of one sheet, cut open,</div><div>along the lines I have sketched. &nbsp;Of course I could copy this (and change "action=draw**" to&nbsp;</div><div>"action=none &nbsp;name=outer") and then create analogous programs for a double cone cut open</div><div>and a hyperboloid of two sheets, followed by an "object=fusion" command. &nbsp;But I envision&nbsp;</div><div>possibly wanting to combine one of these elements with others in the future, so it would be better</div><div>to be able to simply create e.g. the hyperboloid of one sheet as a stand-alone object which can</div><div>be manipulated as part of a larger program.</div><div>Is there a way to do this?</div><div><br></div><div>Second, I note that object=new accepts only the parameters a, b, and h; &nbsp;is there a way to give&nbsp;</div><div>it (or a version created as above) other parameters that are set only at the beginning of the program?</div><div>I have in mind for example the values of A and B in the expression for the quadratic above,&nbsp;</div><div>or the number of cells being "cut out" of a surface.</div><div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><br class="Apple-interchange-newline">Zbigniew Nitecki</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Department of Mathematics</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Tufts University</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medford, MA 02155</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">telephones:</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3843</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept.<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3234</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept. fax<span class="Apple-converted-space"><span class="Apple-converted-tab">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</span></span></span>(617)627-3966</font></p><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span>
</div>
<br></div></body></html>