CA2190579C - Path-defined curve apparatus and method - Google Patents

Path-defined curve apparatus and method Download PDF

Info

Publication number
CA2190579C
CA2190579C CA002190579A CA2190579A CA2190579C CA 2190579 C CA2190579 C CA 2190579C CA 002190579 A CA002190579 A CA 002190579A CA 2190579 A CA2190579 A CA 2190579A CA 2190579 C CA2190579 C CA 2190579C
Authority
CA
Canada
Prior art keywords
curve
user
input
processor
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CA002190579A
Other languages
French (fr)
Other versions
CA2190579A1 (en
Inventor
Jerome A. Broekhuijsen
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Micro Focus Software Inc
Original Assignee
Novell Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Novell Inc filed Critical Novell Inc
Publication of CA2190579A1 publication Critical patent/CA2190579A1/en
Application granted granted Critical
Publication of CA2190579C publication Critical patent/CA2190579C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

A method and apparatus for creating a curve to be displayed on an output device operates to interactively and directly specify the curve from input signals generated by an input device in response to control by a user. An apparatus may include an input device having a pointer for inputting points along a path-defined curve specified directly (using actual input points intended to be approximately on the curve) by a user. A processor outputs to an output device certain rendering data for rendering an image of the curve in real time for feeding back to a user. The user may augment (edit, extend) the curve by moving the pointer to add input points to the curve, based on the image fed back. The apparatus and method map non-linear coefficients of dependent control variables onto "building variables" selected to combine in linear combinations to replace the non-linear coefficients. When new inputs are added, building variables are linearly transformed to new values, rather than being recalculated from original non-linear summation terms. The curve is rendered on an output device and fed back immediately to a user in real time as the user adapts the curve displayed by moving the pointer to add inputs.

Description

WO 96!30874 219 0 5 7 9 p~T~S96/03839 Path-Defined Curve Apparatus and Method Technical Field This invention relates to apparatus for drawing cun~es and. more particularly.
to novel systems and methods for generating path-defined cun~es in real time on an output device in response to an input device controlled by a user receiving feedback from the output device.
Background Art Many computers are used by artists. drafrspersons. engineers. architects. and the like for drawing figures related to their professional sen~ices. Representing structures in graphical images on paper or other display media may be accomplished in several ways.
Traditional pencil on paper is still used. Ink on paper, linen, or plastic (e.g. MYLAR'T"') is used likewise. However, alterations IS of figures drawn with those media are difficult or impossible. Drawing cun~es with a digital computer has enabled many professionals to save, reproduce. scale, and modify graphic works more easily.
However, drawing curves. whether "curved lines" or curved surfaces, involves many tradeoffs. For example. a cuwe may actually be a visual representation of a very complex mathematical expression. The expression may be known or unknow. .4 curve may simply be part of an artist's representation of an object on a page or a display.
Using a computer to draw. save. and modify a curve is not so simple as drawing a brush or pencil in a smoothly flowing arc across a sketch pad. A computer requires discrete information with which to operate. A computer has limited processing capability and speed of computation.
A user cannot always obtain actual calculated values of points on such a cuwe in real time ( i.e. as that term is understood in the art; also. as a curve is drawn or defined by the user).
An artist or draftsperson using a computer stylus to draw a curt a needs to control the cun~e drawn. Each user can benefit from seeing the cuwe develop. as it is drawn. A
user needs to be able to adjust the motion of the hand according to the results of the rendering= in order to create what is mentally envisioned. A user may also expect the computer to filter out erroneous fitter.
Jitter may be attributable to an unsteady or misplaced hand. digital quantization. or other physical characteristic of a system. for example.
A user may operate without knowledge of the mathematics that would define a cuwe. For R'O 96/30874 219 0 5.7 ~ , PC'flUS96/03839 example, a user may not even care that a curve is being drawn according to a particular rule.
Rather the user wants to display a representation on an output device. and wants to be able to sketch and modify the curve intuitively, by altering what is seen directly.
However, a mathematical formula or representation used by a computer to generate a curve might not use variables understandable or intuitive to a user. For example.
many people could sketch a curve without the least idea how that curve is represented mathematically inside a computer. Relatively few users actually know how a smoothly undulating curve is represented as an exact function, spline function, piecewise-fit polynomial, Bezier curve, B-spline, logarithmic curve, infinite series, or the like.
For example. many persons can sketch a parabola without ever knowing the location of the point and line that actually define the parabola. Meanwhile, neither the point nor the line are on the parabola. To define a parabola rigorously according to its mathematical definition may be well beyond the skill, interest, or time investment available to many users.
A user may need to define an arbitrary curve. For example. a user may not want a I S particular, known curve, easily defined by a common formula, such as a circle. ellipse, or parabola.
A user may need flexibility to represent exactly what is mentally envisioned.
A user may want a curve that is far more sophisticated than a simple circular arc, or segment of an ellipse. A user may want an irregular, yet smoothly undulating, curve to ramble across a page.
The process of creating, defining and rendering an arbitrary curve is not well supported by current computerized drawing hardware and software. Interactive. path-defined curves simply do not exist. A good example of this difficulty is Bezier curves used in many software programs for drawing.
Bezier cttn~es are supported by many commercial drawing sofrware applications.
alternatively referred to as "software." "applications." "programs." or "packages." Within each ?5 - package, a variett~ of features (called tools) exist. each directed to accomplishing a single function such as marking a portion ofan image. erasing Lines. moving objects or points.
drawing a straight line. a rectangle. a circle. a cun~e. and so forth. Many users of such packages find the drawin~~
tools for Bezier cuwes difficult to use. .-1 major difficulty arises because the user interfaces are either indirect or non-interactive.
The word "direct" indicates that a cun~e passes through or closely li.e. a least squares best fit) approximates, the locations through which a cursor is guided by a user.
The word "interactive"
indicates that a user receives feedback in real time while defining a curve.
The expression "real WO 96130874 219 0 5 7 9 PCTlU596103839 time" may mean exactly the same principle as ordinarily used in the art. It may also be thought of as indicating that any time delay between input and feedback is so short as to appear to a user to be visibly indistinguishable from instantaneous. In general. such delay in feedback may be sensorially imperceptible for some practical purpose. For example. a user may need a curve to be ttnrendered on a display monitor and re-rendered as the user moves a cursor corresponding to an . endpoint of the curve.
A Bezier may be used as a parametric curve type in drawing software packages offering a very flexible extension to the set of elliptical and circular cun~es typically provided. Compared to the more general B-spline. the Bezier requires more direct. and relatively simplified controls.
Drawing typically involves creation of a curve, with subsequent editing. The Bener cun~e creation and editing tools available in most commercially available software packages reflect the workings of the mathematical formulas underlying the definition of a carve.
The user interface is not intuitive. Curve tools were originally developed for use by technically trained users such as engineers and scientists. Users now include graphic artists, business professionals, and average personal computer users desiring to express pictorial information. The conceptual model or mathematical implementation inherent in a software package greatly hinders a user in illustrating a curve as an image on an output device.
For example. illustrating with a Bezier cun~e shape requires a counter-intuitive placement of control points Co, and C, between two endpoints Ao and A, (collectively "control variables" for a Bezier). C~, and C, are not typically on the curve. They are off the curve and relate to the curve only in a mathematical relationship that is abstract to one not trained in the underlying mathematics.
Because existing tools for creation of Bezier curves are difficult to use.
shapes generated 35 with the aid of computer systems often require extensive modification.
Thus, the very difficulty of use of available tools for Bezier creation directly results in subsequent heave reliance on editing tools.
Unfortunately, existing Bezier can a editing tools tend to be even more difficult to use than the creation tools. An apparatus or method practiced in accordance vith the invention my obviate much of the need for editing tools. Meanwhile, tools for both creation and editing may be great!
simplified by the invention.
Commercial implementations of Bezier creation tools perform tasks in one of two basic R'O 96130874 219 0 5 7 9 p~~s9~3839 ways. The first way relies on an "interactive" curve tool. the second on a "freehand" or "direct"
cun~e tool.
An interactive curve tool. on the one hand, updates a representation of a curve in real time as the user places control points. This tool is interactive because the user receives immediate feedback from an output device such as a display monitor. The feedback may be in the form of a rendered cun~e that changes with each movement of a cursor by a user.
However, the conventional tools for Bezier creation, are also indirect because not all of the control points lie on the curse, as explained.
A freehand curve tool, by contrast. collects a sequence of cursor locations sampled while the user specifies a path for the desired curve. Such a tool is direct in that the resulting curve approximates or interpolates the sampled cursor locations. The tool is not interactive because the user does not see during creation the rendered representation of the curve.
All the user sees during the specification of the path is either a set of dots representing the sampled locations, or a series of line segments connecting these locations. The resulting curve appears only afrer the specification of the path has been completed. The actual curve might not pass through any of the points specified.
Comparing the two tool types, "interactive" and "direct" or "freehand,"
demonstrates that each lacks the other's strength. The interactive curve tool is interactive but indirect. The freehand curve tool is direct but not interactive. Unfortunately, most users of commercial drawing sofrivare find the tools for drawing Bezier cun~es counter-intuitive, andtoo difficult to use effectively.
Alternative tools are ofren even more clumsy and indirect. Meanwhile, nturterous software systems have created innumerable files of existing or "legacy" artwork using largely Beziers, and certain other types of curves.
An apparatus and method are needed for sensing "directly" the motion of a sensor, (e.g.
stylus. mouse moved by a user) rendering a representation of the motion by a cun~e sensible by a user. An apparatus and method are needed for "interactively" continuing or altering the curve in response to "direct" inputs from a user. More particularly. the direct and interactive creation and alteration of cun~es in a drawing are needed. Because Bezier curves are so ubiquitous, an apparatus for directly and interactively creating Bezier curves on an output device would be of tremendous value. Moreover, an apparatus would be substantially more valuable if the Bezier curve could be generated and altered in real time. A method and apparatus for solving the aforementioned long-standing problems should accommodate all of the legacy artwork, so that users can still access and WO 96130874 2 ~ ~ 0 5 l 9 p~~g96103839 modify pre-existing work. A method is needed that is direct. intuitive, interactive, visually indistinguishable from instantaneous, and backwardly compatible with legacy artwork.
As mentioned. a "tool" may be thought of as a distinct feature or method for accomplishing a graphical function or drawing a shape, object, curve. or the like. Another existing problem is that different tools in the same or different drawing packages render cun~es using different rules. and ~ thus use and store different parameters or variables. Therefore, confusion may arise when a user attempts to edit a curve of one type, using an interaction technique applicable to curves of a different type.
Unfortunately, in creation of a graphic work. several n~pes of interaction techniques (tools) may have been used. However the resulting cun~es may be visually indistinguishable as to tool type. Without the proper choice of tool type, a curve cannot be edited. The result is frustration in trying to edit curves.
A method that would access any curve. regardless of its definition. and edit all curves simply, interactively, and directly would be a breakthrough. Moreover, a method that could edit a curve originally created by an interactive curve tool, a freehand tool, or any other given curve by a single method, transparent to the user, would be extremely useful. Such a single method could then be used to edit all curves created in legacy artwork regardless of origin, tool, rule, or definition.
Focusing somewhat more broadly. many other tasks unrelated to drawing and sketching may require smoothing, fitting, and representing a motion of a user. For example, operation of hydraulic equipment may be improved if its motion is controlled to be smooth and predictable rather than exactly tracking human inputs. In another example, a robot may be "taught" by tracking the motions of an expert human moving a sensor through a series of motions. For example, an expert painter may move a spray wand over the body of a car, relying on the human eye for feedback. Thereafter, a robot may move the spray wand over an equivalent path.
Similarly, many other devices may use a stylus, lever, control stick, wand, motion sensor, or even a "DataGloveT~"' to track the movements dictated by a user.
~ Also. smoothing a ragged motion to create a smooth flowing motion may be beneficial.
The processes are myriad that benefit from interactive devices, those providing feedback of the motion of a -user's hand or other member. However, the human hand does not move perfectly smoothly, and no tracking system is perfect in sensing movements of the hand of a user, storing those movements, and operating on the resulting data to feed a picture, image, motion or other 219fl579 R'O 96/30874 PCTIUS96103839 spatial representation back to a user. Smoothing the human director's inputs, such as by a curve-fit, removes fitter that may otherwise destroy effectiveness. For example, a gun or missile control on a combat vehicle or aircraft may rely on a human to track through and actuate a system of sensors and controls. A human hand is susceptible to being tossed about by vehicle motion or the like.
Tracking and reproducing a complex motion of a human user in real time (e.g.
as soon as needed; practically or perceptibly instantaneously) as the motion is being made, may be difficult to impossible with typical desktop computers. Significant delay is typical for an individual computer user. Also, a user may over-correct because of the lag between actuation of a sensing device by a user and response by a machine. Thus. a user's interactive corrections may come too I 0 late. after the massive computations associated with tracking and rendering.
An apparatus is needed that can sense a motion of a user, approximate that motion with a repeatable, storable representation. such as a curve, present to the user a representation or rendering of the curve, and provide to a user an ability to continue or alter the curve interactively in real time (e.g, as needed; either feedback sensorially indistinguishable from instantaneous by the user, or feedback practically faster than the user's reaction time to begin inputting modifications).
These combinations of functions are not available in the art. Direct and interactive cun~e drawing in real time is not provided in computerized drawing packages available to average users.
The broader tracking and rendering problem is not solved in packages provided for average users of personal desktop computers.
ao Disclosure of Invention In view of the foregoing, it is a primary object of the present invention to provide an apparatus for creating a curve directly.
It is another object of the invention to provide an apparatus for creating a curve interactively.
It is an object of the invention to provide an apparatus for creating a curve both directly and interactively at once and in real time.
It is an object of the invention to provide a method and apparatus for creating a path-defined curve interactively and directly in real time.
It is an object of the invention to provide a method and apparatus. for representing a curve, that require less time to edit.-alter, or extend the curve than to create the cun~e.
It is an object of the invention to provide a method and apparatus for creating, for any RT096130874 2 1 ~ ~ J 7 ~ PCfIUS96103839 original curve storable electronically, regardless of origin, a corresponding curve that is editable by the method and is visually indistinguishable from the original curve.
It is an object of the invention to provide a method and apparatus for editing all curves existing in legacy artwork, regardless of the tool, rules, or representative data by which the artwork was originally created.
It is an object of the invention to provide a method and apparatus for converting all curves to representations as Bezier cun~es. and for editing all curves existing in legacy artwork as Bezier curves, regardless of the tool, rules, or representative data by which the artwork was originally created.
It is another object of the invention to provide an apparatus for creating a curve from simplified parameters, variables substitutable for the mathematically defined "control variables"
of the cuwe, to increase the speed of calculation and rendering of output reflecting changes in the curve.
It is another object of the invention to provide an apparatus for creating a curve from inputs sensed directly from motions of a user.
It is another object of the invention generally to provide an apparatus for sensing an input directly, processing the input to control an output device, and feeding back from the output device to a user a signal sensible to the user, enabling a user to adjust inputs interactively, and specifically to do so where the inputs correspond to a curve. and particularly to do so where the curve is a Bezier curve.
It is another object of the invention to provide from an output device to a user a signal sensible to the user and corresponding to variables transformed from control variables of a curve.
It is another object of the invention to provide an apparatus for sensing a movement by a user, providing an input corresponding to the movement, processing the input to create 2~ intermediate signals related thereto, to be passed to an output device, and feeding back from the output device to a user a signal sensible to the user and corresponding to the movement by a user, and more particularly to operate in real time.
It is another object of the invention to provide an apparatus for creating a cun~e using inputs sensed from movements of an input device moved by a user, processing the inputs to create intermediate parameters characterizing the curve, sending the intermediate parameters to an output device for. generating signals corresponding to the movements and sensible by a user, all in real time, and specifically sufficiently rapidly to present smooth, fluid, animation to the eye of a user observing an output device.
Consistent with the foregoing objects, and in accordance with the invention as embodied and broadly described herein, an apparatus and method are disclosed in one embodiment of the present invention for creating curves. An interactive and direct curve tool may provide virtually immediate feedback to a user in real time. By real time is meant that an output signal is indistinguishable from instantaneous as to interactive fluidity of feedback from direct inputs by a user.
Feedback in real time may be received upon creation of a curve. A user may guide a stylus or other pointer (mouse, etc.) along a desired path. The tool may track such input device moved by a user. A cursor, on an output device, such as a display, monitor. CRT
screen, or the-like. may represent the motion of the pointer. as a user traverses a path with a pointer. An associated computer may sample locations of the cursor. A curve may be created, and rendered on the output device, which curve may pass exactly or approximately through the locations of points sampled.
Thus the tool may be an interactive, direct, freehand tool operating in real time.
In many cases real time may mean that a feedback response from an output device is indistinguishable from instantaneous according to at least one desirable sensorial perception, such as vision, for example. However, in general, "interactive fluidity" is adequate to define real time.
Interactive fluidity exists so long as a user may-receive-feedback from an output device (e.g.
monitor, etc.) in response to moving a pointer (e.g. mouse. stylus, etc.), without being confused or feeling a need to stop inputting to wait for a rendering, by the output device, of the cun-e corresponding to the inputs. In one embodiment, an apparatus in accordance with the invention may render a curve in real time. The apparatus may comprise an input device for providing input signals corresponding directly to locations on a path specified by a user. The apparatus may also include a processor for receiving the input signals and providing output data corresponding to a curve fitted to the input signals. A memory device may store data received from the processor.
An output device may provide. in real time, output signals sensible by a user and corresponding to the curve fitted to the input signals.
The processor may be a digital processor for operating on the data comprised of digital .
signals corresponding to a linearly transformable cun~e fitted to points corresponding to the locations specified. The input device may include a pointer adapted to be moved by a user on the path. the input device generating the input signals corresponding to the locations.
The output device may include an imaging device. and the imaging device may include a ?_190 X79 cursor for presenting to a user an image corresponding to a position of the pointer. The output device may include a rendering device for rendering an image of a cun~e corresponding to the input signals. The rendering device may also include a signal receiver for receiving output data from the processor for rendering a curve selected from cubic curves. The cubic curve may be a Bezier curve. a Hetmite polynomial. a spline. a B-spline. or other curve. The rendering device may include a screen for rendering an image visible to a user.
The apparatus may include a processor programmed to directly receive input signals from a pointer moc~ed by a user along the path. and interactively feed back through the output device in real time an image corresponding to a cun~e fitted to the locations specified by the user. The input device may be adapted to receive. in real time, additional input signals reflecting additional movement of the pointer by the user in response to the image. The output device may be adapted to render a second curve in real time reflecting the additional input signals.
The apparatus may rely on input signals comprised of digital signals representing discrete points. The input signals may correspond to points sampled at inten~als along the path, or to a I S continuous curve.
An apparatus in accordance with the invention may feed back to a user a smoothed output signal in response to an input signal controlled directly by a user. An input device may be operable by a user to sense movements by a user and to selectively provide input signals corresponding to the movements. A processor connected to the input device may receive the input signals, logically operating on the input signals to provide process signals corresponding to a linearly transformable curve fitted to the input signals. A memory device may operably connect to the processor for storing input data corresponding to the input signals and for storing output data corresponding to the process signals. An output device may~ connect to the processor for receiving output data and for providing to a user output signals sensible by a user and corresponding to the output data.
2~ - - An apparatus may be configured to interactively create a path-defined cttwe. using an input device to detect movements and to selectively provide input signals corresponding to the movements. A processor connected to the input device may receive the input signals and provide process signals corresponding to the input signals. A memory device operably connected to the processor may store the process signals corresponding to building variables.
An output device connected to the processor may receive output data and provide to a user output signals corresponding to the output data.
A method practiced in accordance with the invention may incrementally augment, extend.

R'O 96130874 219 0 5 7 9 pCT~S96103839 or edit a path-defined curve in real time. The method may include moving a pointer associated with an input device. A user may input data corresponding to locations along a path. The user may specify inputs by controlling the pointer. The user may then create in a processor, connected to the input device, process data corresponding to a Linearly transformable curve.
The method may then include operating on the process data to create building variable data representing a linear system of variables and coefficients corresponding to the linear!
transformable cur,~e. Operating on the building variable data to create output data corresponding to a curve fitted to the locations may then precede feeding back to a user on an output device connected to the processor an image of a curve corresponding to the fitted locations.
I 0 The method may include moving the pointer. in response to the image. and receiving added input data from the input device. The added input data may correspond to additional locations along a path. The method may then linearly transform the building variable data to create new building variable data for replacing the building variable data. The method may include feeding back to a user, in real time, on the output device, a new image for replacing the previous image.
The method may further repeat the receiving, linearly transforming, and feeding back according to inputs received from a user controlling the input device directing a continuation of the method. The interactive augmentation (updating) in real time according to direct new inputs from the input device, or otherwise input by a user, may continue so long as desired by a user. The augmentation may continue regardless of the number of new locations specified by the user.
An apparatus made in accordance with the disclosed invention, or a method practiced in accordance with the invention combines the strengths of each of the two tool types in a curve drawing tool that is much easier to use and more intuitive than tools heretofore available.
A Path-Defined Curve (PDC), generally, or Path-Defined Bezier (PDB), in particular, may rely on a least-squares fit of a polynomial. The polynomial, such as a cubic (third degree) Bezier cun~e. may be fit to a sequence of sampled locations. The locations may typically be identified by an input device, such as a pointer, controlled by a user. Manipulating a pointer, a user effects a change in a cursor's location on a screen of a monitor. Locations may be sampled over time to provide a set of points corresponding to points selected by the user with the pointer. The basic drawing apparatus and method may be extended with other input and output devices. beyond a pointer and monitor, respectively.
For example, an input device to provide points (values j in some number of dimensions may be selected from a wide variety of devices for providing signals. Signals may correspond to inputs WO 96130874 ~ ~ ~ ~ ~ ~ PCTIUS96I03839 sensed from movement or other activity. Similarly, an output device may feed back some representation ofthose values to a user. An output device may be selected from a wide variety of devices providing signals sensible by a user.
For example, outputs may be pressure against or from a location on a DataGloveT"' wom by a user. Output may be a pressure distribution along a line or surface.
Output may be a light intensity in a display or graphic image, or a black or white pixel on a monitor. Output may be a sound amplitude or frequency distribution in time or space. or the like. Thus, many perceptible signals may represent an output of a curve to a user. In some cases a device may be designed to receive an output signal, but a ven~ useful example involves a human user perceiving an output corresponding to an input provided by the user.
An apparatus and method in accordance with the invention may rely on incrementally adjusting a least-squares fit of a cun~e. Conventional methods relying on a least-squares fit are limited to short curves in order to maintain acceptable time of computation.
That is, least-squares fitting is computationally intensive. The processing time increases linearly with a number'n' of sampled points used in the procedure. The curve must be recomputed and rendered anew with each added point input by a user. The total number of points directly affects how quickly a computer can recompute and render an updated representation of the curve created by a user.
Delays from such methods can quickly preclude rendering outputs in real time.
By contrast, a cun~e rendered by a tool created according to the invention operates in constant time. That is, a constant update frequency may be used for rendering a curve. This may be true regardless of whether the curve is based on a fecv, a few hundred, or a few thousand sampled cursor locations.
A new data structure corresponds to a path-defined curve (PDC). and. in one particular example, to a path-defined Bezier (PDB). The data structure supports an incremental "augmentation" to a least-squares method of fitting a cun~e with each added input.
An apparatus and method in accordance with the invention may enable a user to interactively draw a cun~e, rendering the cuwe on an output device for feedback to a user in real time. For example. the user may see m animated intermediate result on a monitor while the curve is being drawn.
A multi-segment cun~e may be drawn and rendered by an apparatus in accordance with the invention. Multiple segments may be combined in a post-processing check for continuity or by constraining the ends of adjacent curves to insure continuity of the curves or their slopes WO 96130874 PCf/US96103839 i (tangency). Such a constraint may be used in combination with a user interface that provides to a user ultimate control to assure that the resulting curve reflects the user's intent.
Brief Description of the Drawings S The foregoing and other objects and features of the present invention will become more fully apparent from the following description and appended claims. taken in conjunction with the accompanying drawings. Understanding that these drawings depict only typical embodiments of the invention and are, therefore. not to be considered limiting of its scope, the invention will be described with additional specificity and detail through use of the accompanying drawings in which:
Figure 1 is a block diagram of one embodiment of an apparatus for creating a curve according to the invention;
Figure 2 is a schematic of an image of a curve fit to points on a path specified by a user;
Figure 3 is a schematic of an image of a curve suitable for input, such as by sampling according to the invention;
Figure 4 is a schematic of a cun~e fitted to a path input by a user. and then augmented by a user with an additional point;
Figure 5 is a block diagram of a generalized method in accordance with the invention;
Figures 6-9 are block diagrams of details from the method of Figure 5.
Figure 10 is a block diagram of one alternative embodiment for managing rendering data according to the invention;
Figure I 1 is a block diagram of one embodiment of a method of linear transformation in accordance with the invention;
Figure 1? is a series of equations illustrating a method for representing a curve in one embodiment of a method and apparatus according to the invention;
Figure 13 is a series of equations illustrating a method for creating a linear system of coefficients and variables for defining a cun~e according to the invention:
Figure 14 is a series of equations illustrating a method for defining and evaluating coefficients in the system of Figure 13;
Figures I ~ and 16 are series of equations illustrating a method for mapping the coefficients (summation terms) of the system of Figure 13 to building variables q and r:
Figure 17 is a series of equations illustrating a method for linearly transforming building R'O 96130874 2 ~ 9 0 5 7 9 p~~s9~03839 variables q and r to new building variables q' and r';
Figure 18 is a series of equations illustrating a method far updating coefficients of the system of Figure 13 for representing a new curve to be rendered on an output device due to the additional inputs of a user in accordance with the inc~ention;
Figure 19 is an equation illustrating an exact mathematical expression representing an arclength of a continuous cuwe, in contrast to an approximation by chords between discrete points;
Figures 20-~? are series of equations illustrating a method for synthesizing building variables Q and R (to be used similarly to building variables q and r in the system illustrated in Figures 15-16) from data associated with a continuous cun~e input according to the invention:
Figure 23 is a block diagram of one embodiment of an apparatus created and operated according to the invention;
Figure 24 is a schematic of an alternative embodiment of a cun~e suitable for use in a method and apparatus according to the invention;
Figures 25-26 are series ofequations illustrating a method for representing an alternative IS embodiment of a linearly transformable curve representable by an alternative system of control variables and equations distinct from those of Figure 13: and Figures 27 and 28 illustrate a schematic of a cum~e and a method of approximating the arc length of the curve by a recursive method according to the invention.
Detailed Description of the Preferred Embodiment It will be readily understood that the components of the present invention, as generally described and illustrated in the Figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following more detailed description of the embodiments of the system and method of the present invention. as represented in Figures 1 through 28. is not intended to limit the scope of the invention. as claimed. but it is merely representative of the presently preferred embodiments of the invention.
The presently preferred embodiments of the invention will be best understood by reference to the drawings. wherein like parts are designated by like numerals throughout.
Reference is next made to Figures 1 and 5. which illustrate schematic diagrams of one prefeaed embodiment of an apparatus and method, respectively, in accordance with the invention.
Also. Figures 6-I 1 illustrate schematic diagrams derived from the block diagram of Figure ~.
Those of ordinary skill in the art will, of course. appreciate that various modifications to the WO 96!30874 219 0 5 7 9 PLTIUS96I03839 detailed schematic diagrams of Figures 6-1 I may easily be made without departing from the essential characteristics of the invention, as described in connection with the block diagrams of Figures 1 and ~ above. Thus, the following description of the detailed schematic diagrams of Figures 6-1 l, and the representations ofFigures 12-28 are intended only as an example. and simply , ~ illustrate certain presently preferred embodiments of a schematic diagram that is consistent with the foregoing description of Figures 1 and ~ and the invention as claimed herein. The various functional blocks of Figure ~ are outlined in Figures 6-11 by the bold. dashed lines and are numbered with like numerals.
From the above discussion, it will be appreciated that the present invention provides direct and interactive creation and rendering of a path-defined curve from inputs generated by an input device controlled by a user, and outputs fed back to a user via an output device. The invention also provides for augmentation. editing. and extension of a curve, or image of a curve on an output device. in real time according to additional inputs by a user controlling the input device.
Referring now to Figure I, an apparatus 200 made and used in accordance with one l~ preferred embodiment of the invention may include a processor 202 and memory device 204 interconnected by a bus 206 for transmitting signals. such as digital data therebetween. The bus 206 may be selected from one of those available on a motherboard of a general purpose digital computer, or may be unique to an apparatus made in accordance with the invention.
An input device 208 and output device 2I0 may also connect to the bus 206 to communicate with the processor 202. A storage device 212 may also be included on the bus 206 for permanent storage of data corresponding to signals and the like transmitted, received, or processed by the processor 202.
A processor 202 may be configured to process signals received from an input device 208, store data representing those signals. and provide output data to an output device 210. The processor 202 may create. receive and transmit instructions with respect to any device on the bus 206. _ __ . _-, _ Suitable processors 202 may include those found in central processing units f CPU) of many popular, general-purpose. computers. Of particular interest and applicability are desktop computers. referred to as microcomputers or minicomputers, and having comparatively limited processing speed compared to mainframe computers. CPUs may be selected from such integrated chips as the Motorola 68000 series, including MC 68020, MC 68030, and MC
68040. Likewise, a suitable CPU may be selected from the Intel 80000 series, including the 80286. 80386. 80486 R'0 96130874 i PCTJU896/03839 and Pentium CPUs. Also, RISC chips such as the Power PC 601, 602, 603, 604, and 620 may be completely suitable.
A memory device 204 may be configured to temporarily store instructions for the processor 202, data for being operated on in accordance with those instructions, and data representing intermediate calculations of values by the processor 202. The memory device may also store data representing inputs received from an input device 208 and output data to be sent to the output device ? 10.
Suitable memory devices 204 may include random access memory (RAM) of most commercially available types. Volatile memory that loses all data and signals upon losing power is typically suitable. Although less preferred, some non-volatile memory devices 204 may be used, but may slow performance of the apparatus 200 in accepting inputs. processing signals. and providing outputs.
A memory device 204 may be configured to be partitioned or otherwise addressable to include a first memory 205A, a second memory 205B, and a general operating memory 205C. The memory device 204 may also include an event queue 20~D for recording monitored events occurring in the apparatus 200. Monitored events may include any activity that may be used by any of the various devices 202, 204, 206, 208, 2I0, 212 or to control them.
An input device 208 may be configured to generate signals to be processed by the processor 202. However. the input device 208 may also read data from another dec~ice inside or outside the apparatus 200. For example, an input device 208 may receive data from another computer for processing, may include a processor within itself, may include a sensor for sending analog or digital signals, or may otherwise be configured to provide data input by or under the control of a user.
An input device 208 may be selected from numerous devices including a freehand pad for detecting motion of a stylus against a sensory surface supported by a platen.
Examples of these types of pads are those used on special purpose computers used for recording signatures of recipients of packages. Also, sketch pads that respond to a stylus moved over a surface may serve as input devices 208. A mouse, a motion detector for generating signals corresponding to a position in one. two. or more spatial dimensions while moving over a surface, may sen~e as an input device 208. Another input device 208 may~ be a DataGlove'~', a device fitted with sensors for detecting motion or pressure by a finger, hand, or other member of the body of a user. Other input devices 208 may include hardware as simple as switches. as conventional as a joystick.

R'O 96!30874 2 ~ 9 0 5 7 9 PCT~S96/03839 trackball, or touchscreen display. or as sophisticated as an imaging camera of some variety. For example, a computed tomography scanner, a magnetic resonance imaging machine, or an ultrasonic imaging device may all provide inputs with varying amounts of human intervention. In certain circumstances, an input device 208 may be unknown, being represented only by a queue of data representing signals collected from a source and stored as digital electronic signals in the memory device 204 or the storage device 212.
An output device 210 may be configured to provide a signal to a user. The signal may be perceptible to the senses of a user. For example, sound, motion, pressure, an image, a light, an intensity or frequency of sound, an intensity or frequency of light or other signal from an electromagnetic spectrum may be output signals from the output device 210. An output device may include or otherwise be associated with devices for converting signals from one representation to another. In one presently preferred embodiment, an output signal from the processor 202 may be presented (rendered) as a curve on a screen of a computer monitor. In another, less preferred, embodiment, an output signal may be received. recognized, and responded to by an IS electromechanical device.
The output device 210 may be a monitor such as a cathode ray tube CRT, flat panel display or the like. Alternatively, some input devices 208 may include devices to serve as an output device 210. For example. a touchscreen display may render images and receive inputs from a user.
Similarly a medical imaging device such as an ultrasonic or magnetic resonance imaging device, may have an output device readable only by the device itself, or perceptible to a user. An apparatus 200 in accordance with some embodiments of the invention may have outputs perceptible to a human user, outputs imperceptible to a human user, or both.
However, in one preferred embodiment of great interest. the output of an output device 210 may be sensible (sensorially perceptible) by a user.
The storage device 212 may be present or not in the apparatus 200. The storage device 212 may be configured to receive data for long term storage between accesses by a user. For example.
in one presently preferred embodiment, a storage device .12 may store a set of data for representing a cun~e 398 as part of a drawing. Alternatively, a storage device 212 may store a software package including the instructions executable by the processor 202, data representing curves to be operated on by a user controlling the processor, as well as instructions accessible by a processor ?02 for controlling operation of all devices connected to the bus 206.
The storage device 212 may be selected from one of the many available types, and from R'O 96130874 2' (~ O ~ 7 ~ PCTlIT596103839 a host of specific products in those types. Typical storage devices 212 may be selected from hard disk drives for storage of electronic data. flexible disk drives.
electromagnetic tape drives, optical disk drives, PCMCIA memory, and the like. A suitable storage device may be non-volatile, so that data remains present in the absence of power. However, in some embodiments, RAM type of memory. although less preferred due to power and maintenance requirements. may be suitably configured to serve as a storage device 213.
Referring now to Figures ?-4 and 6-1 I . in one embodiment of an apparatus 200 and method according to the invention. the processor 203 may be programmed to operate according to the steps illustrated in Figure ~. The steps of Figure ~ are expanded in detail in Figures 6-I I.
The apparatus 200 may receive inputs. When inputs are provided 220. they may be received (read, transmitted, etc.) from an input device 208, general memory 205C or from an event queue 205D. The inputs may be associated with a curve 398 (see e.g. Figure 3).
Inputs may include. for example, data corresponding to a curve 398 (fit to data or otherwise defined) or points 418 along a path 420 specified by a user. Inputs may also include instructions for controlling any I S or all devices 202. 304. 206. 208, 210. 213 associated with the bus 206.
Upon provision 220 of inputs, including receipt of data corresponding to a curve 398 or points 418, a test 222 may determine whether or not the curve 398 is continuous or discrete. That is, a curve 398 may be a continuous function for which values of a dependent variable exist in a domain for all values of an independent variable (parameter) over a range. If a curve 398 is continuous, then the apparatus 200 and method 219 may follow the path 224 to operate in a continuous transient state 226 to create a curve 400 representing the curve 398.
It may be that a curve 398 is of a desired type of linearly transformable curve. In that case, a representation of the curve 398 may include control variables 401. The control variables may comprise. for example. anchor points 402. 408 and control points 404. 406 illustrated in Figure 2.
Control points 404. 406 are used to define the curve 400. and may also be used to define the curve 398. In such a case, the curve 398 is considered to be a desired linearly transformable curve 400.
By contrast. if only data associated with discrete points 418 or 426 are provided, then the method ? 19 and apparatus 200 may be directed via the path 228 to a discrete transient 230 operation for representing the curve 398 as the cun~e 400. That is, a curve 398 may be merely a series of discrete points 418 (Figure 2) from a specified path 420. or points 426 provided as inputs representing a curve 398 to be fit with a curve 400.
Depending on the nature of a continuous curve 398 at the continuous transient step 226, the R'O 96130874 219 0 5 7 R P~~S96/03839 apparatus may follow the path 232. That is, the processor 202 may provide data corresponding to discrete sampled points 426 (see Figure 3) from a continuous curve 398. The apparatus 200 may then operate according to the discrete transient step 230.
After completing either the continuous transient step 226. or the discrete transient step 230.
the apparatus may follow the respective paths 234, 236 to operate according to a steady state 240 representation of the curve 398 as the cuwe 400. In the event that only data corresponding to an insufficient number of discrete points 418 are provided, the apparatus may follow the path 238 and end 244 processing of input and output data.
In each of the steps including flue continuous transient 226, discrete transient 230. and steady state 240, the processor-202 retrieves input signals, for example, data, from the input device 208 directly or from the memory device 204. The processor 202 may process those inputs to create rendering data, signals to be sent to the output device 210 for controlling creation of an image or other output signal sensible by a user.
The distinctive operation of the processor 202 in the continuous transient 226 mode processes input data to create a representation of a continuous curve 398. The operation of the processor 202 in the discrete transient 230 mode manipulates inputs to create a curve 400 fitting the points 418 from input data. The processor 202 in the steady state 240 mode augments (edits, extends, changes) a curve 400 that has been cast in a linearly transformable representation.
Thus. the curve 400 resulting from the discrete transient step 230 or from the continuous transient step 226 can be linearly transformed. Linear trartsfonnation relies on the fact that a curve 400, typically represented by a series of summations of terms involving powers (nonlinear terms) of a dependent variable, can be mapped to a simple linear algebraic sum of terms called building variables 414. (See e.g. Figures 15 and 16, particularly Equations 14 and 18.) Linear transformation indicates that a curve represented by an algebraic sum of building variables 414 can be transformed by simple multiplication and addition for each term, to create a new solution for a new cun~e without having to ga back to the nonlinear terms nor the mapping of those nonlinear terms to linear algebraic equations of building variables 414.
The cun~e 400 is represented by tetmts that can be scaled algebraically as illustrated in Figure 17, Equations 20. ?'_'. 24 to be updated quic~cly~, in real time in response to direct inputs by a user. The terms of the original representation of the curve 400 are transformed to create a new cun~e. rather than re-calculating or regenerating a new curve 400 in its entirety from summations or other series of non-linear terms. Thus, a curve 400 may be cast in terms facilitating extension WO 96!30874 2 ~ 9 0 5 7 9 p~T~S96103839 (editing, augmentation, change) of the curve 400 in real time in response to the addition of inputs representing new points to be included in the curve 400.
Thus, with a linearly transformable curve 400, the processor 202 may read inputs designating directly points 418 to be included in the calculation of the curve 400. The processor 202 may then process the inputs to provide rendering data. and instructions to the output device to provide feedback, such as an image presented to a user on an output device 310. The feedback (e.g. image on a monitor) enables additional inputs for correction.
augmentation, editing or the like for adj usting the output provided as feedback.
For example, a user may move a pointer associated with the input device 208, seeking to change an end point from 430 to 432 of a cun~e 400 presented on a screen of a monitor associated with an output device 210. The processor 202 processes that input data associated with the motion of the pointer. and provides rendering data for controlling the output device 210. The output device 210 presents (renders) a new visual image representing the edited curve 400 on the visible screen ofthe output device 210. By the method of the invention, the entire process (226, 230, 240) of inputting, creating, and rendering a cun~e 400 may occur in real time as a user manipulates the input device 208 along the desired path 420 specifying the cun~e 400.
Referring now to Figure 5, the method 219 implemented in an apparatus 200 of the invention may provide 220 inputs representing, among other things, data representing a curve 398.
The signal sen~ing to input the curve 398 may be represented digitally by a continuous function, or discrete points 426 (see e.g. Figures 2 and 3).
A negative result from the test 232 for a continuous curve 398 from the inputs provided 220, may direct the process 219 or method 219 to a discrete transient state 230 (see path 228). The discrete transient state 330 then may operate as though points 426. inputs representative of the cun~e 398. are simply inputs to be fit with a curve 400.
If the curve 398 is continuous. a positive result from the test 222 is indicated by the path 224 where a continuous transient 226 operation or step creates a curve 400 representing the input cuwe 398. A test 250 first establishes whether the continuous cun~e 398 is of a desired linearly transformable type. For example, if the method 219 of a tool relies on cubic Bezier curves. the cun~e 398 may be required to be a cubic Bezier curve. Similarly, a Hermite cubic, or some other cun~e may be desired in order to operate according to programmed rules of the apparatus 200 or method 219.
If the curve 398 is not of a desired linearly transformable type, a test 252 determines whether the curve 398 may be mappable to a desired linearly transformable type. That is, mapping one type of curve onto another is done in a large variety of well established ways too detailed to recite here. Some mapping methods simply require substitutions of terms in equations. If the curve 398 is not mappable to a desired linearly transformable type, then the method samples 254, such as by calculating several points 426 on the curve 398. With these discrete points provided, the method may proceed via path 232 to the discrete transient state 230. If instead the curve 398 is mappable to a desired linearly transformable type, then the mapping 260 is done. Thus, the method may then return via the path 262 to synthesize 264 a set of building variables 414. To understand the synthesis process, one may refer to 1o EXAMPLE I below. Attention is directed particularly to Figures 19-22, Equations 28 and 36.
To synthesize 264 the building variables 414, the curve 398 is represented as a least squares error fit. The least squares method results in a series of terms that are summations of powers. (See e.g. Figures 12-16, all equations in the order shown, and associated text.
Compare with Figures 19-22 and associated text). Instead of evaluating these summations, a definite integral is substituted for each summation. The integral may be integrated along the entire curve 398 as a definite integral.
Thus, the coefficients derived from summations as required by a linear system of equations {see e.g. Figure 13, Equation 7) may be evaluated using algebraic sums of building variables 414 (see e.g. qa and ra in Figures 15, 16, Equations 15, 19, respectively). In turn, the 2o integrals used in synthesis of building variables 414 create terms (see e.g. Figures 20, 21, Equations 28, 36) equivalent and substitutable into a linear system of equations (see e.g.
Figure 13, Equation 7). The linear system of equations may then define the control variables 401 by which the fitted, linearly transformable, curve 400 is properly described. (See generally, e.g., development of Qa and Ra in Figures 20, 22, Equations 27-34, and 37-39, respectively).
Following synthesis 64 of the building variables 414, the method 219 proceeds via path 234 to the steady state 240 operation.
Referring now to Figure 8, the discrete transient state 230 begins by setting 266 a counter to be equal to the number of discrete points 418 that must be fitted by a curve 400 (see e.g. Figure 2). A test 268 evaluates the counter to determine if it is higher than the 3o number of points required to fit a curve 400 of the desired degree. If the curve 400 is of degree 5, then 6 points are typically required, unless a degenerate case is to result. For a curve such as a Hermite cubic, cubic spline, or cubic Bezier, 4 points are needed.
For a cubic curve 400, any number of points 418 less than 4 results in a degenerate representation of the curve 400. (See Figure 8, steps 276, 284, 286, for WO 96/30874 219 0 5 7 9 PCT~S96/03839 i example.) If the number of points 418 provided is sufficient. a positive result 269 for the test 268, the method 219 may generate 270 the building variables 414 for the curve 400 to be augmented in real time. To generate 270 building variables 414, the method may map the coefficients (see, e.g., Figure I3, Equation 7) of control variables 401 (see, e.g.. Figure 3 control points 404. 406 and anchor points 402. 408) for describing the curve 400 to a system of linear algebraic equations.
(See e.g. Figures 15. 16 Equations 14. 15 and 18. 19.) .4frer generating the building variables 414.
the method 219 may proceed to the steady state 240 via the path 272.
If the counter is less than the required number of points 418, then the method 219 proceeds to create degenerate cun~es 400 until enough points 418 are added to create a cun~e 400 of desired degree. For example, the test 274. if positive, directs the processor 202 to create 276 a quadratic curve. and output 280 data for eventual rendering of the curve 400 on an output device 210. If the test 274 is negative, the next degenerate case is tested 282.
Similarly, if the counter is only two, indicating two points 418, then the test 282 directs the method 219 to create 284 a line, a degenerate first degree polynomial for the curve 400. A
negative result from the test 282 directs the method 219 to the next degenerate case. Note that the number of degenerate cases may be three for a cubic fit for the cttn~e 400, but may be different for another degree of polynomial.
Eventually. the default for negative results of all tests 268. 274, 282 directs the method ? 19 to create 286 a point cun~e 400. All degenerate curves are output 280, in turn. for rendering. The output 280 of rendering data by the processor 202 may be accomplished by passing data to the output device 210. the memory device 204, or the storage device 212. In one embodiment. the processor 202 may pass signals directly to the new memory 205A for reading and rendering by the output device 210.
Referring now to Figure 9. and also Figure 5, the steady state 240 may be reached via the continuous transient 226 and path 234 or the discrete transient state 230 and path 236. The steady state 240 operation of the apparatus 200 may be centered in the processor 202.
First the building variables 414 are mapped 300 to the summation coefficients of a linear system of equations. (See eg. Figures 13, 15. 16, Equations 7. 15. 19, respectively.) Then, the linear system of equations is solved 302 by any suitable method. A system of equations may be permitted to be non-linear in some circumstances, but the linear transformation of the solution has been found to function by the example illustrated.

R'O 96130874 ~ ~ 9 0 5 7 9 PCT/US96103839 The control variables 401 are then mapped 304 to rendering data. Again.
numerous methods may be used to convert a signal representing the control variables 401 defining a curve 400 into a signal for controlling rendering of the curve 400 on an output device 210. In digital data, the signals may be mapped by software codes well established for driving monitors to display graphical data.
The rendering data is next sent 306 to the output device 210. The output device 210 may' be controlled by the processor 202 or may simply accept data from the processor 202 or memory device 204.
The apparatus 200. by means such as the processor 202. next receives 308 inputs from the input device 208. The inputs may include data corresponding to new points 418 (Figure ?) or an augmenting point 432 (Figure 4) for editing or extending a curve 400. The inputs may also include data corresponding to movements of a pointer associated with the input device 208. For example, a user may use a mouse or stylus to indicate not only a point 418 or 432, but the fact that the point 418, 432 is to be added to the curve 400.
The test 310 may evaluate whether the curve 400 is to be augmented. based on the inputs received 308. A positive result begins the iteration by extracting 312 data associated with a new data point 432 from inputs received 308. The new data is used to linearly transform 314 the building variables 414 without regenerating them from "scratch" as was done in the discrete transient state 230 and continuous transient 226.
One embodiment of linearly transforming 314 the building variables 414, for one presently preferred embodiment of the invention, is illustrated in Figures 17 and 18. In general, linear transformation 314 may be accomplished in numerous ways. A characteristic of the linear transformation is that the building variables 414 need not be regenerated from data corresponding to the points 418 or cw~e 400. Also, each building variable 414 may be updated directly, without resorting to any of the constituent terms from which it was created. Instead, all the building variables 414 may be updated by simple ratios, products. additions, or all the foregoing as, for example, in Figure 17. Equations 22 and 24. In the example. the arc length 416, designated a, is updated to a new arc length 416, called (3, and the ratio of old and new arc length is used to update the building variables 414, as in Figure I7, Equation 20.
The linear transformation 314 is followed via the path 316. The path 316 returns the process 219 to the path 234 entering the steady state. The process 219 iterates to the mapping 300 of building variables 414 to the summation coefficients of the linear system of equations. Figure WO 96130874 PCflUS96/03839 13, Equation 7.
When the test 310 results in a negative result. no further augmentation or editing of the curve 400 is needed. Therefore. the control variables 401 are stored 318, typically in the memory device 204 or the storage device 212. However. in an alternative embodiment.
the building variables 414 may be saved. However. the method 219 requires the more extensive processing of the continuous transient 226 or discrete transient state 230 only once at the beginning of creation and rendering of a curve. Thus. the storage requirements for the control variables 401 are less.
Moreover, since so much of the legacy art stores control variables 401, such storage may be preferred for simplicity and reduced storage requirements.
Referring now to Figure 10. the output 280 of the rendering data (see also Figure 8) may include a variety of means for updating 320 data files. Likewise. the sending 306 of rendering data during steady state 240 operation (see Figure 9) may include updating 320 data files. In one presently preferred embodiment for example. a new memory 205A, old memory 205B, general memory 205C, and an event queue 205D may be partitioned or otherwise provided in the memory IS device 204. Updating may include storing 322 the rendering data for a curve 400 in the new memory 205A. The processor 202 or an equivalent in the output device 210 may then create 324 an instruction for the output device to unrender from the output device 210 the image associated with the old data stored for the curve 400. Next follows the creation 326 of an instruction to render to the output device 210 the image associated with the new data stored for the curve 400. Finally, the contents of the new memory 205A are copied 328 inta the old memory 205B.
The content of the old memory may be used, for example, to refresh an image of the curve 400 on a monitor screen associated with the output device 210. Other means may be successfully used. but the steps illustrated for updating 320 minimize the delay between the unrendering of the image associated with the old data and the rendering of the image associated with the new data for the curve 400.
Referring now to Figure I I, linearly transforming 314 (see also Figure 9) the building variables 414 may include the step of approximating 330 a new value for arc length 416. (See, e.g.. Figure 17, Equation 20.) Evaluating 332. 334 new values of other building variables 414 (see e.g. Figure 17. Equations ~2. 24) may then follow in any appropriate order.
The coefficients (see e.g. Figure 18. Equations 25) are evaluated 336, 338 once building variables 414 are substituted into the coefficients of the linear system of equations (see e.g. Equation 7).
The values of the coefficients may then be output 340 so that the system of equations may be solved for the new value of the control variables 401.

2 ~ 90579 -In one embodiment contemplated in accordance with the invention. the approximation 330 of arc length 416 may be done using a chords 425 (see e.g. Figure 3. Figure 17. Equation 20). In the example, one may provide 332 constants q~ or ~, and evaluate 334 5 or F~ , depending on whether the curve was generated or synthesized. respectively, as discussed.
The summations of t and a terms may be called STU coefficients 436. and the sutrunations of P,.
t. and a terms may be referred to as SPTU coefficients 438. Thus, one may evaluate 336 STU
coefftcients 436 for a new q, or Q, , and evaluate 3 38 SPTU coefficients 438 for a ney r oz R , for a generated or synthesized curve 400. The output 340 of new STU and SPTU coefficients. 436.
438, respectively, is used to create a new vector matrix equation (e.g. Equation 7) having the control variables 401 as the only unknowns.
Referring now to Figure 6. the output device 210 may be selected from one of a variety of available devices. Similarly. the output device 210 may be controlled in numerous ways. In one embodiment, the rendering 350 of the curve 400 by the output device 210 is a response to the output 280 or 306 of the processor 202. Rendering may include receiving 352 the rendering data.
1~ convening 3~4 the rendering data to an output signal. and displaying 3i6 the output signal. For example. the rendering data may be received by the output device polling the bus 206. or by direct transmission from the processor 202. or the processor 202 may control the output device 210 directly. The conversion 354 of the rendering data may involve converting numerical data to a signal on a Cathode Ray Tube (CRT) or other display. but may also include any type of sensible signal including pressure and visible light intensity of an image. Similarly the display may be any signal that may be received for purposes of feedback so that the curve 400 may be augmented as needed or desired.
ExAbELFdi Although many types of representations of cun~es exist. a Beziei curve is one popular type of representation. What is discussed here for a Bezier curve (sometimes simply referred to as a Bezier), may be applied to curves of a wide variety of types. However, in one preferred embodiment of the invention. a Bezier curve may be used. Thus, references herein to Bezier cun~es may be regarded as specific examples of a generalized method and apparatus for creating cuwes, as appropriate. Similarly, references to cur<~es may be applied to a Bezier as a specific embodiment as appropriate.
An apparatus and method practiced according to the invention may rely on a Path-Defined Bezier (PDB). The invention may use any suitable Path-Defined Curve (PDC). The method of WO 96!308'14 2 I 9 0 5 ~ 9 PCT/US96103839 the invention may be applied to many PDCs. PDBs being a specific example.
Referring to Figures 2-4, a method and apparatus implemented in accordance with the invention may be applied to a cun~e 400 represented as a two dimensional, non-rational, cubic Bezier segment. Two anchor points 402. 408 (Ao and A, ) may be chosen to coincide with the ~ starting 410 and ending 412 points of the curve 400. respectively. and nvo control points 404. 406 (C" and C,) govern the shape between the endpoints 410, 412. .~ set of building wriables 414 is created, including the arc length a 416 of the cun~e 400 and also. q, and r, ( see Figure 15. Equation 14, and Figure 16, Equation 18). The building variables 414 are algebraic sums which replace a series of powers ofP" t and a (see Figure I~. Equation I~. and Figure 16.
Equation 19). The summation terms are used to adjust the cun~e 400 during creation and editing without recomputing the cun~e 400 "from scratch." and thus facilitate updating in real time.
One goal of using a least-squares error approach is to produce and present to a user an image of a curve that smooths and closely approximates a user-specified path 420. For example, the curve 400 of Figure 2 illustrates the relationships of the "control variables" 401, including points A,a and A,, the anchor points 402. 408. and Co and C,, the control points 404, 406. Bolded letters herein indicate vector quantities having ordered sets (e.g. pairs, triples) of numbers, each number corresponding to a value of a variable in one dimension of the vector.
A method and apparatus in accordance with the invention may define the control variables 401 (Ao, Co, C" A,.
402. 404, 406. 408. respectively) based upon points 418 along a path specified by a user.
Referring to Figures 2 and 12, the curve 400 may be represented as a third degree (cubic) parametric curve Bez(t)=u'Ao+3tu=Co+3t=uC,+t'A; in t where a = ( 1 - t), and the parameter t varies such that t=0 at Ao, and t=1 at A,. (See Equation 1 in Figure 12.) A piecewise linear approximation of the arc length a 416 of a cun~e 400 may be derived from the lengths 4~'? of chords 425 between points P,. P,. etc. 426. Thus, a linear approximation of the arc length a 416 of the resulting curve 400 is the sum of chord lengths 422. the sum of the distances between each pair of adjacent points 426. (See Figure I'_'. Equation 2.) From this sum of chord lengths 423. a knot vector kv may be formed by normalizing each partial chord length.
Each partial chord length is the sum of all preceding piecewise linear distances 422 between the points 426 from the first cursor location to the location in question (e.g. A~
to the point 426 in question; see Figure 12. Equation 3). Each partial chord length is divided by the final partial chord length. That is, the final partial chord length is the total of all chord lengths 422 from the first cursor location to the last (e.g. .4o to A,). These ratios of partial chord length to final partial chord wo 9sr~os~a 2 ~ R ~ 5 ~ 9 PGT/US96I03839 length define each term kv; of the knot vector.
The anchor (Ao,A,) 402. 408 and control (C", C,) 404. 40G points for the cubic Bezier may be determined from the error between the fitted curve 400 and each of the input points 418 in the user-specified path 420. The error may be represented as the distance 428 between a point 418 and its corresponding location on the curve 400. and particularly a Euclidean distance. For a vector.
the Euclidean distance corresponds to the length (see Figure 13. Equation -I) of the component or constituent vector in each dimension between the input point P, and the corresponding point at t, on the computed Bezier curve 400. Note that t,=kv; (Figure 13, Equation 9).
See Equation 4, Figure 12 for the sum of the squared errors between the approximation cun~e 400 and the points P, 418 defined by user input.
Referring now to Figures 12-22. and more particularly Figures 12-16, the method of least squares may be invoked to determine the least squared error. Partial derivatives (rates of change of the error expression of Figure 13. Equation 4) may be taken with respect to each of the variables and set equal to zero to identify locations of minimum error. (See, e.g.
Figure 13, Equations 5 and 6) The resulting system of equations (Figure 13, Equation 7) may be solved for the control variables 401 (e.g. 402. 404, 406_ 408).
The dependent variables may be selected to be the two anchor points 402, 408 (Ao, A,) and the two control points 404, 406 (Co, C,), resulting in a system of Four linear vector equations with four uttknowm vectors. However, a method in accordance with the invention is contemplated to use the inputs (e.g. points P; 418) specified by a user to define the points A" and A,, reducing the degrees of freedom to two vectors. That is, the method of the invention may require that Ao and A, be points actually on a path 420 sketched by a user, effectively constraining or clamping the anchor (end) 402, 408 points Ao and A, of the fitted curve 400 to coincide with the starting and ending locations of the user-specified path 420. With these two variables known, a system of equatioris may be reduced to two linear vector equations with two unknown vectors (C~, and C, represented in matrix form in Equation 7 of Figure 13.
Any of a number of techniques for solving a system of linear equations may be employed to determine the values for C~ and (C . In practice. Cramei s Rule has been found to produce sufficiently precise results. Thus. the four points 402. 406, 408. 404 required to define the cun~e A", C", C, and A, are knowm from points P; 418 sampled along the path 420 specified by a user.
A cun~e 400 in general. and more particularly a Bezier curve. may be fit to the first n points 418 sampled from a path 420 determined by a user through some set of input data. A method and W0 96130874 219 0 5 7 9 PCTlIT596103839 apparatus of the invention may be used to efficiently augment (e.g. edit, extend, etc.) a previously defined curve 400. For example ifa user desires to extend a curve 400 with an n+1~' point 432 in the path 420. as depicted in Figure 4, one approach would be to repeat. for n+I points 418. the process outlined above for n points 418.
However, to provide meaningful feedback to a user requires re-rendering the curve 400 on an output device ? 10 sensible to the user upon the addition of each point P"_, -132. Updated control variables 401 A~, C~, C,. A,, and the re-rendered representation of the resulting cun~e 400. need to be computed quickly to be most useful. Feedback to the user should be "instant." "Instant" or in "real time." may be thought of as taking less time than the user requires to designate another point. Alternatively. real time may be used to mean any time less than that required for a user's eye or other involved sensory perception to detect a change in the curve.
A simple re-calculation approach will take longer with the addition of each point. As a curve 400 becomes longer, the approach used to initially define the curve 400 may become too slow to be considered "interactive" by a user. The processor 202 programmed to execute the I S method may fail to provide a response in real-time. The method cannot be expected to provide the interactive fluidity of motion required for timely feedback to a user sketching a curve 400, for example.
A method corresponding to the invention therefore provides for incremental curve fitting in constant time. That is. for example, no more time is required for augmenting a curve with an n+22"d point, than is required for an n+?~d or n+1~' point 432. Also. after the curve 400 has once been created. the curve 400 may be recreated and re-rendered to incorporate a new n+I" point 432 in the same amount of time. regardless of what value n has.
The majority of the computational burden of the fitting method above arises from the calculation of the summation STU 436 and SPTU 438 coefficients, where STU 436 is the 2~ summation of t and a terms of Figure 14, Equation 12 and SPTU 438 is the summation of P. t, and a terms of Figure I6. Equation 16. These summations 436. 438 for n+I points are nearly identical to those for the n points used in determining the curve 400 for n points 418.
The principal difference is that the t and a values are scaled by a different arc length a 416. By simply scaling the values of the previous summations 436, 438, one need not re-calculate them by the original method again. The net result is a constant time method for incrementally updating any cun~e 400 that may be linearly "scaled" this way. In particular, the example of a cubic Bezier curve operates in this way. Upon the addition of the n+1~' point 432. intermediate variables, called "buildine variables," 414 are calculated for defining the curve.
A suitable set of building variables 414 may include arc length 416 ( a, Vii), calculated with sufficient accuracy by adding chord lengths between the discrete points 418 P;
along the curve.
Also, the building variables 414 q, (of Figure 15. Equation 14) and, r (of Figure 16.
Equation 18). may be defined so as to map the summation terms 436. 438 (coefficients of A;" Co, C,, and A, in Figure 13. Equation ?) into linear equations in r, and q,. ( See Figure 1 ~, Equations 1 ~. and Figure 16. Equation ~.) That is. the knot vector kv of Figure I?. Equation 3 is notmtalizaed by arc length a 416 (see Figure 14. Equation 9), where t, and p are defined as in Figure 1-1. Equations 8-10 as the normalized Euclidean distance s; between points 418.
Note that the expansion of Equation 13 is an example of how the summation terms 436. 438 of Equation 12 are re-cast as the linear equations 15 in q,, where q, is defined in Equation 14. A
similar substitution for the summation terms involving t, u. and P results in Equations 19 in r,.
(See. e.g. Equations 16-I?, where r, is defined in Equation 18.) Thus the expression of a curve 400 may be transformed to be linear in building variables 414 q, and r,. resulting directly from normalizing the curve by arc length a.
Thus, once a curve 400, such as a Bezier, has been fitted to a set of points 418 or has otherwise been defined by its control variables 401 AQ, Co, C, , and ~A (402, 404. 406, 408, respectively), a set of building variables 414 q" r, may be defined. Based on those building variables 414 q" r,, a new set of linear algebraic equations 15, 19 may be substituted for non-linear parametric equations Figure 14. Equation 12, Figure 16. Equation I6 in t and u. Thus, the coefficients in the matrix Equation 7 are simple, linear, algebraic expressions in q, and r,.
The building variables 414 q" r" a may be updated, transfotmting the curve 400 to reflect the changes introduced by the addition of the n+1 ~' point 432 to a set of n points 418. With the updated building variables 416, the summation terms 436. 438 of Equation 7 may be redefined for use in Equations 1 ~. 19 for the q, and r, defined in Equations 14. 18. Then solving the matrix equation 7 recomputes a new least-squares error fit cuwe. such as the Bezier curve.
That is. referring to Figure I?. the building variables 416 q', (Equation 3'_') and r',(Equation 24) are actually linear transformations of q, (Equation 14) and r, (Equation 18), respectively, rather than lengthy, time consuming re-calculations. New "updated" building variables 416-q', and r'"
defined in Equations 22 and 24, may' be substituted directly into equations 1 ~ and 19 for q, and r"
respectively, to define the coefficients of Equation 7.
4 2 ~ 9 ~ ~ 7 9 PCT1US96/03839 Note that (3 in Equation 20 represents a new arc length (see e.g. Equation 2.
a for n points) for n+1 points. Updating a to ~i is accomplished by adding to the arc length a the length of a chord segment from the old A,, the n'" point 430 of Figure 4. to the new A,, the n+1" point 432.
The linear transformation of q, and 5 , into q' , and r' , respectively, is illustrated in Equations 2I and'_''?. and Equations 23 and 24. respectively. The linear algebraic equations for ~ the coefficients of Equation 7 in terms of q'" and r', are illustrated in Equations 25. Note that Equations 2~ in the updated building variables 415 q',. and r', are identical in form to Equations in the original building variables 414 q, and r,.
In general, for any fitted curve susceptible to such a linear transformation of summation 10 coefficients. and specifically a Bezier cun~e. the cun~e may be incrementally extended. augmented, edited. or the like without re-calculation of the building variables 414 from the original stmunations. The new cun~e 400 resulting from a new solution of the matrix Equation 7, based on the incrementally built stunmation terms of Equation 25. is equivalent to that which would result from refitting all n+I points 418 according to the method outlined for the original fitting of n IS points418.
In the method of augmentation described in equations 20 through 25 of Figures 17 and I 8, the building variables 414 q" r" and a are retained throughout the path-specification (curve-drawing) process. Once a path 420. curve 400, or Bezier curve has been completely specified, there is no need to retain in the memon~ device 204 or storage device 212 the building variables 2D 414. Virtually any cun~e 400 may be represented by a sequence of cubic Bezier segments. Then.
once defined, any Bezier curve may be reconstructed at any later time from the stored control variables 401 Ao, C", C,. and A, , (402, 404, 406, 408, respectively), just as a traditional Bezier cun~e. This is true regardless of the type of curve 400.
However, if a user later decides to further extend the cun~e 400 (or, for that matter. anv other previously drawn cun~e). the lack of the building variables 414 does not preclude real time augmentation (e.g. editing. extension).
The summation terms of the least-squares error fitting process are based on a finite sequence of discrete locations. points P, 418. When onh a basic Bezier cun~e exists. neither the building variables 414 nor the sequence of points P, 418 from which it was derived are available.
One way to regenerate the building variables 414 would be to sample the cun~e 400 to obtain a sequence of points P; 418. Building variables 414 could be constructed as outlined heretofore.
However, a method and apparatus according to the invention contemplate using integrals R'O 96130874 2 ~ 9 0 5 7 9 PCTlUS96103839 instead of summations (coefficients) STU 436 and SPTU 438. Integration of integrals is equivalent to sampling continuously instead of discretely. The method contemplates synthesis of the q" and r, building variables 414 to readily provide the benefits of the invention to manipulation, augmentation, and editing of curves 400 created by systems, methods and apparatus not related to , the invention.
Referring to Figure 3. one approach to determining the arc length 416 of a curve 400 is to ~
integrate the length of a chord 42~ of infinitessimal length 427 between successive points 426 along the curve 400. (See Figure 19. Equation 26.) No closed-form solution to such an integral is known. Using a summation of the lengths 427 of the chord 4?5 between the sampled points 426 to obtain an approximation of the arc length requires knowing where and at how many locations to evaluate the curve 400 to gain sufficient accuracy.
One approach contemplated by the method and apparatus of the invention for approximating the arc length a 416 uses the piecewise length of recursively subdivided shells. an open portion of a convex hull. This method of convex shells is illustrated in Figures 27 and 28 and discussed below. The method involves creating an envelope about a curve, the chords between midpoints of chords forming a "shell" whose aggregate shape approximates the shape of the curve and whose combined length approximates the length of the curve. A recursive process automatically adapts the shell to the local shape of a curve, automatically subdividing more in the regions of greater curvature. With this approach. one may specify the desired accuracy and the calculation of an approximation to the arc length can be stopped when the desired accuracy is obtained.
Actually, q~ is a summation of t' terms, as evidenced by Equation 27 (a substitution of Equation 9 into Equation 14). The problem of summing terms containing powers of the n discrete values of t may be represented exactly as a continuous, definite integral of each of the powers of ?5 t over the range [0.1 ], the entire domain of the parametric variation of t. That is, the values of t are normalized to this range while the values of s are scaled by the actual length 416 of the curve. An added advantage of transforming the discrete problem into continuous integratiori of a definite integral is that the values of Q, are constants that do not require repeated computation. As illustrated in Figure 20, Equations 29-34, each Qa becomes a simple fraction.
Similarly. as illustrated in Figure 21, Equation 3~ equates r~ to a summation of Pt', by a substitution of Equation 9 into Equation I 8. These discrete summations may also be transformed into a continuous, definite integral evaluated for a function over the range [O,lj as illustrated in WO96l30874 ~ ~ ~ ~ ~ ~ 9 PGTIUS96/03839 Equation 36. Bez(t) represents values of infinitely many points 426 (see Figure 3) from an existing continuous curve 400 rather than the finitely many discrete P locations or points 418 from a path 420 that a crave 400 may approximate in Figure 2.
Equation 36 produces simple algebraic equations in the control variables 401 that are functions ofthe anchor (Ao, A,) 402. 408 and control points (CP C,) 404, 406 ofthe existing curve 400. (See Figure 22. Equations 37-39.) The constants Q, and the easily computed values for R, are defined in tetTns of the old A", C". C,, and A, (402. 404. 406. 408.
respectively). Q, and I~
may be used directly in Equations I ~ and 19 (Figures 15, 16) in place of q, and r" respectively, to calculate the summation terms STU 434 and SPTU 436 for the solution of the matrix Equation 7 of Figure 13. Equation 7 then is solved for new values of C~, and C,, where Ao is the original .4o, and A, is the new end point 432 to which the curve 400 has been extended.
Referring to Figure 24, a definition of a curve 400 may use, for example.
control points Co 404 and C, 406. The definition may impose tangency constraints on the placement of these control points 404, 406. Tangency constraints on the placement of these control points 404, 406 ensure continuity at segment joints. This is showm graphically in Figure 24.
Here, Co is constrained to lie along the tangent vector TV and C , is constrained to lie along a tangent vector TVs. TV, and TV~ may be unit vectors. (See e.g. Figure 25, Equations 40-41.) In Figure 2~. Equation 42 defines a curve, where Equations 40-41 have been substituted in Equation I of Figure 12.
Equation 46 of Figure 26 represents a system of linear scalar equations in two unknown variables, where Equation 43 of Figure 25 represents the total of squared errors. That is, Equation 42 has been substituted into Equation 4 of Figure 13. In this case. however, partial derivatives are taken with respect to r and s in Equations 44 and 45. Equation 46 submits to Cramer's Rule, yielding solutions for r and s, which may be used to calculate C" and C, (see Equations 40. 41.
Figure 25). Again. Ao and r1, may be selected to be the first 410 and last 412 points in the sequence of points 418 on a path 420 specified by a user. Thus. many cun~es 400 that can be represented by a system of equations, where the system of equations is linearly transformable, may be used to directly and interactively render a cun~e 400 on an output device 210 in real time in accordance with the method and apparatus of the invention.
Thus, other types of curves 400 may be used, and the control variables 401 may be entirely different than those of the example. By suitable choices of mathematical functions. a user may WO 96130874 219 0 5 7 9 pCT~S96/03839 select a type of curve 400 with some kind of control variables 401. A user may also select building variables 414 to create a system of linear equations wherein the building variables 414 may be updated by a simple. linear transformation. The examples show methods to do so with the purpose of reducing the time required by an input device 208, processor 202, and output device 210 to update a rendering of a curve 400 on an output device 210. Thus, by use of a method and apparatus in accordance with the invention, a user may create and edit a curve directly, and interaciivelv. in real time.
E3CAMPLE III _ __. .
Referring to Figure 27, a method for rapid approximation of arc lengths has been developed and implemented according to the invention. The method relies on a recursion formula analytically representing a convex shell 601 for approximating a cun~e 600. The control points 602, 604, 606 -and 608 may correspond to control variables 401 corresponding to the curve 600, as heretofore described for the curve 400. The shell 601 comprises legs 610. 612 and 614 extending between the control points 602, 604, 60-6, and 608. A first approximation of the arc length 416 (see Figure 2) of the trove 600 is determined by computing the piecewise length of the shell 601 by summing the lengths 616, 618, and 620 of the legs 610. 612 and 614, respectively.
Applying the de Casteljau method, the cun~e 600 and its corresponding shell 601 are subdivided. The midpoints 622, 624, 626 of the legs 610, 612, 614, respectively, are determined analytically. The midpoints 633. and 634 are determined for the webs 628 and 630, respectively.
extending between the midpoints 622, 624, and 624, 626, respectively. The midpoint 638 is determined for the web 636 extending between the midpoints 632 and 634. As a result of this subdivision, two new shells 635A, 635B have been fotmted, shown separated in Figure 28.
The logical left shell 635A, resulting from the subdivision, comprises legs 652, 654, 656 extending between the control points 602, 622. 632_ and 638. The logical right shell 635B, resulting from the subdivision. comprises legs 658. 660. 662 extending between the control points 638. 634, 626, and 608.
A second approximation of the arc length of curve 600 is determined by summing the piecewise lengths of each of the two shells 635.4, 63513 resulting from the subdivision. The .
piecewise length of the logical left shell 635A is determined by summing the lengths 640, 642, 644 of the legs 65? 654. 656. respectively. The piecewise length of the logical right shell 635B is determined.by summing the lengths 646, 648. 650 of the legs 658. 660. 662.
respectively. The piecewise lengths of the legs 646, 648, 650. 658, 660. 662 of the logical left and right shells 635A, wo ~aos~a 219 0 5 7 9 PCT~S96/03839 635B, respectively, are summed to produce the second approximation of the are length of curve 600.
Thus, the method described for the shell 601 is repeated for the shells 635A, and 635B, as needed. For the logical left shell 635A, the points 602, G22, 632, and 638 correspond to points G02. 604. 606 and 608. while the points 664, 666, and 668 correspond to the points 622, 624, and 626. respectively. The points 684 and 686 correspond to points 632 and 634.
The point 696 corresponds to the paint 638. Likewise. the legs 652, 654. and 656 correspond to the legs 610, 612. and 614, where the lengths 700, 702, 704. 706, 708, and 710 correspond to lengths 640, 642, 644. 646. 648, and 650. respectively. The webs 676, 678. and 692 correspond, respectively, to 628.
G30, and 636.
For the logical right shell 635B, the method described for the shell 601 is repeated. Thus, the points 638, 634, 626, and 608 correspond to points 602. 604. 606 and 608, while the points 670, 672, and 674 correspond to the points 622, 624, and 626, respectively.
The points 688 and 690 correspond to points 632 and 634. The point 698 corresponds to the point 638. Likewise, the legs 658, 660, and 662 correspond to the legs 610, 612, and 614, where the lengths 712, 714, 716, 718, 720, and 724 correspond to the lengths 640, 642, 644, 646, 648, and 650, respectively. The webs 680, 682, and 694 correspond, respectively, to 628, 630, and 636.
It can be shown that the second approximation of the arc length of curve 600 is generally less than (and never greater than) the first approximation of the arc length of curve 600. From these two approximations, a relative error term is calculated as the difference between the first approximation and the second approximation divided by the second approximation.
If the absolute value of this relative error term is sufficiently small to meet some predetermined criterion, then the second approximation may be regarded as being a sufficiently close approximation of the arc length of curve 600. If the relative error term exceeds the 35 predetermined criterion, then the method is repeated in a recursive manner on each of the two logical cun~es and their corresponding shells 635A, 635B resulting from the de Casteljau subdivision in the previous step. The points 602, 622, 632. and 638 become the control variables 401 for the logical left shell 635A. and the points 638, 634, 626. and 608 become the control variables 401 for the logical right shell 635B. It can be shown that the are length of the cun~e 600 is always less than or equal to the piecewise length of the legs of the shell 601, the sum of the piecewise lengths of the legs of the shells 635A. 635B, or the sums of subsequent shells so defined.
Thus, the recursion continues until a precision criterion is met. The predetermined criterion WO 96130874 219 0 5 7 q PCT/US96I03839 is a precision criterion met when the notmtalized difference between successive approximations of arc length 416 for any shell 601, 635A, 635B. and so forth is less than or equal to that precision criterion.
S
CONCLUSION ._ __ . _ . . _ -._ -_ Referring to Figure 33, an interactive curve drawing tool has been embodied in accordance with the invention as disclosed herein and in Example I. The apparatus 500 in one embodiment I O included an input device 502. an output device 504. a memory device 506, a storage device 508, and a processor510. The input device 502 included a mouse 514 as a pointer.
The output device 504 included a monitor 516 for displaying images-including a cursor 518 representing the relative position of the mouse 514. The processor 510 and the memory device 506 were embodied in an Apple Macintosh computer. The processor 510_ included a 33 Megahertz MC68040 processor 15 equipped with a Floating Point Unit (FPU) to maintain accuracy in calculating the summation terms. The processor 510 was programmed to accomplish the executable steps of the foregoing methods in the'C' programming language.
The embodiment unrendered each curve 400 and rendered the successive.
augmented, incrementally computed curve 400. The new rendering was based on each new location of a point 20 P"" 432 read from an event queue 522 in the memory device 506. In the event queue 522 were stored data points P; 418 corresponding to a position of the mouse 514 as received in the system event queue 522. Response of this apparatus 500 was virtually instantaneous so far as a user could perceive. The time required by the output device and processor to actually render the Bezier curve on the output device was determined to be the limiting factor in performance.
35 An embodiment of the method was executed on a computer having 25 MHz CPU as the processor 510. Response was notably slower, but still sufficiently fast to render updated curves 400 in real time for most practical purposes. That is, although visually perceptible, processing delays were insufficient to interfere with the interactive fluidity of the feedback of the output device 504 (monitor 516) in response to inputs from a user's movement of the mouse 514 30 of the input device 502.
To tesf the dependence upon hardware floating-point coprocessing, the method was embodied in a processor 510 employing code compiled to use SANE (Standard Apple Numerics wo 9sr3os~a 219 0 5 l 9 p~~S96103839 Environment), a software library of troutines for floating-point computation.
The method in that embodiment had a response that was still very satisfactory even when using a Motorola MC68020 processor as the processor 510.
A tool programmed on an apparatus 500 and implemented in accordance with the invention may achieve real time performance, including editing and feedback, in real time using a wide - variety of available processors 510. Very usable response times may also be achieved using a wide class of slower performing, currently existing processors 510.
The implementation of a prototype of the method and apparatus of the invention demonstrated that such functionality may be realized on modest-to-average desktop computers.
Curve drawing tools suitable for inclusion in popular drawing programs may be greatly enhanced by inclusion of a PDC, and specifically a PDB, drawing tool in single and multi-segment embodiments. The method is contemplated to be applied to implicit (automatic) and explicit (user-controlled) segmentation of curves 400. Also, the method may be applied to an editing tool for editing internal portions of existing curves 400. For example, an interior point P; 426 on a curve may~ become a new end point .Ao or A" respectively, for each of two portions of the curve 400 on either side of the point 426. Alternatively, an arbitrary interior portion of an existing curve may be redefined according to a method and apparatus of the invention.
Curves 400 may be used to represent many widely differing phenomena including, for example, approximations of data, edges of surfaces, trajectories of guided missiles, ambulatory performance of prosthetic limbs, complex motions of presses and other manufacttuing machines, and may control paths of many parameters in dimensions of space, temperature, pressure, or any other physical property. Also, curves 400 may be used in drawing.
A PDB of the example is but a specialized example of a curve. A PDC in general, and a PDB in particular, enables an easier user interface. One reason for the easiness is that the method may enable direct and interactive specification of a cun~e 400 by a user in real time.
The method may provide an incremental alteration (also called augmentation, or extension) of a curve 400 in real time. Feedback may be visual. as a curve displayed on a screen of a monitor, or by another appropriate, sensible, medium.
What may apply to visual feedback, to an artist or draftsman, for example, may apply to any suitable feedback process. For example, feedback may be sensed by a user through any sensible (perceptible) stimulus. Thus, a curve 400 may be created to represent any process wherein a parameter (e.g. a value representing a heat flow, temperature, pressure, force, motion through .~ CA 02190579 2000-02-04 space, stress in time or space) varies as a curve. Likewise, feedback of the parameter's value may be delivered to a user by sight, sound, touch or other sensorially perceptible mode.
Thus by use of the method and apparatus of the invention, a curve 400 may be more effectively created, altered, or edited directly, interactively, and in real time, in accordance with the expectations of the creator. Virtually regardless of its origin, a curve may be represented as a Bezier, for example. The Bezier curve may be generated using a "lease-squares" curve fitting of specified points 418 marked by a cursor S 18 controlled by user.
Methods and apparatus in accordance with the invention may be used for synthesizing a 1o Path-Defined Curve from an existing curve, or a Path-Defined Bezier curve from such an existing Bezier curve.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative, and not restrictive. The scope of the invention is, therefore, indicated by the appended claims, rather than by the foregoing description.
All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims (23)

Claims:
1. An apparatus for rendering a nonlinear curve in real time, the apparatus comprising:
an input device for providing input signals corresponding directly and interactively to locations on a path specified by a user;
a processor for receiving the input signals and providing output data corresponding to a nonlinear curve fitted to the input signals.
a memory device for storing data received from the processor; and an output device for interactively providing, output signals sensible by a user and corresponding to the curve.
2. The apparatus of claim 1 wherein the processor comprises a digital processor for logically operating on the data, and wherein the data comprises digital signals corresponding to a linearly transformable curve fitted to points corresponding to the locations.
3. The apparatus of claim 1 wherein the input device further comprises a pointer adapted to be moved along the path by a user, the input device generating the inputs signals.
4. The apparatus of claim 3 wherein the output device further comprises an imaging device, the imaging device including a cursor for presenting to a user an image corresponding to a position of the pointer.
5. The apparatus of claim 1 wherein the output device further comprises a rendering device for rendering an image of the curve.
6. The apparatus of claim 5 wherein the curve is selected from cubic curves.
7. The apparatus of claim 5 wherein the rendering device further comprises a screen for rendering an image visible to a user, the image corresponding to the curve and the curve being selected from cubic Bezier curves.
8. The apparatus of claim 1 wherein the processor is a digital processor programmed to directly receive the input signals from an input device comprising a pointer movable by a user along the path, the digital processor interactively feeding back through the output device in real time an image corresponding to the curve, and wherein the input device is adapted to receive in real time additional input signals reflecting additional movement of the pointer by the user in response to the image, the output device being further adapted to render a second curve in real time reflecting the additional input signals.
9. The apparatus of claim 1 wherein the input signals are comprised of digital signals corresponding to the locations.
10. The apparatus of claim 1 wherein the input signals correspond to spatial coordinates of the locations, the locations corresponding to points sampled at intervals along the path.
11. The apparatus of claim 1 wherein the input signals are comprised of signals corresponding to a continuous curve.
12. An apparatus for interactively feeding back to a user in real time a smoothed output signal in response to an input signal controlled directly by a user, the apparatus comprising:
an input device operable by a user to sense movements by a user and to selectively provide input signals corresponding directly and interactively to the movements along a path;
a processor connected to the input device to receive the input signals for logically operating on the input signals to provide process signals corresponding to a linearly transformable, nonlinear curve fitted to the input signals;
a memory device operably connected to the processor for storing input data corresponding to the input signals and for storing output data corresponding to the process signals; and an output device connected to the processor for receiving output data and for interactively feeding back to a user in real time the smoothed output signals, the smoothed output signals being sensible by a user and corresponding to the output data.
13. The apparatus of claim 12 further comprising an input device controllable by a user to be moveable in space along the path in space selected by the user.
14. A method for incrementally augmenting a path-defined curve in real time, the method comprising:
moving a pointer associated with an input device;

creating input data corresponding to locations along a path specified by a user moving the pointer therealong;
creating in a processor, connected to the input device, process data corresponding to a linearly transformable curve fitted to the input data;
mapping the process data to building variable data representing a linear system corresponding to the linearly transformable curve;
operating on the building variable data to create output data corresponding to the curve;
feeding back to a user on an output device connected to the processor a first image of the curve;
moving the pointer in response to the image;
providing additional input data from the input device, the added input data corresponding to additional locations from additional movement of the pointer;
linearly transforming the building variable data to create new building variable data for replacing the building variable data; and feeding back to a user, in real time, on the output device, a second image for replacing the first image.
15. The method of claim 14 further comprising:
providing continuation inputs from the input device controlled by a user; and repeating the receiving, linearly transforming, and feeding back according to instruction data corresponding to the continuation inputs.
16. The method of claim 14 further comprising:
repeating the method for each curve of a plurality of curves, the each curve including at least one point in common with another curve of the plurality of curves.
17. The method of claim 14 wherein the creating process data comprises creating process data corresponding to a plurality of linearly transformable curves fitted to the input data, and repeating the mapping through feeding back steps for each curve of the plurality of linearly transformable curves.
18. An apparatus adapted to directly and interactively create a nonlinear curve, the apparatus comprising:
an input device adapted to directly and interactively provide input signals corresponding to locations on a path;

a processor adapted to receive the input signals, to provide output data corresponding to a first curve fitted to the locations, linearly transform the nonlinear curve to create a second nonlinear curve, and to provide output data corresponding to the second nonlinear curve;
a memory device adapted to store the output data; and an output device adapted to interactively feed back the output data corresponding to the second nonlinear curve.
19. The apparatus of claim 18 wherein the processor is further programmed to store in the memory device a first equation set corresponding to the nonlinear curve, to linearly transform the first equation set to create a second equation set corresponding to the second nonlinear curve, and to store in the memory device transformed data corresponding to the second equation set.
20. The apparatus of claim 19 wherein the processor is programmed to receive at least one editing input signal from the input device and to create a third nonlinear curve corresponding to the input signals and the at least one editing input signal by linearly scaling the second nonlinear curve.
21. The apparatus of claim 20 wherein the third nonlinear curve is created in constant time.
22. The apparatus of claim 21 wherein the processor is programmed to augment the third nonlinear curve to create a fourth nonlinear curve linearly transformed from the third nonlinear curve in constant time.
23. The apparatus of claim 22 wherein the third nonlinear curve is created independent of the number of the at least one editing input signals.
CA002190579A 1995-03-24 1996-03-22 Path-defined curve apparatus and method Expired - Lifetime CA2190579C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US08/410,274 US5694535A (en) 1995-03-24 1995-03-24 Direct interactive, constant-time curve apparatus and method
US08/410,274 1995-03-24
PCT/US1996/003839 WO1996030874A2 (en) 1995-03-24 1996-03-22 Path-defined curve apparatus and method

Publications (2)

Publication Number Publication Date
CA2190579A1 CA2190579A1 (en) 1996-10-03
CA2190579C true CA2190579C (en) 2000-10-24

Family

ID=23624009

Family Applications (1)

Application Number Title Priority Date Filing Date
CA002190579A Expired - Lifetime CA2190579C (en) 1995-03-24 1996-03-22 Path-defined curve apparatus and method

Country Status (7)

Country Link
US (2) US5694535A (en)
EP (1) EP0764313B1 (en)
JP (1) JPH09506991A (en)
AU (1) AU5319296A (en)
CA (1) CA2190579C (en)
DE (1) DE69600392T2 (en)
WO (1) WO1996030874A2 (en)

Families Citing this family (52)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115051A (en) * 1996-08-07 2000-09-05 Adobe Systems Incorporated Arc-length reparameterization
US6111588A (en) * 1996-12-05 2000-08-29 Adobe Systems Incorporated Creating and modifying curves on a computer display
US6025850A (en) * 1997-03-28 2000-02-15 Adobe Systems Incorporated Object boundaries identified in a raster image by a user selecting positions on the raster image and then using cost functions to predict likelihood of pixels near the position being on a boundary path
CA2233380A1 (en) * 1997-04-04 1998-10-04 Microsoft Corporation Parametric function curve editing
JPH10293854A (en) * 1997-04-18 1998-11-04 Koubundou:Kk Method and device for displaying curve, method and device for generating data showing the same curve, and recording medium where program for actualizing the same display method and generating method is recorded
US6268871B1 (en) * 1997-04-30 2001-07-31 Silicon Graphics, Inc. Generating a curve for computer graphics through points residing on underlying geometries in a three dimensional space
US6100904A (en) * 1997-06-25 2000-08-08 Adobe Systems Incorporated Curvature smoothing
US6271864B1 (en) * 1997-06-30 2001-08-07 Sun Microsystems, Inc. Representing a path as an object with transformation capability
JP3705923B2 (en) * 1998-04-09 2005-10-12 株式会社ソニー・コンピュータエンタテインメント Image processing apparatus, image processing method, program providing medium, and data providing medium
US6674435B1 (en) * 1998-09-16 2004-01-06 Texas Instruments Incorporated Fast, symmetric, integer bezier curve to polygon conversion
JP3508619B2 (en) * 1999-05-13 2004-03-22 株式会社デンソー Vehicle navigation system
US6911980B1 (en) * 1999-12-10 2005-06-28 Adobe Systems Incorporated Manipulation of curves and surfaces
US6563509B1 (en) * 2000-02-25 2003-05-13 Adobe Systems Incorporated Seeding map having intermediate seed values
WO2002043007A1 (en) * 2000-11-25 2002-05-30 Infinitt Co., Ltd. 3-dimensional multiplanar reformatting system and method and computer-readable recording medium having 3-dimensional multiplanar reformatting program recorded thereon
US6771266B2 (en) * 2001-01-16 2004-08-03 Microsoft Corporation Method and apparatus for improving the appearance of digitally represented handwriting
US6895574B2 (en) * 2001-06-28 2005-05-17 Sun Microsystems, Inc. Method and apparatus for automatically producing efficient code for computing derivatives
DE10164496A1 (en) * 2001-12-28 2003-07-17 Siemens Ag automation system
US7385612B1 (en) 2002-05-30 2008-06-10 Adobe Systems Incorporated Distortion of raster and vector artwork
WO2004108365A1 (en) * 2003-06-02 2004-12-16 Honda Motor Co., Ltd. Teaching data preparing method for articulated robot
DE102004030709A1 (en) * 2004-06-25 2006-01-19 Daimlerchrysler Ag Curve path determination method in which the curve corresponding to a digital map route section, is determined and represented by route points not more than a defined distance from the curve
US7405733B2 (en) * 2005-03-24 2008-07-29 Autodesk Canada Co. Spline drawing in a computer-implemented graphics program
US7798873B1 (en) 2005-06-22 2010-09-21 The United States Of America As Represented By The Secretary Of The Navy Design of a flush inlet as integrated with a ship hull for waterjet propulsion
WO2007041523A2 (en) * 2005-09-30 2007-04-12 Sunfish Studio, Llc System and method to compute narrow bounds on a modal interval polynomial function
US8520003B2 (en) 2006-05-22 2013-08-27 Raphael L Levien Method and apparatus for interactive curve generation
US7877317B2 (en) * 2006-11-21 2011-01-25 Yahoo! Inc. Method and system for finding similar charts for financial analysis
US7852380B2 (en) * 2007-04-20 2010-12-14 Sony Corporation Signal processing system and method of operation for nonlinear signal processing
US7969440B1 (en) 2007-05-02 2011-06-28 Evernote Corporation Method and system for curve fitting using digital filtering
US8014630B1 (en) * 2007-05-02 2011-09-06 Evernote Corporation Method and apparatus for representing image data using digital filtering and adaptive parameterization
US7706912B2 (en) * 2007-11-30 2010-04-27 Caterpillar Inc. Orifice formation control system
US9529778B2 (en) 2008-03-27 2016-12-27 Sunfish Studio, Llc System and method to compute narrow bounds on a modal interval polynomial function
US9068849B2 (en) * 2009-05-04 2015-06-30 Tomtom North America, Inc. Method and system for reducing shape points in a geographic data information system
JP5476103B2 (en) * 2009-11-27 2014-04-23 富士フイルム株式会社 Page description data processing apparatus, method and program
IT1398088B1 (en) * 2010-02-03 2013-02-07 Unox Spa METHOD OF SETTING PARAMETERS INHERENT CURVES OF ADJUSTMENT OF EQUIPMENT INTENDED FOR THE MANAGEMENT OF ENVIRONMENTAL CLIMATE CONDITIONS OF CLOSED CLOSED SPACES, IN PARTICULAR CHAMBER OF COOKING OVENS FOR FOOD OR OF DEVICES FOR MAINTENANCE OR KEEPING OF TEMPERATURE
US20110285718A1 (en) 2010-05-21 2011-11-24 Kilgard Mark J Point containment for quadratic bèzier strokes
US8515714B2 (en) * 2010-06-02 2013-08-20 Livermore Software Technology Corp. Curve matching for parameter identification
US8521484B2 (en) * 2010-06-02 2013-08-27 Livermore Software Technology Corp. Curve matching for parameter identification
CN102305590B (en) * 2010-08-10 2012-12-12 南通大学 Curve displacement sensor system and applications thereof
US20120050293A1 (en) * 2010-08-25 2012-03-01 Apple, Inc. Dynamically smoothing a curve
US8510029B2 (en) * 2011-10-07 2013-08-13 Southwest Research Institute Waypoint splining for autonomous vehicle following
US20130265239A1 (en) * 2012-04-05 2013-10-10 Research In Motion Limited Electronic device and method of controlling display of information on a touch-sensitive display
EP2648084A1 (en) * 2012-04-05 2013-10-09 BlackBerry Limited Electronic device and method of controlling display of information on a touch-sensitive display
TWI476640B (en) 2012-09-28 2015-03-11 Ind Tech Res Inst Smoothing method and apparatus for time data sequences
US9898249B2 (en) 2012-10-08 2018-02-20 Stc.Unm System and methods for simulating real-time multisensory output
US9508166B2 (en) * 2014-09-15 2016-11-29 Microsoft Technology Licensing, Llc Smoothing and GPU-enabled rendering of digital ink
US9804709B2 (en) 2015-04-28 2017-10-31 Samsung Display Co., Ltd. Vector fill segment method and apparatus to reduce display latency of touch events
RU2643431C2 (en) * 2015-09-02 2018-02-01 Общество С Ограниченной Ответственностью "Яндекс" Method and server of curve simplification
US10347016B2 (en) * 2016-01-12 2019-07-09 Monotype Imaging Inc. Converting font contour curves
US10013631B2 (en) * 2016-08-26 2018-07-03 Smart Technologies Ulc Collaboration system with raster-to-vector image conversion
US10936792B2 (en) 2017-12-21 2021-03-02 Monotype Imaging Inc. Harmonizing font contours
US11192584B2 (en) * 2019-09-23 2021-12-07 GM Global Technology Operations LLC Method and apparatus for lateral movement control
US11227419B2 (en) 2020-03-30 2022-01-18 Adobe Inc. Removing anchor points from a path while reducing deviation of the path
US20230120598A1 (en) * 2021-10-15 2023-04-20 Fanuc Corporation Robot program generation method from human demonstration

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4674058A (en) * 1981-12-07 1987-06-16 Dicomed Corporation Method and apparatus for flexigon representation of a two dimensional figure
GB2248754A (en) * 1990-06-13 1992-04-15 Rank Cintel Ltd Electronic painting system
JP2899084B2 (en) * 1990-08-03 1999-06-02 キヤノン株式会社 Graphic processing apparatus and method
JP2522108B2 (en) * 1990-10-17 1996-08-07 株式会社精工舎 Curve fitting method
US5434959A (en) * 1992-02-11 1995-07-18 Macromedia, Inc. System and method of generating variable width lines within a graphics system
US5367617A (en) * 1992-07-02 1994-11-22 Microsoft Corporation System and method of hybrid forward differencing to render Bezier splines
US5363479A (en) * 1992-07-02 1994-11-08 Microsoft Corporation System and method for rendering bezier splines
JPH06110992A (en) * 1992-09-25 1994-04-22 Agency Of Ind Science & Technol Shape deformation input operation method in cad system
US5381521A (en) * 1993-05-14 1995-01-10 Microsoft Corporation System and method of rendering curves
GB2278470B (en) * 1993-05-28 1997-12-24 Canon Res Ct Europe Ltd Signal processing methods and apparatus
US5583977A (en) * 1993-10-21 1996-12-10 Taligent, Inc. Object-oriented curve manipulation system
US5473742A (en) * 1994-02-22 1995-12-05 Paragraph International Method and apparatus for representing image data using polynomial approximation method and iterative transformation-reparametrization technique

Also Published As

Publication number Publication date
US5731820A (en) 1998-03-24
DE69600392T2 (en) 1999-03-11
WO1996030874A3 (en) 1996-11-07
JPH09506991A (en) 1997-07-08
EP0764313A2 (en) 1997-03-26
CA2190579A1 (en) 1996-10-03
US5694535A (en) 1997-12-02
WO1996030874A2 (en) 1996-10-03
DE69600392D1 (en) 1998-08-06
EP0764313B1 (en) 1998-07-01
AU5319296A (en) 1996-10-16

Similar Documents

Publication Publication Date Title
CA2190579C (en) Path-defined curve apparatus and method
US11403434B2 (en) Surface patch techniques for computational geometry
Li et al. Interactive cutaway illustrations of complex 3D models
JP4545140B2 (en) Image data processing method, medical observation system, medical examination apparatus, and computer program
Shani et al. Splines as embeddings for generalized cylinders
Kennaway Synthetic animation of deaf signing gestures
US10685459B2 (en) Generating enhanced digital images by selectively transforming raster images to vector drawing segments
Fuge et al. Conceptual design and modification of freeform surfaces using dual shape representations in augmented reality environments
JP3862759B2 (en) Computer system and process for defining and producing images using structured objects with variable edge characteristics
US20070035547A1 (en) Statistical dynamic modeling method and apparatus
US10607374B2 (en) Generating enhanced digital images by selectively transforming raster images to vector drawing segments
Kretschmer et al. Interactive patient-specific vascular modeling with sweep surfaces
CA2379459A1 (en) Geometric design and modeling system using control geometry
US20200302699A1 (en) Virtual Reality Anchored Annotation Tool
Zhou et al. Representing images using curvilinear feature driven subdivision surfaces
Vega et al. Shading logic: A heuristic approach to recover shape from shading
Pudet Real Time Fitting of Hand‐Sketched Pressure Brushstrokes
Cetinaslan et al. Sketching manipulators for localized blendshape editing
Nishita et al. A scan line algorithm for rendering curved tubular objects
US20060170688A1 (en) Time-dependent animation of a 3D object
JP4451327B6 (en) How to draw a curve in a computer-aided design system
JP4451327B2 (en) How to draw a curve in a computer-aided design system
Li et al. Efficient creation of 3D organic models from sketches and ODE-based deformations
You Differential equation-based shape interpolation for surface blending and facial blendshapes.
Kim et al. Squidgets: Sketch-based Widget Design and Direct Manipulation of 3D Scene

Legal Events

Date Code Title Description
EEER Examination request
MKEX Expiry

Effective date: 20160322