[0001] The present application is related to and claims the benefit of U.S. Provisional Patent Application No. 60/397,902, filed Jul. 23, 2002, entitled METHODOLOGY FOR INCREMENTALLY UPDATING 3D FEATURE-BASED CAD MODELS IN A COLLABORATIVE ENVIRONMENT, U.S. Provisional Patent Application No. 60/397,903, filed Jul. 23, 2002, entitled METHODOLOGY FOR AUTOMATED CONVERSION OF 2D CAD DRAWINGS TO PARAMETRIC 3D CAD MODELS, and U.S. Provisional Patent Application No. 60/397,965, filed Jul. 23, 2002, entitled UNIVERSAL FEATURE OBJECT—A METHODOLOGY TO STORE FEATURES IN A CAD NEUTRAL FORMAT. Applicants hereby claim the benefit of these Provisional Patent Applications under 35 U.S.C. Section 119(e), the entire contents of which are incorporated by reference herein.
[0002] The present invention relates to a system and method for converting a two-dimensional (2D) drawing to a three-dimensional (3D) model and, more particularly, to a system and method for creating and updating a 3D model and creating a related neutral file format.
[0003] There have been various attempts to create an intermediate file format for the exchange of feature data or graphical information between systems (such as Computer Aided Design (CAD) systems) and products. A native file format is typically associated with each CAD system, some of which are complex, do not always translate accurately to other CAD systems, and only transfer graphical information. Therefore, there is a need overcome such limitations and to create an intermediate file format that can represent a feature-based 3D model as well as a simple representation of the graphical information for use in multiple applications.
[0004] Several companies offer some version of homogeneous collaboration within their products. Such functionality allows users to share models in the native format of the CAD system for design changes. In the homogeneous environment, several conventional techniques are used today. These include using streaming technology to stream large size models between users, redlining and markup using viewers that do not display intelligence in the model (such as features and their associated parameters), or propagating design commands to users. A limitation of such conventional products, however, is the lack of collaboration in a heterogeneous CAD environment.
[0005] In order to currently achieve true collaboration between designers, an entire model is transferred between users in real-time. Such a procedure can be very inefficient and slow for large CAD models and assemblies. Hence, there is a further need for a methodology that will propagate only design changes to the collaborators that are concise and easily deliverable over various networks (such as, for example, narrowband networks). This obviates the transfer of entire models between users or manually recreating the design changes at each collaboration node.
[0006] Companies have traditionally accumulated large amounts of legacy data as 2D drawings and most new designs are currently modifications to legacy designs that are only available in 2D drawings. Certain conventional solutions can semi-automatically convert simple 2D drawings to 3D models. However, the 3D models generated by these systems are “dumb” geometric models that cannot be edited easily. Certain products available for 2D to 3D conversion create 3D solid models of simple prismatic parts within software that is automated only for the simplest of parts with other more complex parts having to be interactively modeled. Other products also convert simple drawings to 3D models using an intuitive modeling approach whose generated models are not true parametric models. As such, they lack constraints and dimensions and do not represent design intent well. Other products create 3D solid models using a completely manual approach. Although these 3D models are parametric and feature-based, the class of features handled is typically limited to extrusion joins and cuts.
[0007] As such, what is also need is a system and method for easily and cost effectively converting 2D drawings to usable 3D models, and generating intelligent 3D parametric and feature-based models. These improvements would allow designers to easily modify the models in the CAD system of their choice. There is also a need to convert older designs to 3D models to for archiving purposes or to manufacture spare parts when users or systems cannot use the 2D data.
[0008] It is therefore desirable for the present invention to overcome the limitations and problems described above that are involved with creating and updating a 3D model and creating a related neutral file format.
[0009] The present invention achieves technical advantages as a system and method for creating and updating a 3D model and creating a related neutral file format.
[0010] In one embodiment, a method for building, defining, and storing features in an application neutral format comprises building a feature based on a feature class, wherein the feature class comprises feature geometry, feature constraints, and feature dimensions, defining the built feature as a geometric representation of an individual feature type, and storing the representation in a binary file format.
[0011] In another embodiment, a method for incrementally updating a binary file comprises indicating changed features between a first binary file and a second binary file at a first client, receiving the changed features at a second client, comparing an identification of the first binary file with the second binary file, and if the identification is new, writing the second binary file to the first binary file.
[0012] In a further embodiment, a method for converting a two-dimensional drawing to a three-dimensional model (or object) comprises detecting the two-dimensional drawing, correcting errors associated with the two-dimensional drawing, receiving the corrected drawing by an automated feature detection system, performing a profile analysis and a feature analysis, producing a list of three-dimensional features, and writing the features to a binary file format.
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023] Universal Feature Object (UFO)—A Methodology to Store Features in a CAD Neutral Format
[0024] The present invention (which may be implemented as software, hardware, and/or a combination of software and hardware) includes a neutral file format that is capable of handling graphical representations of a 2D drawing and fully constrained feature-based 3D models from multiple CAD systems. This neutral or generic intermediate file format allows for the conversion of 2D legacy drawings to 3D feature-based models in a targeted CAD system and also allows for the collaborative update of a 3D model from one CAD system to another.
[0025] Referring now to
[0026] The UFO consists of two libraries that are necessary to create the 3D model. These two libraries are the geometry library and the feature library. The geometry library contains classes for all 2D and 3D entities as well as points and vectors. Common classes exist for 2D entities (for example, GE2D_Entity) as well as 3D entities (for example, GE3D_Entity). All entity types (lines, circles, etc.) will inherit from the common entity class. The data within each class is private and can only be accessed via member functions. In the geometry classes (both 2D and 3D), the member functions that set and retrieve the data actually copy the data between the class's private data space and the address of the data specified from the calling function. For example, a 2D line contains a start point. However, to retrieve this point, the calling function must pass an address where this particular point data is to be copied. This guarantees data integrity. Within each class, the data is classified as fundamental data, which is the minimum data necessary to define the entity, and the derived data, which is any information that may be used in or with the present invention. It is the responsibility of the individual classes to guarantee that any change made to the fundamental data via a function (for example, a member SET_function) will update the derived data accordingly. For example, if the start point of a line is changed via another function (for example, a Set_Start_Pt function), it is the responsibility of that function to update all fundamental data (i.e. length and slope of the line) accordingly.
[0027] An important class in the geometry library
[0028] Referring now to
[0029] Several features are created by first drawing a profile shape from a collection of entities on a specific surface. Two such features are extrusion features and revolve features. A separate class is created to handle all profiles (for example, a FEAT_Profile class). The coordinate system needed to draw a feature is defined within the profile class and is due to the nature of the coordinate system class that contains the data necessary to detect the face or work plane. Within the profile class, the data needed to draw the profile can be handled as an array of 2D poly-lines or entities. Each CAD interface application can build the profile using the method that is native to that CAD system when drawing the profile.
[0030] Feature constraints are handled via two classes. The first class, (for example, a FEAT_Constraint class), defines the constraint type, constraint data value (i.e. dimension value) and up to two (or more) constraint objects (such as a 3D point or a 3D edge). The second class, (for example, a FEAT_Constraint_Object class), contains the constraint object type indicating the constraint is to an edge or to a point, and the point or edge definition.
[0031] In addition to containing a data representation for a 3D feature-based model, the UFO of the present invention also contains a method for storing the 2D views via a class (for example, a FEAT
[0032] By utilizing the current format for the UFO, the software of the present invention is easily maintained and updated. The UFO can be incrementally updated with additional features and little or no overhead. By using an object-oriented approach with the UFO, compatibility between versions is simplified. Upward compatibility between versions of the UFO can be achieved through the use of inheritance. Another compatibility issue deals with versions of a particular CAD system and involves attempting to transfer a model from a CAD system to an earlier version of that CAD system. With the exception of new features that are not handled in an earlier version, backward compatibility is achieved (using UFO) through the CAD application.
[0033] Another advantage of the UFO of the present invention is the amount of data transferred. The UFO file is a binary file of the individual CAD features and the metadata associated with each feature. By utilizing the application to determine the build method of the model, CAD specific data is not transferred through an intermediate file. Therefore, the UFO can be used in a collaborative environment. The UFO also lends itself to other possible uses such as an incremental update of a model in a collaborative environment. Finally, the UFO can handle manufacturing features as well as design features which include pocket, step, notch, etc.
[0034] A methodology for Incrementally Updating 3D Feature-Based CAD Models In a Collaborative Environment
[0035] 3D CAD models can get extremely large in size for complex parts and assemblies such as those used on airplanes and automobiles, for example. If such complex parts are to be collaboratively designed using conventional CAD systems, users have the choice of simply marking up a visualization version of the model (that is smaller in size) or transferring the model among them each time a design change is made. This is true of collaboration either in a homogeneous CAD environment where all users have the same CAD system or in a multi-CAD heterogeneous environment where all or some users do not have the same CAD system.
[0036] A feature of the present invention allows collaborators to only share design changes and not transfer entire product models between collaborators. This feature is a significant improvement over current collaboration models and enables users to collaborate on complex models over narrowband networks.
[0037] Referring now to
[0038] The second client
[0039] Referring now to
[0040] If the file with the same tag is found at step
[0041] Once the comparison is completed, a “DUFO” tag is added to the new list and is serialized at step
[0042] The following description further describes and clarifies the system and methods described in
[0043] At the receiving end, the collaboration client receives the file and checks to see if the file has a “DUFO” tag attached to it. This is done after serializing the UFO file. In the case where the entire part was sent out, no tag would be found and hence the entire part would have to rebuild/build on the receiving end CAD system. A unique tag that came with the UFO is added to the name of the file on the receiving CAD system. Now that the part has been sent to all collaborators, the users can collaboratively make design changes. The first collaborator can change the model and write it out to the UFO. Now the model has a unique tag attached to its name. This tag is taken and compared with all the UFO files that are in the current directory. A match may be found (for example, this UFO file can be referred to as file
[0044] Once this comparison is complete, features in the new list are compared with other features. If the feature type and the feature index (this is the index that keeps track of the relative position of the feature in the feature tree) are the same, one copy is deleted and the tag on the other one is changed to “Modified”. Once a complete comparison is performed, the new list is serialized (after adding a “DUFO” tag to the list). This new UFO is sent to the server which sends the file to all the collaborators other than the one that sent the file. The other collaborators receive the file and open it to see the DUFO tag. Each feature is extracted and is run through a feature-mapping engine to map the feature to an available feature in the CAD system. Once mapped, the mapped feature is taken and identified on the feature tree. The identification is accomplished using the feature type and the relative feature index in the tree. Once identified, the feature is either deleted, added or modified based on the tag that the feature carries. Added features are simply added without comparing these added features with existing features. Only modified and deleted features have to be compared.
[0045] In the case of fillets and chamfers, modified features are first deleted and then added. This is done because fillets and chamfers are typically dependant features and have a modified tag since the feature on which they are dependent is modified. This would make sure that the fillet and chamfer move to the right place when modified. When a fillet is deleted or added, it is reordered in the feature tree since all added features are by default added at the end of the feature tree. Since this does not maintain the design intent, when the feature is deleted, its position is noted down. Thus, when the modified feature is added, it is moved to the old position in the tree thereby maintaining the design intent.
[0046] Currently, when a feature is being modified, all attributes of the feature are modified even though a particular attribute would have remained the same. Eventually, the DUFO can note only the changes or mark and change the changed parameters. Once the feature in the DUFO file has been mapped and compared with the feature tree, the new features are added to the file that has the same tag as the part that is open in the CAD system. This makes sure that the UFO file in the system is up to date with the one opened in the CAD system. The feature is added or deleted from the list and its relative position is maintained in the list.
[0047] When collaborators are collaborating with a heterogeneous CAD system, a problem of un-mappable features usually arises. These features are either converted into another feature supported by the CAD system or added to the part as geometry (surfaces stitched together). In such a collaboration situation, incremental updating is difficult. For example, Collaborator A may have a dome feature and sends the file to Collaborator B who builds up the part by changing the dome to a loft in his/her system (since the dome is unsupported by Collaborator B). Collaborator B may then add a few more fillets and send the file to Collaborator A. When the incremental update is not used, the entire file is sent to Collaborator A who loses the dome as it gets converted into a loft on his/her system. This scenario is called a loop-through problem.
[0048] The present invention overcomes the loop through problem. When Collaborator B adds new fillets to the part and collaborates, the new part is compared with the one saved in the system. New fillets are detected, but the loft is not detected as changed. So only the fillets go to Collaborator A as new features and Collaborator A does not lose the dome.
[0049] In the present invention, every feature attribute is compared between the files. For example, if two extrusion features are being compared, attributes such as extrusion height, blind or through extents, and extrusion directions are compared. The profile is also checked. Each entity in the profile is compared and the coordinate system attached to the profile is also checked. If a change is found in any one of the attributes, the feature is added to the list that maintains every new, deleted and changed feature. If the base feature is changed, most (if not all) of the other features will also need to be changed. In such a situation, it is appropriate to send the entire file to the other end rather than sending a DUFO file.
[0050] The manner in which the UFO is organized is similar to the manner in which features are represented in a feature tree. This helps in the comparison, deletion and addition of features. The UFO is object oriented and extensible which aids in the easy addition of comparison operators, and comparison of disparate features with just one class. Serialization of a single feature or list of features is possible. Serialization of single feature without involving the depended features helps in making the differential update possible.
[0051] A methodology for Automated and Semi-Automated Conversion of 2D CAD Drawings to Parametric Feature-Based 3D CAD Models Via the UFO
[0052] The present invention also provides a robust and modular approach to converting drawings from 2D to 3D and consists of three primary steps in the conversion of a 2D drawing to a 3D feature based model. These steps are feature detection, feature analysis, and model creation which are further described below.
[0053] Referring now to
[0054] In a further embodiment, the method may proceed to various steps where this result is merged with a 2D representation of the UFO file to form the basis for any interactive feature definition for features that were missed by the automated conversion. In the interactive feature definition, a user could define feature profiles and interactively specify feature heights to completely define a new feature in the 2D drawing. This feature could then be added to the existing UFO file to create a new UFO file that can again be interfaced to the CAD system to generate a new 3D model.
[0055] Referring now to
[0056] Referring now to
[0057] Referring now to
[0058] Referring now to
[0059] Once all subparts views have been extracted, an attempt is made to find matches for each. This is a two-step process. Initially, subparts are compared with subparts from other orthographic views looking for a possible match. Further searches look for matches using, for example, an atomic loops means. This second step is executed when there is a third view or only two views where the matching loop is nested inside the view. An example of this is the block with the cylindrical boss with three views
[0060] Once subpart extraction and matching is complete, the remaining, nested features will be detected. First, any circle loop that has not been marked as subpart match is handled. For each circle, a search is made in the orthographic views for tangential reconstruction matches, followed by tapered reconstruction matches. This will include holes, bosses, tapered holes, tapered bosses, drill tip angles, and circular fillets/chamfers.
[0061] A final step for feature detection involves a means for the nested loops. Nested loops are basically internal loops that are completely inside the outer boundary of the input views (i.e. attempts to find matches use the atomic loops). At each of the previous steps, entities are marked as ‘used’ once they have been associated with a feature (subpart or circular feature). The unused entities become the focal point of the nested loops means which eliminates unnecessary processing time and reduces the number of invalid detected features.
[0062] Nested loops are formed in a view when loops corresponding to two or more features overlap each other. The main purpose of this means is to identify the individual features in the nested loops by matching loops in available 2D views. A
[0063] A later stage is the validation of the combined loops. In this step, the projection of the combined loop from one view is mapped on to the other view and checked for a match. The projection could be along the horizontal or vertical axis depending on the views under test. If any projection did not give a match, the loop corresponding to that projection would be removed from the combination. After the profile is validated, it is taken from one view while the height would be taken from the other view.
[0064] Upon completion of this phase, an array of matched loops which represent one or more features in different orthographic views are encountered resulting in a single matched loop that can be viewed as a back-projected representation of a 3D feature. It is not necessary to have all views represented for each feature. This allows for future expansion to additional views, in particular projected views.
[0065] Converting medium-to-complex 2D drawings with complete accuracy is difficult to achieve primarily because there may be multiple interpretations in matching feature loops in all orthographic views. Introducing human interaction at various stages of the conversion process would lead to better identification and interpretation of loop matches and would improve the percentage of drawings that can be successfully converted. As such, the present invention allows for a semi-automated approach, which provides a layer of user-interaction over the automatic software, and aids the automatic software in improving accuracy.
[0066] More specifically, the present invention introduces an application to perform 2D to 3D conversions that will allow the user control in the creation of the 3D model. This interactive process is a combination of the automated software and user controls. An initial stage consists of a feature detection step of the 2D to 3D conversion process. If the features selected are incorrect, or if one or more features are missed during the extraction process, the 3D model cannot be correctly created. A separate path is thus represented within software but is not developed as a separate application. This path can be linked in conditionally. In this manner, only one application will need to be maintained. Various tools enable the user to make selections via the desired CAD system.
[0067] The matched loops automatically detected by the software are presented one at a time to the user in the target CAD system. The user is then given the option to either accept the matched loops as such, reject them (if they are totally wrong, for example), or modify them (if minor flaws are uncovered, for example). When all of the loops are processed (either accepted, rejected or modified), the user also has the option of adding more loops, which, for example, may have been undetected by the automatic software. The conversion then proceeds to feature analysis and model build using these new matched loops.
[0068] Referring now to
[0069] Each feature (matched loop) goes through up to three different stages in the profile analysis step. If a feature is found to be a specific type during any of the three stages, subsequent test are ignored.
[0070] The first stage is a revolve test. This means will determine if the feature is any kind of revolve feature and includes holes, bosses, tapered holes/bosses, drill tip angles, and circular fillets/chamfers as well as traditional revolve cuts and joins. Initially, the means searches for a circle loop as one of the matched loops. If there are no circle loops, the software moves on to the next profile test. However, when a circle is found, the remaining loops are tested for valid revolves. If a valid revolve is not found, one half of the loop is randomly selected to be the revolve profile, but information is propagated to the user which indicates that the revolve feature has an error in the original 2D drawing. The revolve algorithm also detects circular fillets on holes and bosses. Once complete, a tree structure is created for the feature. Child trees are created on the returned tree for circular fillets.
[0071] The second stage is a circular boss test and involves a conditional algorithm means. Inputs from the initial dialog box determine whether this algorithm is executed. The algorithm determines if a feature, while not actually a circle, can be converted to a cylindrical boss with cuts. If one loop of the matched loops contains arcs that share a center point and radius, an algorithm is executed to test if the entire loop is within a circle of the same center point and radius. This test contains a simple Boolean XOR function to determine the possible cuts, followed by a test to see if all cuts are within the circle.
[0072] If the feature is eliminated from both tests above, a third means is executed which selects one loop (based on complexity) to be the extrusion profile, and converts any other non-rectangular loops to a series of cut features. Again, a simple Boolean XOR function is executed to determine possible cuts. This means further executes an additional test to determine possible chamfers and fillets on a profile. A feature tree is created with the matched loops and their associated relationships with each other.
[0073] After the profile analysis stage is complete, an array of feature trees exist that mostly contain single feature trees with a few multi-level trees containing fillet and/or chamfer child trees. The purpose of the feature relationship software is to determine the relationship between every pair of connecting features. This is accomplished by comparing the relationship between the two features' loops containing the same coordinate system (i.e. from the same view). Loop relationships include one loop inside the second loop, one loop inside or outside the second loop with a shared edge, one loop overlapping the second loop, or two equivalent loops. In the final case, the two features are tested to possibly eliminate one feature or to combine the two features. A combination of relationships is necessary for features to be related and one relation must be overlapping or contain a shared edge. Using the previous block
[0074] After the first two stages are completed, all features and their relationships to one another are available to begin building the 3D model. An initial step in the model creation process is to create a single tree (if possible) from the array of trees and their relationships. The root node, or root part, of the model is first determined. A feature with no ancestors is selected as the root node feature. Once the first feature is selected, the features are added to the tree via the descendent route until no more descendents can be added. If there are features remaining that have not been added to the model tree, an ancestor feature will be added, followed by a test for the inclusion of further descendent trees. This process, one ancestor followed by descendents, will continue until all possible features have been added. As each feature is added to the model tree, the first of the volume operators is set indicating whether the child (descendent) feature is the same or an opposite operation as its parent feature. In the event that a feature is missed, that feature will be added to the error file.
[0075] Once a single 3D model tree exists, it is necessary traverse the tree again setting the final volume operation flag to cut or join. A tree function (for example, a CascadeSet function) exists which traverses through the nodes in a top down manner, setting the volume operation to cut or join depending on the parent feature and the relationship operation.
[0076] Once the 3D model is complete with the volume operations, a tree function (for example, a PopulateFeatModel function) will create a 3D model of type FEAT
[0077] After a 3D model is created, a final step is executed which will combine 3D features. Recombination of features includes, two concentric connecting holes converted to counter-bore or countersink holes or a hole and a tapered hole being recombined to a hole with a drill tip angle.
[0078] Further information relating to the various features and embodiments of the present invention is available in Appendices A-D. More specifically, Appendix A describes an object-oriented analysis of three primary libraries (Geometry, Features, Geometry Network) in order to produce more robust classes. The data (attributes) associated with each of the classes, the relationships between the classes, and the classes that execute certain actions are determined. Appendix B describes multiple CAD-based applications including 2½-D editing and 3D-to-3D CAD exchanges. Since similar algorithms exist across multiple applications, libraries of related classes, their attributes and the methods (operations) that are performed on these classes are described. Appendix C describes an application to perform 2D to 3D conversions that will allow a user control in the creation of the 3D model.
[0079] Although an exemplary embodiment of the present invention has been illustrated in the accompanied drawings and described in the foregoing detailed description, it will be understood that the invention is not limited to the embodiments disclosed, but is capable of numerous rearrangements, modifications, and substitutions without departing from the spirit of the invention as set forth and defined by the following claims.