1. Field of the Invention
This disclosure generally relates to the field of rapid prototyping and particularly to Layered Manufacturing (LM) or Solid Freeform Fabrication (SFF).
2. Description of the Related Art
Layered Manufacturing or Solid Freeform Fabrication, a new class of manufacturing techniques introduced during the mid 1980s has grown rapidly over the past decade because of its proven ability to reduce product development cycle time.
In the current industrial Rapid Prototyping (RP) practice, three-dimensional (3D) CAD data are first converted to an intermediate StereoLithography (STL) format, a tessellation procedure where the model is approximated by triangles, sliced and then fabricated by the machine. But with the rapid growth of the RP industry, particularly RP directed towards rapid manufacturing, rapid tooling and biomedical applications, there has been a growing dissatisfaction with this format among the RP community due to the limitations inherent within the format. The geometric description used to represent solid CAD objects significantly affects the accuracy and quality of the final parts produced with this technology especially in the case of freeform shapes. The limitation of the current STL format generated through a tessellation procedure of the CAD model is well noted in the published literature, for example, Anne L. Marsan, Vinod Kumar, Debasish Dutta, and Michael J. Pratt, “An Assessment of Data Requirements and Data Transfer Formats for Layered Manufacturing,” Technical Report NISTIR 6216, National Institute of Standards and Technology, Gaithersburg, Md. These limitations can be summarized as follows:
Tessellation involves approximation of surfaces with triangular facets which is undesirable in general, particularly when dealing with models that contain freeform shapes. As model precision demands become more stringent, the number of facets required to adequately approximate these freeform shapes will increase. This results in extremely large STL file sizes, which become increasingly difficult to manage and increases the possibility of one or more errors. Many CAD systems fail to generate valid model tessellations and often require the manual correction of errors, providing further motivation for improving tessellation procedures. However, this calls for implementing robust and efficient procedures which may be difficult and would be computationally expensive to implement. The STL format fails to include other design content within the model, such as topology, internal material variations, and/or multi-material regions.
Accuracy was not an issue that was addressed in the early days of RP simply because the parts could only be used for prototyping and design verification purposes. A wealth of research is available in published literature regarding STL slicing and the different methods through which STL slicing can be achieved. For example, Luo R C.; and Y. W. Ma, “A Slicing Algorithm for Rapid Prototyping and Manufacturing,” 1995 IEEE International Conf. on Robotics and Automation, Nagoya, Japan, May 1995, Vol. (3); pp 2841-2846; Suh, Yong Seok and Wozny, Michael J. “Adaptive Slicing for Solid Freeform Fabrication Processes,” Solid Freeform Fabrication Symposium 1993, H. L. Marcus et al., eds., University of Texas, Austin, August 1993, pp. 404-410; and Tait S, Smith, Rida T. Farouki, Mohammed Al-Khandari, “Optimal Slicing of free form surfaces,” Computer Aided Geometric Design (19), 2002, 43-64. However, improving the accuracy of an RP part has become the focus of the RP community under the increasing need for prototyping functional parts with engineering properties and dimensional tolerances comparable to conventionally produced parts. Thus, manufacturers of free form surface models are in need of some approach that reduces or eliminates the problems that result from the currently available STL format.
One among the first to try out direct slicing was Rajagopalan et al, who describe directly slicing the Non-Uniform Rational B-spline Surfaces (NURBS) in an I-DEAS based CAD system in their publication Rajagopalan, M., Aziz, N. M., Huey, C. O., “A model for interfacing geometric modeling data with rapid prototyping systems,” Advances in Engineering Software, Vol. 23, 1995; pp 89-96. The process relied on I-DEAS to perform the slicing which made it package-specific.
With regards to improving surface finish, variable thickness slicing methods (adaptive slicing) for handling peaks, flat areas and staircase effect have also been proposed by Dolenc and Makela in their publication Dolenc and I. Mäkelä, “Slicing procedures for layered manufacturing techniques,” Computer-Aided Design, Vol. 26(2), 1994; pp. 119-126.
Jamieson and Hacker developed a direct slicing algorithm based on the Unigraphics slice modules which directly sliced the model using at first constant layer thickness, as described in their publication Jamieson, R., Hacker, H. “Direct slicing of CAD models for rapid prototyping,” Rapid Prototyping Journal, Vol. 1(2), 1995. Consecutive contours were then compared and if the difference was small, they were accepted. If not, a middle slice is created and the process of comparison performed again. The procedure of adaptive slicing was repeated until the difference between any two consecutive slice contours is either small or the minimum layer thickness has been reached.
It has been recognized that in order to improve the surface quality of a part built by an LM technique, it is necessary to minimize the staircase effect which is inherent in all LM techniques. In a more recent study, Weiyin et al developed an adaptive direct slicing algorithm that operates directly on NURBS based models to generate skin contours and then used a selective hatching strategy to reduce the build time of the model as described in Weiyin M., Peiren M. “An adaptive slicing and selective hatching strategy for layered manufacturing,” Journal of Materials Processing Technology; Vol. 89, 1999; pp 191-197.
Almost all of the published papers cited above in some way depend on external modeling packages to perform the slicing which in turn limits the capability on the level of control and variety that can be achieved. A STEP-based transfer of model data to a process planning system has been made use of by Gilman et al using commercially available software as described in Gilman, Charles R. and Rock, Stephen J., “The Use of STEP to Integrate Design and Solid Freeform Fabrication,” Solid Freeform Fabrication Symposium, University of Texas, Austin, August 1995. A Boundary Representation (B-rep) solid model of a part is translated into STEP format for transfer of design data to the process planning software. LM data is generated using faceted boundary representation and then transferred to the RP machine for prototyping. It has been recommended that the development of STEP specifically for the purpose of LM process planning due to its flexibility in terms of representing 3D CAD data, as well as 2D contour slices, thereby simplifying the standardization procedure with one common platform as described in Anne L. Marsan, Vinod Kumar, Debasish Dutta, and Michael J. Pratt, “An Assessment of Data Requirements and Data Transfer Formats for Layered Manufacturing,” Technical Report NISTIR 6216, National Institute of Standards and Technology, Gaithersburg, Md.
Direct slicing of CAD models without the intermediate STL format seems to be a promising approach reducing or eliminating the problems associated with the currently available STL format. Direct slicing of the solid model keeps the geometric and topological robustness from the original data. Its advantages may include greater model accuracy, pre-processing time reduction, elimination of checking and repairing routines, and file size reduction as noted in the literature such as Jamieson, R., Hacker, H. “Direct slicing of CAD models for rapid prototyping,” Rapid Prototyping Journal, Vol. 1(2), 1995. Since the direct mathematical formulation of the surface is used, the full data of the original solid modeler is therefore available and the loss that occurs during tessellation is avoided. Both direct slicing and adaptive direct slicing improve the accuracy and surface quality of the final RP parts. The direct slicing approach may also eliminate the verification and repairing processes, decreases human intervention, increases the robustness of data transfer, slicing and other preprocessing parameters. With this approach of direct input from computer aided design models, CAD and RP vendors may be able to provide their software/machines as a fully integrated CAD/CAM RP system.
It would be desirable to have a method of direct slicing that is independent of any CAD modeling package, and which, for example, makes use of STEP as the starting input file of the model to be prototyped. The below description focuses on NURBS based freeform shapes to demonstrate the capability of the disclosed algorithm and the proposed methodology with regards to raster line pattern layout, but may be applied to other representations. The proposed methodology of direct slicing is set out in the detailed description, followed by a review of the NURBS equations that need to be numerically solved to obtain the slice ray patterns during the slicing operation. The key steps of optimal orientation, adaptive refinement, root finding and evaluation of points are also described. The detailed description provides examples by the way of several case studies of exemplary models that are sliced to illustrate the described direct slicing method.
In the drawings, identical reference numbers identify similar elements or acts. The sizes and relative positions of elements in the drawings are not necessarily drawn to scale. For example, the shapes of various elements and angles are not drawn to scale, and some of these elements are arbitrarily enlarged and positioned to improve drawing legibility. Further, the particular shapes of the elements as drawn, are not intended to convey any information regarding the actual shape of the particular elements, and have been solely selected for ease of recognition in the drawings.
In the following description, certain specific details are set forth in order to provide a thorough understanding of various embodiments of the invention. However, one skilled in the art will understand that the invention may be practiced without these details. In other instances, well-known structures associated with computing systems including CAD computing systems, fabrication systems, for example 3-D printing systems have not been shown or described in detail to avoid unnecessarily obscuring descriptions of the embodiments of the invention.
Unless the context requires otherwise, throughout the specification and claims which follow, the word “comprise” and variations thereof, such as, “comprises” and “comprising” are to be construed in an open, inclusive sense, that is as “including, but not limited to.”
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Further more, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The headings provided herein are for convenience only and do not interpret the scope or meaning of the claimed invention.
System Environment
Referring to
The host computing system 14 includes a conventional mainframe or mini-computer, referred to herein as the computer aided design (“CAD”) workstation 16 and a server computer 18. While shown as separate devices, the server functionality can be implemented within the CAD workstation 16, which may reduce the cost of the system 10, but may also cause an unacceptable degradation in system performance.
The CAD workstation 16 includes a processing unit 20, a system memory 22 and a system bus 24 that couples various system components including the system memory 22 to the processing unit 20. The CAD workstation 16 and/or server computer 18, will at times be referred to in the singular herein, but this is not intended to limit the application of the invention to a single CAD workstation 16 and/or server computer 18 since in typical embodiments, there will be more than one CAD workstation 16 and/or server computer 18.
The biomedical device design and manufacturing system 10 may employ other computers, such as conventional personal computers, where the size or scale of the system allows. The processing unit 20 may be any logic processing unit, such as one or more central processing units (CPUs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. Unless described otherwise, the construction and operation of the various blocks shown in
The system bus 24 can employ any known bus structures or architectures, including a memory bus with memory controller, a peripheral bus, and a local bus. The system memory 22 includes read-only memory (“ROM”) 26 and random access memory (“RAM”) 28. A basic input/output system (“BIOS”) 30, which can form part of the ROM 26, contains basic routines that help transfer information between elements within the CAD workstation 16, such as during start-up.
The CAD workstation 16 also includes a hard disk drive 32 for reading from and writing to a hard disk 34, and an optical disk drive 36 and a magnetic disk drive 38 for reading from and writing to removable optical disks 40 and magnetic disks 42, respectively. The optical disk 40 can be a CD-ROM, while the magnetic disk 42 can be a magnetic floppy disk or diskette. The hard disk drive 34, optical disk drive 40 and magnetic disk drive 42 communicate with the processing unit 20 via the bus 24. The hard disk drive 32, optical disk drive 36 and magnetic disk drive 38 may include interfaces or controllers (not shown) coupled between such drives and the bus 24, as is known by those skilled in the relevant art. The drives 32, 36 and 38, and their associated computer-readable media 34, 40, 42, provide nonvolatile storage of computer readable instructions, data structures, program modules and other data for the CAD workstation 16. Although the depicted CAD workstation 16 employs hard disk 34, optical disk 40 and magnetic disk 42, those skilled in the relevant art will appreciate that other types of computer-readable media that can store data accessible by a computer may be employed, such as magnetic cassettes, flash memory cards, digital video disks (“DVD”), Bernoulli cartridges, RAMs, ROMs, smart cards, etc.
Program modules can be stored in the system memory 22, such as an operating system 44, one or more application programs 46, other programs or modules 48 and program data 50. The system memory 16 may also include a Web client or browser 52 for permitting the CAD workstation 16 to access and exchange data with sources such as Web sites of the Internet, corporate intranets, or other networks as described below, as well as other server applications on server computers including the server computer 18, such as those further discussed below. The browser 52 in the depicted embodiment is markup language based, such as Hypertext Markup Language (HTML), Extensible Markup Language (XML) or Wireless Markup Language (WML), and operates with markup languages that use syntactically delimited characters added to the data of a document to represent the structure of the document. A number of Web clients or browsers are commercially available such as NETSCAPE NAVIGATOR from America Online, and INTERNET EXPLORER available from Microsoft of Redmond, Wash.
While shown in
The CAD workstation 16 can operate in a networked environment using logical connections to one or more remote computers, such as the server computer 18 and client computing system 12. The server computer 18 can be another personal computer, a server, another type of computer, or a collection of more than one computer communicatively linked together and typically includes many or all of the elements described above for the CAD workstation 16. The server computer 18 is logically connected to one or more of the client computing systems 12 and CAD workstations 16 under any known method of permitting computers to communicate, such as through a local area network (“LAN”) 64, or a wide area network (“WAN”) or the Internet 66. Such networking environments are well known in wired and wireless enterprise-wide computer networks, intranets, extranets, and the Internet. Other embodiments include other types of communication networks including telecommunications networks, cellular networks, paging networks, and other mobile networks.
When used in a LAN networking environment, the CAD workstation 16 is connected to the LAN 64 through an adapter or network interface 68 (communicatively linked to the bus 24). When used in a WAN networking environment, the CAD workstation 16 may include a modem 68 or other device, such as the network interface 68, for establishing communications over the WAN/Internet 66. The modem 68 is shown in
The host computing system 14 include one or more peripheral devices for producing biomedical devices based on the digital models. For example, host computing system 14 may include a 3-dimensional printer 69 coupled to the CAD workstation 16 to receive machine instructions over the LAN 64 and/or WAN or Internet 66.
The client computing system 14 contains many of the same or similar structures, systems and subsystems as the CAD workstation 16, thus only the differences will be discussed in detail. The client computing system 14 is communicatively linked to a first biomedical sensor, such as an MRI device 70, typically through the LAN 64 or the WAN/Internet 66 or other networking configuration such as a direct asynchronous connection (not shown). The client computing system 14 may also be communicatively linked to a second biomedical sensor, such as a CT device 24, typically through the LAN 64 or the WAN/Internet 66 or other networking configuration such as a direct asynchronous connection (not shown). While not illustrated, the client computing system 14 may include more than one computer, and may include a server (not shown) for networking a number of client computers. The client computing system 14 may include client software applications 73 for resolving, managing or manipulating the diagnostic data from the MRI device 70 and/or CT device 72. The client computing system 14 may include software applications for communicating with the CAD workstation 16, for example, a browser 74. The software applications can be stored on any of a variety of computer-readable media.
The server computer 18 contains many of the same or similar structures, systems and subsystems as the CAD workstation 16, thus only the differences will be discussed in detail. The server computer 18 includes server applications 76 for the routing of instructions, programs, data and agents between the MRI device 70, CT device 72, client computing system 12 and CAD workstation 16. For example the server applications 76 may include conventional server applications such as WINDOWS NT 4.0 Server, and/or WINDOWS 2000 Server, available from Microsoft Corporation of Redmond, Wash. Additionally, or alternatively, the server applications 76 can include any of a number of commercially available Web servers, such as INTERNET INFORMATION SERVICE from Microsoft Corporation and/or IPLANET from Netscape. The server computer 18 also includes one or more secure Webpages 77, serving as a user interface (“UI”) for exchanging data, information and requests between the diagnostic and/or clinical sites and the design and/or manufacturing sites. The server applications 76 and/or Webpages 77 can be stored on any of a variety of computer-readable media.
Direct Slicing of NURBS Using Ray Casting
Non-Uniform Rational B-Spline (NURBS) surfaces are the industry standard tools for the representation and computer aided-design of freeform models in the field of automotive design, ship design etc, as noted in Rogers D F, “Introduction to NURBS: with Historical Perspective,” Morgan Kaufmann Press, 2000, ISBN 1558606696.
Central to the problem of slicing NURBS surfaces is the determination of intersection points between the slicing plane and the model. This is also a problem that is the subject of research by the computer graphics community with regards to ray-tracing of NURBS surfaces. For example, Kajiya J T, “Ray tracing parametric patches,” Computer Graphics SIGGRAPH '82 Proceedings, Vol. 16(3), 1982; pp 245-254; Daniel L, Jacob Gonczarowski, “Improved techniques for ray tracing parametric surfaces,” The visual computer, Vol. 6(3), 1990; pp 134-152; Michael A J Sweeney, Richard Bartels, “Ray tracing free form B-spline surfaces,” IEEE Computer Graphics & Applications, Vol. 6(2), 1986; and William M, Elaine C, Russell F, Peter S, “Practical Ray tracing of Trimmed NURBS surfaces,” Journal of Graphics Tools, Vol. 5(1), 2000, pp 27-52 discuss the determination of intersection points between the slicing plane and the model with regard to ray-tracing of NURBS surfaces.
Ray tracing of free form surfaces determines the visible parts by constructing rays from the viewpoint through the pixels of the image plane into the scene. The rays are intersected with the surfaces of the scene and the first surface hit determines the color of the pixel. If the ray misses all objects, the corresponding pixel is shaded with the background color. Ray tracing handles shadows, multiple specular reflections, and texture mapping in a very easy straight-forward manner. This is important to the designer since it would help the designer assess the surface quality and texture and hence help in a better design process.
The basic approaches in most ray-tracing algorithms with regard to determination of the intersection points remain the same and only vary with regard to efficiency in terms of memory usage and the speed taken to ray trace a particular scene. Most ray tracing algorithms perform while tessellating freeform shapes to gain speed and reduce complexity. However direct intersection using the exact mathematical equations has also been suggested as discussed in William M, Elaine C, Russell F, Peter S, “Practical Ray tracing of Trimmed NURBS surfaces,” Journal of Graphics Tools, Vol. 5(1), 2000; pp 27-52.
The below described methodology employs the same basic approach using the exact mathematical equations to deal with finding the intersection points. The below described approach, however, extends to the slicing domain for use in the LM manufacturing scenario. One significant difference arises from the fact that in LM, intersection points both in the form of entry and exit points need to be determined along with the vector layout pattern of the rays within the model. Rather than a tracing operation, a ray casting method is performed in order to perform the slicing procedure.
Within STEP files, solid and surface models may be represented as rational or non-uniform rational B-spline surfaces. Unlike STL files where the facet information of the triangle is used to obtain the slice contour, direct slicing works using the exact mathematic representation of the freeform shapes in computing the slice contours or tool patterns. A rational B-spline surface (10) is expressed parametrically in the form,
where parameters u and v range from zero to one, n and m the degree of the surface in u and v direction. The Pij terms are 3D net control points of the control polygon and Wij terms their corresponding weights, bik and bjl are B-spline basis functions of order k and l respectively. The B-spline basis functions are defined by the Cox-deBoor recursion formulas as given by:
where the values of kuj and kvl are defined by the knot vector associated with the NURBS surface in the u and v direction respectively. The STEP file contains all information that is required to define the NURBS uniquely and a STEP reader extracts the relevant information. For further discussion on B-splines and their properties see Daniel L, Jacob Gonczarowski, “Improved techniques for ray tracing parametric surfaces,” The visual computer, Vol. 6(3), 1990; pp 134-152.
A computing system such as the CAD workstation 16 (
Ray Casting of NURBS Surfaces
In the ray casting approach, the CAD workstation 16 first determines the bounding box 206 of the model 100, allowing the start position of the ray 208 to be defined from any predefined corner of the box 206 which then shoots out across intersecting the model. A ray 208 is defined as having an origin ‘o’ and a unit direction vector ‘d’ and can be defined as:
r(s)={overscore (o)}+s*{overscore (d)} (3)
Using the method followed by Kajiya described in Kajiya J T, “Ray tracing parametric patches,” Computer Graphics SIGGRAPH '82 Proceedings, Vol. 16(3), 1982; pp 245-254, the ray r(s) can be rewritten as an intersection between 2 planes given by {p| P1.(p,1)=0} and {p| P2.(p,1)=0} where P1=(N1,d1) and P2=(N2,d2). The normal to the first plane is defined as
N2 will always be perpendicular to the ray direction and the plane N1, hence
{overscore (N2)}={overscore (N1)}×{overscore (d)} (5)
Since both planes contain the origin ‘{overscore (o)}’, it can be deduced that P1.(o,1)=P2.(o,1)=0. Thus,
d1=−{overscore (N1)}·{overscore (o)}
d2=−{overscore (N2)}·{overscore (o)} (6)
An intersection point 214 that needs to be calculated should satisfy the following two conditions,
{overscore (P1)}·(S(u,v),1)=0
{overscore (P2)}·(S(u,v),1)=0 (7)
The CAD workstation solves the above equation using numerical techniques and the Bisection Iteration routine is employed to determine the values of u and v that will satisfy (7). However before the root finding operation begins, the CAD workstation 16 performs a number of pre-processing steps. Details regarding optimal orientation, refinement using adaptive subdivision, generation of the bounding volumes, root finding, evaluation and identification of output points are set out below.
Orientation
In step 306, the CAD workstation 16 optimizes the model 100 as discussed in detail below with reference to
The model orientation within the fabrication bed affects the build time, part strength in different directions and surface finish. Thus before the part is sliced, a minimization of certain objective criteria specified by the designer will be done to find the optimal orientation for slicing the model. Finding the optimal build orientation of an object requires the minimization of some objective function over all possible orientations. The objective function would include a variety of parameters such as Build Height, volume of supports, surface area that will be affected by stair case effect. Optimizing all parameters at once will not be possible, hence some parameter is preferred over the other and this is done by giving weights to each parameter involved and then optimizing the overall objective function.
A number of orientation schemes have been devised. Some base their orientation with the largest convex hull of the object as the base such as discussed in Sreeram, Puduhai N. and Dutta, D., “Determination of Optimal Orientation Based on Variable Slicing Thickness in Layered Manufacturing,” Proceedings of the ASME Winter Annual Conference, San Francisco, Calif.; November 1995, while some others orient the part based on certain critical features of the model such as discussed in Frank, Dietmar and Fadel, Georges, “Preferred Direction of Build for Rapid Prototyping Processes,” Proceedings of the Fifth International Conference on Rapid Prototyping, R. P. Chartoff, A. J. Lightman, and J. A. Schenk, eds. University of Dayton, June 1994; pp. 191-200.
Given a set of n NURBS surfaces S(u,v) that is enclosed in a bounding box of height H (a function of orientation angle “θ”), the objective function can be mathematically expressed as:
Min Z=H(θ) subject to 0<θ<360 (8)
where Z is the build height of the model and θ is the orientation of the model with respect to the object coordinate axes.
In an optimization method 400 set out in
In step 406, the CAD workstation system 16 performs an optimization of the X-axis. For example, the model 100a is rotated in the x-direction and the orientation which produces the least z-height is selected. This may employ an algorithm run from 0 to 360 degrees in incremental steps. Model transformation is achieved by the following simple transformation law about the x-axis:
Here X, Y, Z represent the control points of the different NURBS surfaces that make up the model. (X′,Y′,Z′) represents the new control points after transformation. “Θ” represents the angle of transformation by which the control points needs to be rotated by.
In step 408, the CAD workstation system 16 performs an optimization of the Y-axis. For example, the x-optimized model is rotated about the y-direction from 0 to 360 degrees and the orientation with the least z-height is selected in incremental steps. Model transformation is achieved by the following simple transformation law about the y-axis (only a slight change in the elements of the matrix):
In step 410, the CAD workstation system 16 re-translates the optimized model 100b back to its original position. In step 412, the CAD workstation system 16 provides the optimally oriented NURBS faces 100b as the input to a second phase, discussed below with continuing reference to the general slicing algorithm 300 illustrated in
Refinement
In step 308, the CAD workstation 16 performs adaptive refinement on the model 100b. Refinement or subdivision of the NURBS surface is the addition of more control points to a surface without changing its process. The CAD workstation 16 may use the Oslo Algorithm, discussed more fully in Bartels R, John B and Brian B, “An introduction to splines for Use in computer graphics and geometric modeling,” Morgan Kaufmann Press, Los Altos, Calif., 1987; ISBN 1558604006. The underlying idea is to take in the original set of knot vectors that make up the surface and add new knot values into them creating a greater number of control points corresponding to the new knot vectors. If the addition of the new knot values at the same parametric value where the number added is equal to the order of the curve, then the two new surfaces created will have the same shape as the original unrefined surface. They would each have a set of control points at the region where they join.
The adaptive subdivision of the NURBS surface continues as long as a subdivision or flatness criteria is met. Regions that have more curvature are subdivided more than regions that are more or less flat and hence the name adaptive subdivision. Each new sub-patch contains all information that defines the NURBS and an appropriate ID is given to it. The refinement procedure is extensively used in the tessellation of parametric surfaces and has been studied extensively by a number of researchers. However, our main criteria in refinement of the mesh opposed to the tessellation procedure is not to ensure accuracy in representation but more in guaranteeing that the convergence occurs within the refined sub-patch. In this regard, selection of the subdivision factor is an important step, and an appropriate value controls to a great extent the success of accurate slicing.
Boundary Volume Data Structure Generation
As the refinement procedure of NURBS progresses, the boundary volume data structure gets filled up in step 310; sub-patches are stored in the data structure along with a unique identifier. The main idea behind the storage of these sub-patches is the generation of the boundary volume. Boundary volumes are usually primitives that enclose the sub-patch completely. Some of the candidate primitives that can be used are oriented boxes, spheres, parallelepipeds. The selection of a primitive depends on the tightness of fit and speed of intersection calculation with the ray. The described approach employs axis aligned boxes that are oriented with the main coordinate axis of the model. Once they are axis aligned, the process of creating the boundary volumes is easier, and a ray-box intersection will involve less computation and hence speed up the process.
The bounding box 206 is created using the control net points created from the refinement stage of the process. An important aspect to note is that the control mesh of a NURBS patch will always enclose the surface and therefore any convex shape surrounding the control net would also enclose the surface.
In step 312, the slicer layer thickness is input to the CAD workstation 16, either manually or automatically. In step 314, the CAD workstation 16 initializes the direction and starting point of the ray. In step 316, the CAD workstation 16 obtains the dimensions of the bounding box 206 for the model 100. In step 318, the CAD workstation 16 initializes the ray to a start point. In step 320, the CAD workstation 16 determines if height of the slice is less than or equal the height of the box, and if not, then exiting the algorithm 300 in step 334. Otherwise, the CAD workstation 16 initializes the ray position in step 322. In step 324, the CAD workstation 16 determines if the width of the ray is less than or equal the width of the box, and if not increments the slice height in step 332.
In step 326, the CAD workstation 16 calculates the intersection points as discussed below. In step 328, the CAD workstation 16 writes to an output file. In step 330, the CAD workstation 16 increments the ray position on the plane.
Numerical Solution—Bisection Iteration Routine
There are a variety of numerical methods that are available to solve for the intersection points. Among them include bisection algorithm, linear interpolation, Newton Iteration, and fixed point iteration as discussed in William H P, Saul A, Wm T, Brian P, “Numerical recipes in C: the art of scientific computing,” Cambridge University Press; 2nd edition, 1993, ISBN 0-521-43108-5. Although the latter two methods are fast, in some cases they do result in solution divergence rather than convergence. The problem reduces to finding the value (u*, v*) that corresponds to the intersection point of the ray and the NURBS surface. Although ray tracing methods in model rendering may employ Newton's iteration since it proves to be a faster process, the bisection iteration routine provides simplicity and robustness. Typically, time is not a critical factor in slicing as opposed to obtaining the roots of the equation.
In step 326 (
Two criteria are used to decide when to terminate the Bisection iteration routine. The first condition the success criteria: if we are closer to the desired point by some determined tolerance, ε, given by:
|F(u,v)|<ε (9)
a successful hit is reported. The value of ε determines two aspects, first, the accuracy of the results and second, success in reporting a hit. A tight value might result in the routine reporting a miss and on the other hand a bigger tolerance will result in intersection point offset errors. The second condition is the failure criterion, meaning that if this condition is met, the routine exits reporting a miss. If during the routine, the error calculated is approximately same as the error in the previous iteration, the iteration exits reporting a miss provided the success criteria has not been met. This is mathematically written as
Fn(u,v)=Fn-1(u,v) subject to Fn(u,v)>ε (10)
where n is the nth step of iteration
Categorization of Intersection Points (Entry or Exit)
Once the intersection points are found for every ray that is cast onto the slice planes, these points are classified as an entry or an exit point in step 326. The CAD workstation system 16 may perform this by calculating the normal of the surface at the point under consideration. The normal vector can be calculated by the cross product of the tangent vectors in the u and v direction evaluated at the point given respectively by equations (11) and (12) as
The normal vector at this point is then given by
{overscore (N)}=Tu×Tv (13)
If it is assumed that the ray shoots across in the y direction, then a point is classified to be: an entry point If Ny<0; an exit point if Ny>0; and an edge point if Ny=0. The points once classified are stored in a predefined format to be displayed on screen and for conversion to machine instructions.
Implementation and Case Study Examples
The algorithms may for example, be implemented in C++. Application of these algorithms to a variety of model shapes including simple NURBS surfaces, as well as complex curved NURBS surfaces provide three test cases, described below.
In step 602, the CAD workstation 16 receives a CAD file, for example, in STEP format. In step 604, the CAD workstation 16 operates on the CAD file using B-rep view tools. The CAD workstation 16 slices the resulting data using a slicing module (e.g., above described algorithm embodied in software) in step 606. The result is a number of sliced views of the part 608, which may incorporate specific material information 610. The CAD workstation 16 may employ slice thickness parameters 612 to create patterned raster print lines 614 for the sliced views 608, which may be stored and/or retrieved a print job database 616. The CAD workstation 16 then creates machine job binary instructions 618 to drive a solid free form fabrication machine 620.
All the models in the below examples were sliced at a constant layer thickness with constant ray offsets on the slice plane.
Model 1: This model 100 is relatively small with about 16 NURBS surface definitions and was extracted from the STEP input CAD file using a STEP reader. A subdivision factor of 0.01 and a tolerance value of 0.01 were used for adaptive refinement and root finding respectively.
Model 2: The second model contained 102 NURBS surface definitions, extracted through the same method using the reader and the data transferred to the algorithm. In this case a subdivision factor of 0.1 was sufficient for appropriate slicing with no perceivable slice errors during part layout. The same tolerance value of 0.01 was used for the root finding routine.
Model 3: The third model is more complex not only in terms of having more number of NURBS surface but also in terms of its overall shape. This model depicts the capability of the algorithm to handle multiple exit, entry points as well as accurate slicing at edges of the model. A subdivision factor of 0.1 and a tolerance value of 0.01 was used for the process.
A main file or routine (Mainfile.ccp) 1002 contains the main ( ) function of the slicing module. The main file or routine 1002 may implement an interactive menu system with user selectable options, for example, three options. The first option available is the ability to cover the NURBS model with a point cover. This option can be selected to evaluate the accuracy in initial data input to prevent unforeseen errors during the slicing operation. The procedure calls up a function DrawEvaluation( ) 1004 from a file NURBs Evaluation file 1006 (NurbsEval.cpp). The second option in the menu is the ability to subdivide the NURBS surface to smaller sub-patches. This is implemented by calling a function DrawSubdivision( ) 1008, available from a NURBS Division file 1010 (Nurbsdiv.cpp). This is the initial preprocessing step used before the actual slicing operation. The third option available is the actual slicing operation to calculate the intersection points. Function calls are made to different bisection routine methods, defined in a Ray Intersect file 1012 (Rayintersect.cpp). Besides that, a function call to Datasorterfilter( ) 1014 defined in a Data Sort file 1016 (Datasorterfilter.cpp) is made to organize and output the calculated intersection points in the required format.
The NURBS Evaluation file 1006 includes procedures that produce a uniform cover of points evenly spaced out on the surface of the NURBS CAD model. The number of surface points generated can however be controlled by assigning different values to the variable “Granularity.” The default value may be set to 100. The function evaluates the surface points at specific values of knot parameters u and v by iterating through the parameter values, the surface points are generated.
The NURBS Division file 1010 contains the procedures that perform the task of subdividing the original NURBS data to smaller sub patches. An adaptive subdivision procedure of the surface takes place and continues until it meets the subdivision criteria factor given by the variable “SubdivTolerance.” The value may range, for example, from 0.1 to 0.01, depending on the size of the model and complexity in its outer contour surface. The lower the tolerance value, the greater the number of subdivisions with subsequently higher number of sub patches. Care should be taken in selecting this value is needed and the typical user will gain experience in the appropriate value to be chosen. A procedure EmitTriangles ( ) 1018 saves the output sub-patches in a defined format onto a text file.
The Ray Intersect file 1012 contains all of the functions responsible for the slicing operation. The major functions include reading bounding boxes that contain the sub patches, determination of the bounding box that has been hit by the ray, and bisection iteration routine procedures. The output from these functions are the intersection points and they are sent to the main file 1002 using a variable pointer “hitpoint.” There are four bisection routines in all, each with a different characteristic in searching for the intersection points. Not all routines are called and each new bisection routine is called only if the function above them fails to find the intersection point. If all four of the bisection routines functions fail to find any point, then two other functions (i.e., Search_by_Blasting—1 function 1020, Search_by_Blasting_21022) are activated. These functions implement time consuming procedures, where the small sub patch of the NURBS surface is flooded with large number of points. The functions then find the point that satisfies the intersection point criteria. The difference between the Search_by_Blasting—1 function 1020 and the Search_by_Blasting—1 function 1022 is that one has a more relaxed condition of success criteria than the other. If none of the six functions are able to find an intersection point, a NULL value is returned to the main program 1002 signifying a NO HIT status for the ray.
All intersection points that are returned to the main program 1002 by the Ray Intersection file 1012 for one slice level are stored within an output data structure. The data structure is sent to the datasorterfilter( ) function 1014 contained within the Data Sort file 1016. The collection of points is then filtered according to a set of conditions, in order to classify the points as Entry or Exit Points. The conditions are based on a number of factors that include direction of normal, magnitude of normal, condition of Hit etc. Once the data is filtered, the points are written out, in a format readable by the Fabrication Planning software with appropriate points marked as Entry or Exit.
At 1212, the processor determines whether the end of file (EOF) has been reached for the subject file. Until the EOF is reached the processor successively reads NURBS data from a file at 1214, performs adaptive subdivision of the NURBS surface definitions at 1216; and writes refined NURBS definitions onto the subject file at 1218. The processor frees memory allocation at 1220 upon reaching the EOF.
At 1222, the processor reads NURBS subpatches. At 1224, slice parameters are assigned. At 1226, the processor enters an outer while loop, which is executed while the position of the slice plane is less than the height of the model. At 1228, the processor enters an inner while loop, which is executed while the ray position is less than the width of the model. Within the nested while loops 1226, 1228, the processor at 1230 finds the candidate hit boxes that the ray hits or intersects. At 1232, the processor enters a loop for each candidate hit box, in which the processor solves numerically for hit boxes at 1234, stores points in a data structure at 1236, and sorts and filters data at 1238.
At 1240, the processor reads NURBS subpatches. At 1242, the processor orients the model in the X direction, and at 1244 orients the model in the Y direction. At 1246, the processor writes new faces in the file.
The method 1300 starts at 1302. At 1304, the variables are initialized, being set to false. At 1306, the four corners of the surface are initialized by their respective normals. A call to a DoSubdivsion procedure is made at 1308. The method 1300 terminates at 1310.
If the surface is not flat, the process determines if the surface is twisted or curved at 1410. If the surface is not twisted or curved, the process at 1412 assigns values to direction flag variable depending on the flatness of the surface. Otherwise, at 1414 the processor assigns alternative values to the direction flag variable. At 1416, the processor calls a surface splitting procedure (i.e., SplitSurface( )), and at 1418 recursively calls the itself.
At 1610, the processor sets the minimum and maximum for he control point values.
At 1612, the processor begins a second while loop. While an integer i is less than a total, the processor calculates minimum and maximum values among the control points for the NURBS surfaces at 1614, in order to determine the bounding box by comparing the minimum and maximum values with the current control points.
At 1616, the processor copies the minimum and maximum values to a data structure (ebox). The method 1600 terminates at 1618.
At 1704, the processor executing the method 1700 allocates memory to store points to be generated by the method 1700.
At 1706, the processor executes an outer “for” loop, incrementing an integer i from zero to a granularity setting. At 1708, the processor incrementally calculates a variable v based on the granularity.
At 1710, the processor executes an inner “for” loop, incrementing an integer j from zero to the granularity setting. At 1712, the processor incrementally calculates a variable u based on the granularity. At 1714, the processor determines a point on the surface using the calculated variables v and u. At 1716, the processor determines whether the determined points satisfy the defined criteria. If the determined points do not satisfy the defined criteria, the method 1700 terminates at 1718. Otherwise, the processor at 1720 determines an error margin in the X and Z points. At 1722, the processor stores the points in a hit point data structure. At 1724, the processor calculates a normal vector at the point.
The processor executing the method 1800 executes a while loop at 1804, while a variable bbox is between the value v and Vmax. At 1806, the processor sets an error variable to a large value and sets a start value of the variable U (start_U) equal to the minimum U value. At 1806, the processor also sets an end value of the variable U (end_U) equal to the maximum U value, and sets the value of U between the start and end values of U.
At 1808, the processor executes a while loop. At 1810, the processor determines a point on the NURBS surface using the u and v parameters. At 1812, the processor determines an error in both X and Z values.
At 1814, the processor determines if the error in the X value is less than zero. If the error in the X value is less than zero, the processor at 1816 sets the start value of U equal to the value of U, and sets the value of U equal to the quotient of the sum of the value of U plus the end value of U, divided by two. If the error in the X value is not less than zero, the processor at 1818 sets the end value of U equal to the value of U, and sets the value of U equal to the quotient of the sum of the value of U plus the start value of U, divided by two.
At 1820, the processor executes a outer nested if loop, and at 1822 executes an inner nested if loop. At 1824, the processor transfers any found intersection point to the main program variables. At 1826, the processor increments in the V direction. The method 1800 terminates at 1828.
At 1904, the processor executing the method 1900 accepts parameter values, sets an index value to the total number of output values and initializes an array Out_cont using the data stored in the output data structure. At 1906, the processor executes a first counter loop that increments a first counter value from zero to the index value minus one. At 1908, the processor executes a second counter loop that increments a second counter value from the first counter value plus one to the index value.
At 1910, the processor determines if the value stored in the array Out_cont at an position equal to the first counter variable for a point Y is greater than the value of the value stored in the array Out_cont at a position equal to the second counter variable. If the value greater, the processor at 1912 swaps values between positions in the array Out_cont.
At 1914, the processor executes another counter loop, incrementing the first counter between zero and the index value. At 1916, the processor determines whether the absolute value of current normal is less than 0.1. If not, the counter loop continues. If so, the processor determines if the first counter is equal to zero at 1918. If the first counter is equal to zero, the processor set a first value to enter at 1920. If the first counter is not equal to zero, the processor determines in the previous record is equal to enter at 1922. If the previous record is equal to enter, the processor sets the current record equal to exit at 1924, and if not the processor sets the current record equal to enter at 1926.
At 1928, the processor executes another counter loop, incrementing the first counter from zero to the index value. At 1930, the processor determines if of the filtering condition bases on the normals and surface identity. If not, the counter loop increments. If so, the processor copies the record to a new data structure ret_cont( ) at 1932. The processor then sets the current record equal to the previous record at 1934.
At 1938, the processor determines whether the hit corresponds a desired type of hit. If not, the processor determines if the filtering condition based on Y-values and the surface identity at 1940, and overwrites the final points array at position given by the second count value minus one to the current record at 1942. If so, the processor copies the record to the new data structure final points ( ) at 1944, and performs alternating looking for the hit type between the values of zero and one at 1946.
At 1948, the processor executes a further counter loop, increment the first count between zero and the second count value. At 1950, the processor determines if the hit type matches the desired hit type, incrementing the first counter if not. If the hit type does equal the desired hit type, the processor prints out the output values at 1952, and terminates the method 1900 at 1954.
The above algorithms are implemented in software, and tested for 10 different kinds of models each with certain characteristics of its own to test the capability of the algorithm. Given below is the test case results and its various process parameters. With respect to Model #1, a detailed explanation is include describing how to run the algorithm from the initial CAD input to final raster display. In other embodiments, the output may be used to drive a manufacturing device, for example, a three-dimensional printer.
Model #1—Sphere
Act 1: Open the “.STP” CAD model file in SolidWorks®. Open up Tools->Macro->Run->Splsurf.swp. The macro should take only a few seconds to run. Browse to the directory that contains the Macro and a file named “FACES.txt” should be visible.
Act 2: Open up the code in Microsoft Visual C++ environment. Compile and Run the code. A menu with different menu choices shows up. The menu has different options and each can be selecting by simply selecting the number of each menu choice. Type in “2” to select Tessellate Surface menu option. The menu then prompts you to enter the Filename that contain the data input; type in “faces.txt”. Once this is done, the code then begins subdividing all of the NURBS surfaces defined in the input file.
Act 3: After the subdivision process, the menu shows up once again and type in “3” to select the “Calculate Intersection Points” menu option. The procedure opens up the sub-patch file and stores them in data structures. It calculates the Bounding Box dimensions of the model and displays it as shown in the user interface 2300 of
Model 2—Cone:
Model 3—Foot:
Model 4—Sinus Graft: 1
Model 5—Sinus Graft Model 2:
Model 6—Sinus Graft Model 3:
As illustrated by the format box 3002, a subdivision factor of 0.1 and a tolerance value of 0.01 are used for the illustrated process.
Model 7—Sinus Graft Model 4:
Model 8—Bone with Holes:
Model 9—Combination Bones:
The advantages and disadvantages offered by the STL and STEP based methods can be seen from Table 1. A comparison has been drawn by the two methods of slicing in terms of file storage and processing time. All results are obtained from a Pentium4 2 Ghz, 1 GB RAM system. While direct slicing takes more time to process, it has comparatively less storage space and file check routines. Though the STL format is the quickest method to slice models, they involve higher storage costs and may require file checks and repair routines depending on the complexity of the surface.
Direct Slicing of CAD model promises to offset the disadvantages posed by the STL format. It does not involve any file repair routines and file sizes are much smaller to handle. It also facilitates the possibility of slicing multi-material volumes or heterogeneous models, a definite advantage over STL files. Since the exact representation is used, complete design information is carried over to the fabrication stage with no loss in information. Although direct slicing does take longer to slice, this problem can be offset by efficient algorithms in terms of reducing memory usage and faster computing power. A point to note is also a careful selection of the subdivision factor and the tolerance value. We have found that under continued trials, an intuition is developed on the selection of the right parameters which works best for the models. Future research would involve the development of an adaptive direct slicing method on heterogeneous models and an appropriate slice layer format in terms of STEP that would be able to transfer slice information across different RP platforms. Effort would also be put into quantifying the exact accuracy obtained by direct slicing rather than using the STL format.
Although specific embodiments of and examples for the reader and method of the invention are described herein for illustrative purposes, various equivalent modifications can be made without departing from the spirit and scope of the invention, as will be recognized by those skilled in the relevant art. The teachings provided herein can be applied to other rapid-prototyping systems, not necessarily the exemplary bio-medical device design and fabrication system generally described above.
The various embodiments described above can be combined to provide further embodiments. All of the U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet, including but not limited to U.S. patent application Ser. No. 09/828,504, filed Apr. 5, 2001, and entitled “SYSTEM AND METHOD FOR RAPIDLY CUSTOMIZING A DESIGN AND REMOTELY MANUFACTURING BIOMEDICAL DEVICES USING A COMPUTER SYSTEM”; U.S. patent application Ser. No. 09/972,832, filed Oct. 5, 2001, and entitled “SYSTEM AND METHOD FOR RAPIDLY CUSTOMIZING DESIGN, MANUFACTURE AND/OR SELECTION OF BIOMEDICAL DEVICES”; U.S. Provisional Application No. 60/462,954, filed Apr. 14, 2003, and entitled “DIRECT SLICING OF STEP BASED NURBS MODELS FOR SOLID FREEFORM FABRICATION,”; and U.S. Provisional Application No. 60/487,463, filed Jul. 15, 2003, and entitled “APPARATUS, METHOD AND ARTICLE FOR DIRECT SLICING OF STEP BASED NURBS MODELS FOR SOLID FREEFORM FABRICATION,” are incorporated herein by reference, in their entirety. Aspects of the invention can be modified, if necessary, to employ systems, circuits and concepts of the various patents, applications and publications to provide yet further embodiments of the invention.
These and other changes can be made to the invention in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the invention to the specific embodiments disclosed in the specification and the claims, but should be construed to include all embodiments that operate in accordance with the claims. Accordingly, the invention is not limited by the disclosure, but instead its scope is to be determined entirely by the following claims.
Number | Date | Country | |
---|---|---|---|
60462954 | Apr 2003 | US | |
60487463 | Jul 2003 | US |