SYSTEM OF RELATIONAL ENTITIES FOR OBJECT-ORIENTED COMPUTER-AIDED GEOMETRIC DESIGN

Abstract: Geometric objects including points, lines, curves, surfaces and solids are defined and constructed in a system which retains and utilizes relationships and dependencies between objects in a directed graph (digraph) data structure. The primary advantage is automatic updating of the model, preserving dependencies, when an underlying object is changed. Multiple types of parametric curves and surfaces and multiple levels of dependency are easily supported through a recursive program structure. Difficulties of surface-surface intersection and trimming are largely avoided by provision of novel entities which permit construction of accurate and durable joins between surface objects. An example model of a sailing yacht design illustrates six surface objects of several types with the defined dependency relationships. The hull (271) deck (272), cabin forward (273), cabin side (274), cabin aft (275) and cabin top (276) surfaces intersect at joins (278), (279) which are accurate and durable. The connectivity at the joins and the relative positioning of the surfaces are automatically preserved as the model is updated by changing one of the surfaces.

Description: SYSTEM OF RELATIONAL ENTITIES FOR OBJECT-ORIENTED COMPUTER-AIDED GEOMETRIC DESIGN FIELD OF THE INVENTION The invention relates to a method of representing two- and three-dimensional geometric objects in a data structure. The method is particularly useful in the field of computer-aided design and numerical-control manufacturing of complex geometric objects made up of curves, surfaces, and solids. BACKGROUND OF THE INVENTION Geometric definition is an essential element in the design of practically any object to be manufactured. Until recently, geometric definition was performed primarily by drafting scale drawings of the object. In the last two decades, computer-aided geometric design (CAGD) has largely supplanted drafting. In CAGD, mathematical representations of an object's geometry are stored in computer memory and manipulated by the computer user. Sometimes the product of a CAGD design is scale drawings produced on a plotting device; in other cases a CAGD representation of the object is transmitted to numerical- control (NC) machinery for automated production of the object. The CAGD representation may also serve as a basis for analysis and evaluation of the design aside from visual aspects, e.g. finite-element stress analysis. One well-known example of a CAGD program is AutoCAD (R) , produced by AutoDesk, Inc. of Sausalito, Calif. Initially a two-dimensional environment simulating the drafting process on paper, AutoCAD now provides a three- dimensional environment in which many types of geometric entities including points, lines, curves, surfaces and solids can be defined, positioned, and edited to build up extremely precise definitions of highly complex objects. There are other CAGD programs which are much less general than AutoCAD, -but are better adapted to specialized purposes; e.g. FAIRLINE (R) by AeroHydro, Inc., which is adapted to the special task of creating fair surfaces for ship hull design. CAGD programs for workstation and mainframe computers, for example IGDS (R) by Intergraph Corp., Huntsville, Ala., provide more flexible surface and solid modeling entities, such as nonuniform rational B- spline (NURBS) surfaces. In a CAGD program, each object springs into existence at the time when it is created, either by execution of a user command, or as a result of reading data from a file. In most circumstances the new object is positioned, oriented or constructed in some deliberate relationship to one or more objects already in existence. For example,, line B may be created in such a way that one of its endpoints is one end of a previously existing line A. However, the relationship which was clearly in the mind of the user at the time line B was created is not retained by the CAGD program; so if in some later revision of the geometry line A is displaced, then line B will stay where it is and no longer join line A. A conventional CAGD representation of geometry therefore consists of a large number of essentially independent simple objects, whose relationships are incidental to the manner and order in which they were created, but are not known to the program. If design always proceeded in a forward direction, the loss of relationship information would not be a problem. One would start a project, add objects until the design is complete, and save the results. However, it is well known that engineering design is only rarely a simple forward process. It is far more commonly an iterative process: design is carried forward to some stage, then analyzed and evaluated; problems are identified; then the designer has to back up to some earlier stage and work forward again. It is typical that many iterative cycles are required, depending on the skills of the designer, the difficulty of the design specifications, and any optimization objectives that may be present. In each forward stage, the designer will have to repeat many operations he previously performed (updating), in order to restore relationships that were disrupted by the revision of other design elements. For example, he may have to move the end of line B so it once more joins line A; he may have to do this many times in the course of the design. CAGD systems typically provide extensive editing functions to facilitate these updates. Revision of a previously existing design to meet new requirements is a common situation where similar problems are encountered. A change that alters an early stage of the design process requires at least one forward pass through all the subsequent design stages to restore disrupted relationships. Particularly if the relationships, and the sequence of design stages to achieve them, have been lost (and they are not normally retained in a way accessible to the user), the updating process can be very difficult, error-prone and time- consuming. Some partial solutions to this problem are known. In some CAGD programs including AutoCAD, lines A and B can be created together as part of a "polyline" entity; then their connectivity will be automatically maintained if any of their endpoints, including their common point, are moved. Christensen (US 4,663,616) has disclosed the concept of a "sticky" attribute which causes selected lines to remain connected to objects they are deliberately attached to. Draney (US 4,829,446) has disclosed the concept of giving points in two dimensions serial numbers, and locating another point in two dimensions (a "Relative Point") by its relationship (x,y coordinate offsets) to a numbered point. Oosterholt (US 4,868,766) has disclosed th concept of giving all geometric objects names, and locating each object in relationship to at most one other object, in a tree structure of dependency. Ota et al. (US 5,003,498) have disclosed a CAGD system in which some objects have names, and are used by name in the construction of other more complex objects. Saxton (US 4,912,657) discloses a system of "modular parametric design in which design elements can be stored and conveniently recreated with different leading dimensions. As mentioned above, many CAGD surface modeling systems support only a single type of surface, e.g. the FAIRLINE (R) surface, which is created from explicit cubic splines lofted through a set of B-spline "Master Curves". Although this surface can be molded into a wide variety of shapes useful in its own domain of ship hull design, there are many shapes it cannot make; e.g. it cannot form either an exact circular cross section or a completely round nose, both common features of submarine hulls. CAGD programs suited to mechanical design, such as AutoCAD, frequently support several simple surface types such as ruled surfaces and surfaces of revolution, but do not support more complex free-form surfaces such as B-spline parametric surfaces. Although it is widely appreciated that there would be large advantages in supporting a broader set of curve and surface types within a single CAGD environment, this has heretofore been possible only in workstation and mainframe CAGD systems, presumably because of the complexity of the programming required. One known partial solution to this problem is to support only a single surface type, which has sufficient degrees of flexibility to encompass a useful set of simpler surfaces as special cases . Nonunifor rational B- spline (NURBS) surfaces have been proposed to fill this role, since by special choice of knots and coefficients the NURBS curve can accurately represent arcs of circles, ellipses, and other useful conic section curves. Disadvantages of this approach include the obscure relationship between the selection of knots and coefficients to achieve a desired curve; the large quantity of data required to define even a simple surface such as a circular cylinder; nonuniformity of resulting parameterizations; and the general unsuitability of NURBS surfaces for interactive design of surfaces having special requirements such as fairness or developability. In CAGD surface modeling systems, intersections between surfaces often account for much of the complexity in both the program and the user interface. In a typical application, surface Y is constructed, then surface Z is constructed in such a way that it intersects surface Y. The next step is often to find the curve of intersection of Y and Z; then portions of Y and/or Z which extend beyond that curve may be discarded (trimmed). The problem of intersection of two surfaces is inherently difficult, for several reasons. The two surfaces may not intersect at all. Finding any single point of intersection requires solution of three simultaneous, usually nonlinear, equations. These equations will be ill-conditioned if the intersection is at a low angle. The intersection may be a single point, a simple arc, a closed curve, a self- intersecting curve, or multiple combinations of these elements. The surfaces might actually coincide over some finite area. Once a curve of intersection is found, it is often difficult to indicate correctly which portion of which surface is to be discarded.- After trimming, a parametric surface patch may no longer be topologically quadrilateral, so it can no longer be conveniently parameterized. OBJECTS OF THE INVENTION It is an object of the present invention to provide a CAGD environment which minimizes the effort required to revise and update geometric models, by capturing, storing and utilizing essential dependencies between the model's geometric objects. A second object of the invention is to provide a CAGD surface modeling environment in which a wide variety of curve and surface types are supported for convenience and "flexibility. A third object of the invention is to provide a CAGD surface modeling environment in which the difficulties of intersecting and trimming surfaces are largely avoided by providing convenient ways to construct surfaces which contact and join one another accurately in the first place, with contacts and joins that are automatically maintained during updates of the model. SUMMARY OF THE INVENTION In this summary, a three-dimensional design space is contemplated, utilizing Cartesian coordinates (x, y, z) for the location of points . Some principles of the invention could also be advantageously applied in a design space of two dimensions, or of more than three dimensions, or with non-Cartesian coordinates. Definition: An entity is a type of geometric object defined within the system, and requiring a specific set of data for its actualization. Common CAGD entities are the point, the line, the arc, the Bezier patch. Definition: An object is an actualization of an entity; for example, a point located at (1., 2., 3.). Definition: A logical model is any valid collection of objects, i.e., a set of valid objects in which all dependencies are satisfied. Definition: An absolute model is a geometric representation computed from a logical model, in which all points are located by their absolute coordinates. The first objective just mentioned (utilizing dependencies) is achieved by associating with each object in the model a unique name (or number), and defining and implementing a series of entity types whose actualizations depend on, by referencing the names (or numbers) of, other objects in the model. According to the invention, the dependency relationship between objects has the logical form of a directed graph (digraph). This data structure is known to the program, is available to be manipulated by the user, is stored along with specific numerical data to form the complete internal representation of the model, and is used to selectively update the model following alteration of any component object. Those qualitative properties of the model which are automatically maintained by utilizing the data structure of dependencies are referred to below as "durable" properties. Each node of the dependency digraph represents an object; each directed edge indicates the dependency of one object on another. The dependency can take many forms. For example, a Relative Point depends on another point object for its location. A B-spline Curve depends on each of the point objects which are its vertices. A Lofted Surface depends on each of the curve objects through which it is lofted, and it also depends, in turn, on each point object used in the definition of those curves. Dependency can extend to many levels. An object can depend on many other objects, and can have many other objects dependent on it. Some objects may be defined in an absolute sense, having no dependency on any others. For example, an Absolute Point is specified solely by its coordinates x, It is useful to classify and define entities first in terms of their dimensionality, and second in terms of their primary dependencies: Points are zero-dimensional objects. An Absolute Point depends on nothing. A Relative Point depends on another point. A Bead is a point constrained to lie on a curve. A Magnet is a point constrained to lie on a surface. A Ring is a point constrained to lie on a snake. Curves are one-dimensional objects. A Line depends on two points. An Arc depends on three points. A B-spline Curve depends on two or more points. A C-spline Curve depends on two or more points. Surfaces are two-dimensional objects. A Translation Surface depends on two curves. A Ruled Surface depends on two curves. A Revolution Surface depends on one curve and two points. A C-Lofted Surface depends on two or more curves . A Blended Surface depends on three or more curves. A B-spline Surface depends on an array of points. Snakes are one-dimensional objects, parametric curves constrained to lie on a parametric surface. Any snake depends on its surface. A Line Snake depends on two magnets or rings. A Geodesic Snake depends on two magnets or rings. An Arc Snake depends on three magnets or rings . A B-Spline Snake depends on two or more magnets or rings . A C-Spline " Snake depends on two or more magnets or rings. The above list of entities is intended to be illustrative, but not necessarily complete. Extension of this system of entities in a now obvious way to include parametric solids (three-dimensional objects with parameters u, v, w) , and point, curve and surface entities located relative to a solid by use of the solid's parametric coordinate system, is specifically contemplated. A different useful classification may be made in terms of the dependency role each entity class can fulfill: When a point called for, any point entity may be used. When a bead is called for, only a bead may be used. When a magnet is called for, a magnet or ring may be used. When a ring is called for, only a ring may be used. When a curve is called for, any point, curve or snake entity may be used. When a snake is called for, a snake, magnet or ring may be used. When a surface " is called for, only a surface may be used. Use is made of parametric coordinates as part of the data for some of these entities. For example, a curve may be parameterized with a parameter t which varies from 0 at one end to 1 at the other. An Absolute Bead can then be located by specifying the curve and a specific value for t. A surface may be parameterized with parameters u,v each of which varies independently from 0 to 1. An Absolute Magnet can then be located by specifying the surface and a specific pair of parameter values for u,v. A snake is a parametric curve in the two-dimensional u,v parameter space of its supporting surface. One useful form of representation of a logical model is a text description having one record for each object. The object record includes the entity type, the object name, various object attributes such as color and visibility, and any variable data required to actualize the object, presented in a predefined order peculiar to the entity. For example, the following set of five records is the solution to the "line A - line B" problem discussed above, according to the invention: AbsPoint Al 14 1 1. 1. 3.; AbsPoint A2 14 1 2. 1. 3.; Line line_A 13 1 Al A2; AbsPoint B2 14 1 2. 3. 3.; Line line_B 13 1 A2 B2; This model contains 5 objects: 3 Absolute Points (named 'Al', Α2", 'B2') and 2 Lines (named 'line_A', 'line_B' ) . The numbers 14 and 13 are color specifiers, and the l's that follow them specify visibility. This data clearly records the intention that ' line_B' start where 'line_A' ends, viz. at point Α2'. The dependency of ' line_B' on point 'A2 ' creates the durable connection. The following record adds one more object to this example: AbsBead bead_B 12 1 line_B 0.7; This creates a visible point, of color 12, constrained to remain on ' line_B' at a parameter value of 0.7, i.e., 70% of the way from point 'A2' to point 'B2 ' . Following any change in ' line A 1 , 'bead_B' will still lie on 'line_B', in the same relative location. The dependency of 'bead_B ' on 'line_B ' creates the durable relationship. For purposes of output or display, an absolute model will be computed from the logical model. For this example, the absolute model would consist of: a point, color 14 at (1., 1., 3.) a point, color 14, at (2., 1., 3.) a line, color 13, from (1., 1., 3.) to (2., 1., 3.) a point, color 14, at (2., 3., 3.) a line, color 13, from (2., 1., 3.) to (2., 3., 3.) a point, color 12, at (2., 2.4, 3.) Now suppose that the example model is changed by moving point ' 2' to a new position (2., 1., 4.). This is accomplished by changing one element in one record of the logical model: AbsPoint A2 14 1 Following this change, the updated absolute model would consist of: a point, color 14 at (1., 1., 3.) a point, color 14, at (2., -l., 4.) a line, color 13, from (1.., 1., 3.) to (2., 1., 4.) a point, color 14, at (2., 3., 3.) a line, color 13, from (2., 1., 4.) to (2., 1., 3.) a point, color 12, at (2., 2.4, 3.3) The connection of 'line_A' and 'line_B' has been automatically maintained; 'bead_B' is still located on 'line_B', and in the same relative position, i.e. at 70% of the length of 'line_B ' . This brief example illustrates the automatic updating of the model that is made possible by utilization of the digraph data structure of dependencies . The internal or external representation of the data structure may well be different from this text representation, but will nevertheless encode the dependency information in a manner that is logically equivalent to a digraph. The second objective (supporting a variety of curve and surface types) is achieved by a special organization of the program instructions. According to the invention, all point objects may be accessed through a single routine Point, whose input parameter is the name or index of a point object, and which returns the x, y, z coordinates of the object. Within Point, a case statement branches to separate routines for evaluating each specific point entity. It is essential that Point be programmed in a recursive fashion, so that it can call itself, or be called by routines that have been called by it. Similarly, all curve objects may be accessed through a single routine Curve whose arguments are the name or index of a particular curve, and a list of t parameter values, and whose return parameters include a tabulation of x, y, z coordinates. Within Curve, a case statement branches to separate routines for evaluating each specific curve entity. It is likewise essential that Curve be programmed in a recursive fashion, since the data for any curve may depend on another curve. To the program module that calls Curve, all types of curves are interchangeable; you give it a t, it gives you back a point x, y, z. To support a new curve entity, it is only necessary to define the data required for that entity; add one case to the Curve routine; and add one routine that evaluates the new entity. In like fashion, there can be a single recursive routine Snake whose arguments are the name or index of a particular snake object, and a list of t parameter values, and whose return parameters include a tabulation of x, y, z coordinates. If snakes are treated as curves in the two- dimensional u, v parameter space of a surface, then addition of a new curve entity automatically adds a new snake entity of the same type. Maintaining this correspondence of curve and snake types is advantageous since the user then need not learn and remember separate properties for curves and snakes. In like fashion, there can be a single recursive routine Surface whose arguments are the name or index of a particular surface object, and vectors of u and v parameter values, and whose return parameters include a tabulation of x, y, z coordinates. To support N surface types, the programming effort is only proportional to N, rather than N squared. The third objective (avoidance of surface-surface intersection and trimming) is achieved by utilizing the dependency relationships disclosed above, and providing certain generally useful snake and surface entities. Two distinct problems are addressed here: (1) forcing two surface objects Y and Z to accurately share a common edge, and (2) forcing one surface object Z to end accurately on another surface object Y, along a curve which is not necessarily an edge of Y. According to the invention, durable common edges between surfaces may be achieved by using common data to define the adjoining edges. For example, if the two surfaces are blended surfaces, whose data includes boundary curves, all that is required is to use the same curve object for the corresponding edges of the two surfaces. Two lofted surfaces will accurately join in the loft direction if their corresponding Master Curves have common endpoints along the edges where they adjoin. The SubCurve entity, which creates a new curve identical to the portion of a specified existing curve between two specified beads, allows construction of common edges even where commonality does not extend along a complete edge of one or both surfaces. According to the invention, a surface Z having an edge which accurately and durably lies on another surface Y can be achieved by defining a snake S on Y, then using S for an edge curve in the subsequent specification of Z. This arrangement also provides an alternative solution for common edges, when S is specified to be a Line Snake lying along part or*-all of one edge of Y. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 shows a computer system having a central processing unit and disk memory, keyboard, mouse, and monitor, on which is displayed a 3-dimensional geometric model as a wireframe. FIGS. 2 to 5 illustrate point objects: FIG. 2, Absolute Point and Relative Point; FIG. 3, Absolute Bead and Relative Bead; FIG. 4, Absolute Magnet and Relative Magnet; FIG. 5, -Absolute Ring and Relative Ring. FIGS. 6 to 10 illustrate curve objects: FIG. 6, Line and Arc curves; FIG. 7, B-Spline Curve; FIG. 8, C-Spline Curve; FIG. 9, Sub-curve; FIG. 10, Relative Curve. FIGS. 11 to 18 illustrate surface objects: FIG. 11, Ruled Surface; FIG. 12, Translation Surface; FIG. 13, Revolution Surface; FIG. 14, Blended Surface; FIG. 15, C-Lofted Surface; FIG. 16, B-spline Surface; FIG. 17, Sub-surface; FIG. 18, Relative Surface. FIGS. 19 to 24 illustrate snake objects: FIG. 19, Line Snake; FIG. 20, Arc Snake; FIG. 21, B-spline Snake; FIG. 22, C-spline Snake; FIG. 23, Sub-snake; FIG. 24, Relative Snake. FIG. 25 is an example of the dependency digraph for a simple model. FIG. 26 illustrates a possible organization of program modules which accomplishes the purposes of the invention. FIG. 27 shows an example application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT One preferred embodiment of the invention is a computer program operating on a suitable computer system such as an IBM-PC compatible or engineering workstation with a high-resolution color graphics display. The input device can be either a keyboard or a mouse. The graphics display is used primarily to display wireframe images of the model in perspective and/or orthogonal views . Controls are provided so the user can freely rotate, zoom or pan to - select appropriate views. Alternative screen windows can show the u, v parameter space of a surface; outline-form listings of objects and their dependencies; and the text form of the logical model. FIG. 1 shows a computer system having a central processing unit and disk memory 11, keyboard 12, mouse 13, and monitor 14, on which is displayed a 3-dimensional object as a wireframe 15. In the graphics display, a visible point object is displayed as a small circle. A visible line, curve, or snake object is represented as a polyline with a user- selectable number of subdivisions. A visible surface object is displayed as a mesh of parameter lines having a user-selectable number of subdivisions in each parameter direction. With more advanced graphic display hardware, surface objects may be rendered as solids with hidden lines and surfaces removed. All objects have a color attribute; this can select one color from a palette of 16. All objects have a visibility attribute; this is a 16-bit integer in which the bits have different significance for different classes of entities, as follows: points : bit 1: point is visible curves, snakes: bit 1: polyline is visible bit 2: polygon is visible bit 3: tick-marks displayed at uniform parameter intervals surfaces : bit 1: parameter lines in u-direction are visible bit 2: parameter lines in v-direction are visible bit 4: boundary is visible The following is a list of entities supported in the preferred embodiment: Point class: Absolute Point (AbsPoint): x, y, z x, y, z are the absolute coordinates of the point. Relative Point (RelPoint): point, dx, dy, dz dx, dy, dz are the coordinate offsets from 'point' FIG. 2 shows an Absolute Point 21 and a Relative Point 22 located in a Cartesian coordinate system. Absolute Bead (AbsBead): curve, t t is an absolute parameter value on 'curve' Relative Bead (RelBead): bead, dt dt is the parameter offset from 'bead' FIG. 3 shows a curve 31 in 3-space mapped from a 1-D parameter space 32, an Absolute Bead 33, and a Relative Bead 34 located in both spaces. Absolute Magnet (AbsMagnet) : surface, u, v u, v are the absolute parameters on 'surface' Relative Magnet (RelMagnet): magnet, u, v du, dv are the parameter offsets from 'magnet' FIG. 4 shows a surface 41 in 3-space mapped from a 2-D parameter space 42, an Absolute Magnet 43, and a Relative Magnet 44 located in both spaces. Absolute Ring (AbsRing) : snake, t t is an absolute parameter value on 'snake' Relative Ring (RelRing) : ring, dt dt is a parameter offset from 'ring' FIG. 5 shows a snake 51 in 3-space mapped from a 1-D parameter space 52 through a 2-D parameter space 53, and an Absolute Ring 54 and a Relative Ring 55 located in all- three spaces. Curve class: (All curves are parameterized from 0. to 1. ) Line (Line): pointl, point2 The Line is a straight * line from 'pointl' (x-^) to 'point2' (x 2 ): x(t) = (1-t) * L + t x 2 Arc (Arc): pointl, point2, point3 The Arc is a circular arc interpolating the three points in sequence. FIG. 6 illustrates Line 61 and Arc 62 objects, dependent on 2 and 3 point objects 63 respectively. B-spline curve (BCurve): type, pointl, point2, .... pointN type gives the B-spline order: 1 = linear, 2 = quadratic, etc. The named points are the vertices in sequence. N FIG. 7 illustrates a B-Spline Curve object 71, dependent on a multiplicity of point objects 72? and its 1-D parameter space 73. C-spline curve (CCurve): pointl, point2 , .... pointN The named points are interpolated in sequence. The curve is a parametric cubic spline with chord- length parameterization, knots at the data points, and not-a-knot end conditions . FIG. 8 illustrates a C-Spline Curve object 81, dependent on a multiplicity of point objects 82; and its 1-D parameter space 83. Sub-curve (SubCurve): curve, beadl, bead2 The sub-curve y(t) is the portion of curve x(s) from 'beadl' (parameter s^) to 'bead2' (parameter s 2 ) : (t) = x[(l-t) s χ + t s 2 ] FIG. 9 illustrates a Sub-curve object 91, which is a portion of curve object 92 between two bead objects 93, 94; and the 1-D parameter spaces 95, 96 of the curve and the subcurve respectively. Relative curve (RelCurve): curve, pointl, point2 The relative curve x(t) is formed from curve y(t) and the two points j , x by the linear transformation: x(t) = y(t) + (1-t) [ -L - y(0)] + t [x 2 - y(l)] FIG. 10 illustrates a Relative Curve object 101, dependent on a curve object 102 and two point objects 103, 104; and its 1-D parameter space 105. Surface class: (All surfaces are parameterized from 0 to 1 in both u and v directions) Ruled surface (RuledSurf): curvel, curve2 The surface is formed from the two curves y(t) , z(t) by linear interpolation: x(u,v) = (1-v) y(u) + v z(u) FIG. 11 illustrates a Ruled Surface object 111, dependent on two curve objects 112, 113; and its 2-D parameter space 114. Translation surface (TranSurf): curvel, curve2 The surface is formed from the two curves y(t) , z(t) by addition: x(u,v) = y(u) + z(v) - z(0) FIG. 12 illustrates a Translation Surface object 121, dependent on two curve objects 122, 123, and its 2-D parameter space 124. Revolution surface (RevSurf): curve, pointl, point2, angle1, angle2 The surface point at u, v is constructed by taking a point y(v) from 'curve', then rotating it through an angle θ = (1-u) Θ-L + u θ 2 about the axis line from 'pointl' to ' oint2' . FIG. 13 illustrates a Revolution Surface object 131, dependent on one curve object 132 and two point objects 133, 134 which define an axis 135; and its 2-D parameter space 136. Blended surface (BlendSurf): curvel, curve2, curve3, curve4 The surface is a bilinear Coons patch constructed from the four curves. If the four curves are oriented end- to-end as in FIG. 14, the equation for locating a surface point is : x(u,v) = (1-v) x^(u) + v x 3 (l-u) + (1-u) x 4 (l-v) + u x 2 (v) - (1-u) (1-v) [X!(0) + x 4 (l)]/2 - u (1-v) [x χ (l) + x 2 (0)]/2 - u v [x 2 (l) + x 3 (0)]/2 - (1-u) v [x 3 (l) + x 4 (0)]/2 FIG. 14 illustrates a Blended Surface object 141, dependent on four curve objects 142, 143, 144, 145; and its 2-D parameter space 146. C-lofted surface (CLoftSurf): curvel, curve2, .... curveN A surface point x(u,v) is obtained in three stages: (1) from each curve i take the point X j _(u); (2) form the C-spline curve which interpolates the X_(u) in sequence; (3) evaluate the C-spline at parameter v. FIG. 15 illustrates a C-Lofted Surface object 151, consisting of an infinitude of C-splines 152 interpolating several curve objects 153. tensor-product B-spline,^surface (BSurf): typeU, typeV, N, M, pointll, pointl2, .... pointNM typeU, typeV give the B-spline orders for u and v directions. N, M are numbers of vertices in u, v directions. pointll, pointl2, .... pointNM are a rectangular net of control points. N M X(U ' V) = Σ Σ x ] B i (U) B j (v) i=l j=l FIG. 16 illustrates a B-spline Surface object 161, dependent on an array of point objects 162; and its 2-D parameter space 163. Sub-surface (SubSurf): surface, snakel, snake2, snake3, snake4 The sub-surface is a portion of surface y(p,q) bounded by the four snakes w-^, w 2 , w 3 , w 4 in end-to-end sequence. x(u,v) = y(w) where w = (P.*-!)' = (l- v ) W]_(u) + v w 3 (l-u) + (1-u) w 4 (l-v) + u w 2 (v) - (1-u) (1-v) [ Wl (0) + w 4 (l)]/2 - u (1-v) [w-^l) + 2 (0)]/2 - u v * [w 2 (l) + w 3 (0)]/2 - (1-u) v fw 3 (l) + w 4 (0)]/2 FIG. 17 illustrates a Sub-surface object 171, dependent on a surface object 172, four snake objects 173, 174, 175, 176; and the 2-D parameter spaces 177, 178 of the surface and the sub-surface respectively. Relative surface (RelSurf): surface, pointl, point2, point3, point4 The relative surface x(u,v) is formed from surface y(u,v) and the four corner points -^, x 2 , x 3 , x 4 by the bilinear transformation: x(u,v) = y(u,v) + (1-u) (1-v) [X-L - y(0,0)] + u (1-v) [x 2 - y(l,0)] + v (1-u) [x 3 - y(l,l)] + u v [x 4 - y(0,l)] FIG. 18 illustrates a Relative Surface object 181, dependent on a surface object 182 and four point objects 183, 184, 185, 186; and its 2-D parameter space 187. Snake class: (All snakes are parameterized from 0 to 1. A snake is evaluated by first locating a point w = {u.,v} in the parameter space of the surface, then evaluating the surface with those parameter values.) Line snake (LineSnake): magnetl, magnet2 The LineSnake is a straight line in u, v parameter space from 'magnetl' ( -^ = {u^, v-^}) to 'magnet2' (w 2 = {u 2 , v 2 }): FIG. 19 illustrates a Line Snake object 191, dependent on a surface object 192 and two magnet objects 193, 194; and the 1-D parameter space 195 of the snake; and the 2-D parameter space 196 of the surface. Arc snake (ArcSnake): magnetl, magnet2, magnet3 The ArcSnake is a circular arc in u, v parameter space interpolating the three magnets . FIG. 20 illustrates an Arc Snake object 201, dependent on a surface object 202 and three magnet objects 203, 204, 205; and the 1-D parameter space 206 of the snake; and the 2-D parameter space 207 of the surface. B-spline snake (BSnake): type, magnetl, magnet2, .... magnetN type gives the B-spline order: 1 = linear, 2 = quadratic, etc. The named magnets are the vertices in sequence. N w(t) = ^ Wi B ± (t) i=l FIG. 21 illustrates a B-spline Snake object 211, dependen on a surface object 212 and multiple magnet objects 213; and the 1-D parameter space 214 of the snake; and the 2-D parameter space 215 of the surface. C-spline snake (CSnake) : magnetl, magnet2, .... magnetN The named magnets are interpolated in sequence. The snake is a parametric cubic spline in the u, v parameter space with chord-length parameterization, knots at the data points, and not-a-knot end conditions. FIG. 22 illustrates a C-spline Snake object 221, dependent on a surface object 222 and multiple magnet objects 223;' and the 1-D parameter space 224 of the snake; and the 2-D parameter space 225 of the surface. Sub-snake (SubSnake): snake, ringl, ring2 The sub-snake w(t) is the portion of 'snake' p(s) * from 'ringl' (parameter s-^) to 'ring2' (parameter s 2 ): w(t) = p[(l-t) S-L + t s 2 ] FIG. 23 illustrates a Sub-snake object 231, dependent on a surface object 232, a snake object 233, and two ring objects 234, 235; and the 1-D parameter spaces 236, 237 of the snake and sub-snake respectively; and the 2-D parameter space 238 of the " surface.. Relative snake (RelSnake): snake, magnetl, magnet2 The relative snake w(t) is formed from 'snake' p(t) and the two magnets m-^, m 2 by the linear transformation: w(t) = p(t) + (1-t) [ -L - p(0)] + t [m 2 - p(l)] FIG. 24 illustrates a Relative Snake object 241, dependent on a surface object 242, a snake object 243, and two magnet objects 244, 245; and the 1-D parameter space 246 of the relative snake; and the 2-D parameter space 247 of the surface. Logical models are stored as files in disk memory, in a text format similar to that previously outlined, but with some additional numerical parameters specifying polyline subdivisions for display. Each object is represented by a single text record beginning with the entity keyword indicated in parentheses in each of the above entity definitions. The keyword is followed by the object name, and color and visibility indices. Any curve or snake object will then have an integer telling the number of subdivisions desired for the polyline representing it in the display; any surface object will have two integers specifying the number of subdivisions in the u and v directions for the polyline mesh representing it in the display. Beyond this point, the required data for most entities is different, as indicated in the entity definitions above. The text file is terminated by the keyword "End". Remarks can be included in the text file by use of the keyword "Rem" . Internal to the program, objects are referenced by serial numbers corresponding to their sequence in the input data file, or sequence of creation. Requiring that all references be to previously defined objects is a simple way to eliminate the possibility of circular dependencies (digraph cycles). The organization of internal storage of the logical model includes a linked- list data structure representing the dependency digraph, to be used during updates of the absolute model. FIG. 25 is a digraph representing the dependencies in the "line A - line B" example developed in a previous section. The nodes 251 represent objects, and the edges 252 represent their dependencies. The program has user-controlled capabilities for reading and writing logical-model data files in the appropriate text format, and for detecting and reporting errors and inconsistencies in a data file during read operations. The program can also read and display, simultaneous with displaying a model, one or more files representing 3-dimensional wireframes. The program can also write a 3-dimensional wireframe file of the absolute model currently displayed, or a 2-dimensional wireframe file of the current view. Interactive capabilities are provided for creating, editing and deleting objects. Limited capabilities are provided for appropriate transmutations of objects to a different entity type; for example, any point- object can be transmuted into an absolute point. In all these activities the program performs consistency checks and enforces rules ensuring the integrity of the digraph data structure. For example: all required dependencies have to be fulfilled before a newly created object is accepted into the logical model; an object cannot be deleted until all of its dependents have been deleted; circular dependencies are not permitted. FIG. 26 shows a possible organization of program modules which accomplishes the purposes of the invention. Each box 263, 264 represents a subroutine; each arrow 262 represents a subroutine call, with the arrow directed from the calling module to_ the called module. The four special modules ("primary modules", 263) labeled "Point", "Curve", "Snake" and "Surface" are the interface to any application program requiring absolute geometric information from the model. These have input and output arguments as follows: Point — in: name (or index) of a point object out: absolute coordinates x, y, z Curve — in: name (or index) of a curve object list of t parameter values out: list of point coordinates x, y, z Snake — in: name (or index) of a snake object list of t parameter values out: list of point coordinates x, y, z Surface — in: name (or index) of a surface object list of u parameter values list of v parameter values out: array of point coordinates x, y, z (An input list of parameter values may have only a single entry, if only one point needs to be evaluated. ) The other modules ("secondary modules", 264) illustrated are not intended to be called from an application, being called only by the primary modules, as indicated by arrows, or in some cases by other secondary modules . Module "Point" determines what kind of point object it is evaluating and branches to the secondary routine, as indicated. Similarly, "Curve", "Snake" and "Surface" are basically branches to their constituent secondary routines . "Line" and "Line Snake" routines share a common "Line math" routine; similarly, the other curves and snakes share common math routines. The math routines are able to operate with either 2-D data (when called by a snake routine) or 3-D data (when called by a curve routine). It is obvious in FIG. 26 how easily a new parametric curve, snake, or surface entity can be added to the system; it requires only the addition of one secondary module implementing the new entity, and a small modification of one primary module, adding a branch to the new secondary module. Evaluation of some entities requires calls to other primary modules, as indicated; for example, a bead requires evaluation of a curve; a snake requires evaluation of a surface. Some recursive calls are apparent as cycles in FIG. 26. For example, to locate a relative point, the program first needs to locate the basis point, no matter what kind of point object the basis point is. Thus, "Relative Point" must be able to call "Point". Similarly, "SubCurve" and "Relative Curve" must be able to call "Curve"; "SubSnake" and "Relative Snake" must be able to call "Snake"; and "Subsurface" and "Relative Surface" must be able to call "Surface" . Other potentially recursive calls to the primary routines are needed, which are not here indicated by arrows, because the arrows showing all such possibilities would be too numerous. For example, "Line", "Arc", "B- Curve" and "C-Curve" all need to evaluate their supporting points, by a series of calls to "Point". "Line Snake", "Arc Snake", "B-Snake" and "C-Snake" need to evaluate the u,v parameters of each of their supporting magnet objects, by a series of calls to "Magnet" or "Ring". The several surface routines need to evaluate various point, curve or snake objects, according to their individual constitutions; these are all done through calls to the primary modules. Further levels of recursion occur when, for example, one curve supporting the surface being evaluated is a snake on another surface. In this case the sequence of calls passes through "Surface" twice. It is easy to think up cases with arbitrarily long chains of dependency. All such recursive possibilities are accommodated by the program structure indicated in FIG. 26. Without recursion, the program complexity and size would grow extremely rapidly with the allowable depth of dependency; with recursion, only stack space is required to indefinitely extend the permitted depth of dependency. EXAMPLE APPLICATION OF THE PREFERRED EMBODIMENT Table 1 is a text representation of an example logical model utilizing a variety of point, curve and snake objects, and six interconnected surface objects of various types, as defined and outlined above. FIG. 27 is a wireframe representation of the resulting absolute model. The example comprises hull, deck and cabin surfaces for a 30-foot sailing yacht design. The example model has six surface objects: 'hull' 271 and 'deck' 272 are C-lofted surfaces; 'cabin_fwd' 273, 'cabin_side' 274, and ' cabin_aft ' 275 are ruled surfaces; and 'cabin_top' 276 is a blended surface. The surfaces all have visibility 2, which causes only the parameter lines in the v-direction to be displayed. Eleven transverse sections 277 through the model are also displayed for purposes of visualizing the shapes. 'hull' is a C-lofted surface with three B-spline master curves 'MCA', 'MCB' , 'MCC, each having four absolute points as vertices, 'deck' also has three master curves; the first is the single point 'MCAV1' , the other two are 3-vertex B-spline curves 'deck_beam' and 'transom' . The join 278 between 'hull' and 'deck' is accurate and durable because the C-splines at the adjoining edges on each surface use the same data points, viz. 'MCAV1', 'MCBV1', 'MCCV1', and therefore are identical curves. The three ruled surfaces 'cabin_fwd', 'cabin_side' , 'cabin_aft' are constructed in a similar fashion to one another; each uses a snake on 'deck' as one edge, providing an accurate and durable join 279 to the 'deck' surface, and a relative curve dependent on that snake as the second (upper) edge. The three snakes on 'deck' join each other accurately and durably because they share common endpoint data, viz. magnets 'dm3 ' and 'dm5'. The three relative curves 'top_fwd', 'top_side', 'top_aft' also join each other accurately and durably because they are constructed using common end points, viz. relative points 'rp3' and 'rp5 ' . 'cabin_side' joins the other two- surfaces accurately because its end rulings are the lines 'dm3'-'rp3' and 'dm5'-'rp5', which are identical to end rulings on the adjoining surfaces. The blended surface 'cabin_top' joins the three ruled surfaces accurately because it uses their upper edge curves 'top_fwd l , 'top_side κ , 'top_aft' as data. Its fourth side is a three-vertex C-spline 'top_ctr', which lies accurately in the centerplane because each of its vertices has a zero y coordinate. The example model as now defined can easily be transformed into an extremely wide variety of alternative shapes by changing the coordinates of absolute points, the offsets of relative points, and the parameters of magnets. An example modification which affects all six surfaces is to increase the y coordinate of 'MCBV1'. Following any such change, the connectivity and relative positioning of the several surfaces is automatically preserved as the absolute model is updated. TABLE 1 Text representation of logical model for the example application. (Entity keyword; name; color; visibility; variable entity data) Rem 3x4 cloft hull with deck and cabin for patent example AbsPoint MCAV1 14 .60; AbsPoint MCAV2 14 .41; AbsPoint MCAV3 14 .84; AbsPoint MCAV4 14 .90; BCurve MCA 12 1 { MCAV1 MCAV2 AbsPoint MCBV1 14 .64 AbsPoint MCBV2 14 .54 AbsPoint MCBV3 14 .20 AbsPoint MCBV4 14 .44 BCurve MCB 12 1 { MCBV1 MCBV2 AbsPoint MCCV1 14 .76; AbsPoint MCCV2 14 .41; AbsPoint MCCV3 14 .22; AbsPoint MCCV4 14 .22; BCurve MCC 12 1 { MCCV1 MCCV2 CLoftSurf hull 10 CA MCB MCC }; AbsPoint transomO 3.00; AbsPoint transom! 3.00; BCurve transom 10 { MCCV1 transo AbsPoint deck_ctr 3.45; AbsPoint deck_mid 3.45; BCurve deck_beam 1 { . CBVl deck_m CLoftSurf deck 7 { MCAV1 deck b AbsMagnet dml 11 1 deck 1.00 0.27; AbsMagnet dm2 11 1 deck 0.63 0.27; AbsMagnet dm3 11 1 deck 0.35 0.30; AbsMagnet dm4 11 1 deck 0.20 0.50; AbsMagnet dm5 11 1 deck 0.20 0.70; AbsMagnet dmβ 11 1 deck 1.00 0.70; BSnake footprint_fwd 11 1 10 { dml d-n-2 dm3 }; BSnake footprint_side 11 1 20 { dm3 dm4 dm5 }; LineSnake footprint_aft 11 1 10 dm5 dmβ RelPoint rpl 11 1 dml 2.00 0 00 1. 30 RelPoint rp3 11 1 dm3 2.00 0 00 1, 10 RelPoint rp5 11 1 dm5 -0.20 -0.50 1.40 RelPoint rp6 11 1 dm6 -0.30 0.00 1.80 RelPo r 0.00 0.00 1.65; RelCu footprint_fwd rpl rp3; RelCu footprint_side rp3 rp5; RelCu footprint_aft rp5 rp6; Ruled 10 1 Ruled 20 1 ; Ruled 10 1 CCurv Blend { top_fwd top_side top_aft top_ctr }; End

Claims: Claims 1. A method of computer aided design of geometric models i space of two or more dimensions, utilizing a computer graphic system including a digital computer, computer program, compute memory and graphics display, comprising: defining in said computer program and memory a set of geometric objects in terms of their point coordinates in coordinate system of two or more dimensions; identifying selected defined objects in the operation of sai computer program by unique object names or numbers; supporting by computer program steps at least one geometri entity whose actualization depends for construction on at least two others of said defined geometric objects specified by their object name or number; and organizing the multiple dependencies of said defined geometric objects on other of said defined geometric objects in a logical data structure equivalent to a directed graph stored in said computer program and memory. 2. The method of claim 1, wherein the entities supported by computer program steps include an absolute point, one or more species of parametric curves, and an absolute bead. 3. The method of claim 1, implemented in a design space of three or more dimensions, wherein the entities supported by computer program steps include a relative point located by its coordinate offsets from a named point object. 4. The method of claim 2, wherein the entities supported by computer program steps include a line, a B-spline parametric curve, and an interpolative spline parametric curve dependent on point o jects. 5. The method of claim 2, wherein the entities supported by computer program steps include one or more parametric surfaces. 6. The method of claim 5, wherein the entities supported by computer program steps include an absolute magnet. 7. The method of claim 5, wherein the entities supported by computer program steps include a relative magnet. 8. The method of claim 5, wherein the entities supported by. computer program steps include at least one edge-blended surface or lofted surface depending on curve objects forming one or more of their edges. 9. The method of claim 5, wherein the entities supported by computer program steps include at least one tensor product parametric surface depending on an array of point objects. 10. The method of claim 5, wherein the entities supported by computer program steps include one or more parametric snakes. 11. The method of claim 10, wherein the entities supported by computer program steps include an absolute ring and a relative ring. 12. The method of claim 5, wherein the entities supported by computer program steps * include at least one parametric solid, and entities depending on a solid including point, curve, and surface entities defined in terms of the solid parameters. 13. The method of claim 1, wherein the method is implemented on a computer graphics system comprising at least one input device, a central processing unit, and at least one output device providing graphics display. 14. The method of claim 13, wherein data items are stored in computer memory for each geometric object, which data items represent all logical dependencies of said geometric object on any other objects, and are utilized in automatically updating the model following alteration of one or more of said geometric objects. 15. The method of claim 13, wherein two or more point entities are implemented by a generic point routine which can be called recursively. 16. The method of claim 13, wherein two or more curve entities are implemented by a generic curve routine which can be called recursively. 17. The method of claim 13, wherein two or more surface entities are implemented by a generic surface routine which can be called recursively. 18. The method of claim 13, wherein two or more snake entities are implemented by a generic snake routine which can be called recursively. 5 19. The method of claim 1, wherein the model data is represented in a text format which includes for each object its entity type, its name, its attributes, and names of all other objects directly used in its definition. 20. An automated method of updating graphics images on a ° computer graphics system having computer program, computer memory and computer graphics display comprising: displaying graphics images representing geometric objects, some or all of said geometric objects being assigned unique object names or numbers identified in said computer memory; 5 specifying in said computer program and computer memory logical or geometrical dependency relationships between the said named objects used to display said graphics images, at least one of said geometric objects being defined with dependency relationships on at least two other of said geometric objects specified by use of 0 object names or numbers; organizing the dependency relationships between the named objects in a directed graph logical data structure; changing at least one of said named geometric objects in at least one of said graphics images; and automatically updating other of said geometric objects in the graphics image according to said defined dependency relationships between said geometric objects according to said directed graph data structure. 22. The method of claim 20 wherein the objects comprising the graphics image include multiple types of parametric curves sand surfaces, and comprising the further step of evaluating points on said curves and surfaces through recursively programmed generic curve and surface routines. 23. The method of claim 20 wherein the objects include surfaces and snakes, comprising the step of defining an accurate edge contact of a dependent surface upon a supporting surface by using a snake in the supporting surface as one of the edge curves defining said dependent surface. 24. The method of claim 1 for computer assisted geometric design of a geometric model comprising the further steps of: constructing a geometric model using selected defined objects identified by unique object names; changing at least one of said defined named objects in the geometric model; and automatically updating other of said defined objects of the geometric model according to the defined dependency relationships between said selected defined objects following the directed graph. 25. A computer system including a digital computer, computer program, computer memory, and graphics display for computer assisted design of geometric models in a space of three dimensions and for display of the designed geometric models comprising: a plurality of geometric objects defined within the computer program and computer memory in terms of point coordinates in a coordinate system of three dimensions; a geometric model composed of a plurality of said geometric objects, said geometric objects being identified in the geometric model by unique names or numbers, said geometric model being characterized by multiple logical and geometrical dependency relationships between said uniquely names geometrical objects; said geometric model comprising at least one geometric object which depends for constructing by the computer program on at least two others of said defined geometric objects specified by said unique names or numbers; • and a directed graph logical data structure organizing said multiple dependencies of said defined geometric objects on other of said defined geometric objects; whereby change of one geometric object of the geometric model displayed on the graphics display causes automatic updates of the other said geometric objects of the said geometric model according to said multiple dependencies. 26. The computer system of claim 25, wherein the entities supported by computer program steps include an absolute point, one or more species of parametric curves, and an absolute bead. 27. The computer system of claim 25, wherein the entities supported by computer program steps include a relative point located by its coordinate offsets from a named point object. 28. The computer system of claim 26, wherein the entities supported by computer program steps include a line, a B-spline parametric curve, and an interpolative spline parametric curve dependent on named point objects. 29. The computer system of claim 26, wherein the entities supported by computer program steps include one or more parametric surfaces. 30. The computer system of claim 29, wherein the entities supported by computer " program steps include an absolute magnet. 31. The computer system of claim 29, wherein the entities supported by computer program steps include a relative magnet. 32. The computer system of claim 29, wherein the entities supported by computer program steps include at least one edge- blended surface or lofted surface depending on named curve objects forming one or more of their edges. 33. The computer system of claim 29, wherein the entities supported by computer program steps include at least one tensor product parametric surface depending on an array of named point objects. 34. The computer system of claim 29, wherein the entities supported by computer program steps include one or more parametric snakes. 35. The computer system of claim 34, wherein the entities supported by computer program steps include an absolute ring and a relative ring. 36. The computer system of claim 29, wherein the entities supported by computer program steps include at least one parametric solid, and entities depending on a solid including point, curve, and surface entities defined in terms of the solid parameters.

Inventors: LETCHER JOHN S JR, LETCHER, JOHN, S., JR.
Applicants: AEROHYDRO INC, AEROHYDRO, INC.
Application year: 1992
Main classification: G06F15
IPC codes: G06F17, G06T17