2
Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions are
9
- Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
12
- Redistributions in binary form must reproduce the above copyright
13
notice, this list of conditions and the following disclaimer in
14
the documentation and/or other materials provided with the
17
- Neither the name of The Numerical ALgorithms Group Ltd. nor the
18
names of its contributors may be used to endorse or promote products
19
derived from this software without specific prior written permission.
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
24
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
25
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
Copyright The Numerical Algorithms Group Limited 1991.
40
This file contains the definitions for the generalized point
46
/* viewman's and viewAlone's refPt */
47
#define refPt(v,x) ((v).points + (x))
48
/* view3D's refPt - allows reference into new, dynamically generated points
49
a function called traverse(n) is expected - it returns the nth point in
50
the resevoir. note that x should be zero based (if numOfPoints is 10,
51
then x=10 would access the first point on the resevoir list).
53
#define refPt3D(v,x) ( (x)>(v).numOfPoints?traverse(resMax - ((x)-((v).numOfPoints-1))):(v).points + (x) )
55
typedef struct _componentProp {
60
typedef struct _LPoint { /* meaning list of points */
66
typedef struct _LLPoint { /* meaning list of list of points */
67
/* for the current 3D stuff:
68
functions of 2 variables - closed is false (xmax does not close
69
back to xmin) parametric surfaces of one variable (tubes) - closed
70
is user defined (from AXIOM)
75
int meshColor; /* not used */
79
typedef struct _LLLPoint { /* meaning list of list of list of points */
80
/* for the current 3D stuff -- that is functions of 2 variables and
81
parametric surfaces of one variable (tubes) -- there would be