📄 node91.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>6.3 Entering a position in the 3D space</TITLE><LINK REL=STYLESHEET TYPE="text/css" HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="6.3 Entering a position in the 3D space"><meta name="keywords" value="Guide6"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1537 HREF="node90.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1541 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1543 HREF="node92.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1545 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node91.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node91.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node91.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1544 HREF="node92.html">7 Internal programs</A><B>Up: </B> <A NAME=tex2html1542 HREF="node88.html">6 Input management</A><B> Prev: </B> <A NAME=tex2html1538 HREF="node90.html">6.2 Interaction subroutines</A><B><A HREF="node2.html" >Contents</A></B><HR SIZE=3 WIDTH="75%"><H1><A NAME=SECTION05630000000000000000>6.3 Entering a position in the 3D space</A></H1><P><P><P>To introduce a position into the 3D space, it is firstly necessary to indicate in which part of the user spacewe are interested. The following subroutine is used in this case:<P><UL><LI><P><PRE> SUBROUTINE DEFWSP(X, Y, Z, U, V, W, SC) REAL X, Y, Z, U, V, W, SC</PRE><P>defines a<A NAME=3308> </A> rectangle to delimit the zone in the 3D space which interests uswhen entering a position. This zone is indicated by a vertex (X, Y, Z) and the main diagonal (U, V, W).<P> SC designates the scaling factor to apply to go from the input surface coordinates,expressed in centimeters, to the user coordinates.<P></UL><P>Once the user space is specified, it is necessary to display several views (straight, front, bottom, perspective) of the context in which the position must be introduced, on the screen. The following subroutines are used for this purpose:<P><UL><LI><P><PRE> SUBROUTINE DI(OBJET) EXTERNAL OBJET</PRE><P>displays the object described by subroutine OBJET in the 4 standard views<A NAME=3311> </A>. The subroutines used to display the top, front and right views are:<P><LI><P><PRE> SUBROUTINE FDESSU SUBROUTINE FFACE SUBROUTINE FDROIT</PRE><P></UL><P>Once the context is displayed, it<A NAME=3313> </A> is<A NAME=3314> </A> possible to enter a<A NAME=3315> </A> position<A NAME=3316> </A> using 2 points entered successively on two distinct orthogonal views.<P><UL><LI><P><PRE> SUBROUTINE GTXYZC(X, Y, Z, IC, NOMDES) CHARACTER*(*) IC REAL X, Y, Z INTEGER NOMDES</PRE><P>returns<A NAME=3318> </A> the coordinates in the 3D space of a point obtained by entering two points intwo distinct orthogonal views successively, in X, Y, Z. The coordinates are expressed in the user space specified in subroutine DEFWSP.<P> This subroutine also returns the last character typed (for the case when a character must be typed to enter a point), in IC.<P> NOMDES is the segment number used by this subroutine to ensure that the positions input are reflected on the screen.<P></UL><P><P><P><HR SIZE=3 WIDTH="75%"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1537 HREF="node90.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1541 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1543 HREF="node92.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1545 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node91.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node91.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node91.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1544 HREF="node92.html">7 Internal programs</A><B>Up: </B> <A NAME=tex2html1542 HREF="node88.html">6 Input management</A><B> Prev: </B> <A NAME=tex2html1538 HREF="node90.html">6.2 Interaction subroutines</A><B><A HREF="node2.html" >Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -