Method and system for converting mesh geometry into watertight boundary representation, and medium

Through a fully automatic method to embed and approximate boundary surfaces in generative design, a watertight B-Rep model is constructed, which solves the problem of surface accuracy loss in generative design conversion and improves design accuracy and manufacturing reliability.

CN118586223APending Publication Date: 2024-09-03AUTODESK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410584383.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-11-09
Filing Date
2019-05-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing generative design techniques can easily introduce surface accuracy losses when converting geometric structures into editable and watertight boundary representations, leading to manufacturing defects and part interference issues.

Method used

A fully automatic method is used to embed the input solid boundary surface of the generative design solver and approximate the boundary using globally smooth editable surfaces at other locations, forming a watertight B-Rep model by constructing T-spline surfaces or other editable smooth surfaces. , ensuring that the surface contacts the input entity without gaps.

Benefits of technology

The manual conversion process is avoided, the accurate representation of the generative design geometry is achieved, the design constraints are met, the time and cost in the manufacturing process are reduced, and the editability of the design and the accuracy of manufacturing are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586223A
    Figure CN118586223A
Patent Text Reader

Abstract

A method of converting a mesh geometry into a watertight boundary representation, comprising: obtaining a first three-dimensional model of an object, where the first three-dimensional model comprises a polygonal mesh; partitioning the polygonal mesh into a first part corresponding to an entity and a second part not corresponding to the entity, wherein the entity is in a boundary representation format; constructing an editable smooth surface for a second portion of the polygonal mesh; modifying a boundary of the editable smooth surface to contact the entity at a gapless contact curve that is homeomorphic to the boundary, thereby forming a modified smooth surface; the modified smooth surface is combined with the entity to form a second three-dimensional model of the object, wherein the second three-dimensional model includes the modified smooth surface in watertight contact with a portion of the entity in a boundary representation format at a gapless contact curve.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese invention patent application with the application date of May 28, 2019, application number 201980073804.5, invention name “Conversion of generative design geometry to editable and watertight boundary representation in computer-aided design” and the applicant being Autodesk, Inc.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application is a continuation of, and claims priority to, U.S. Application No. 17 / 229,320, filed on April 13, 2021, and issued on January 30, 2024 as U.S. Patent No. 11,886,165, entitled “CONVERSION OF GENERATIVE DESIGN GEOMETRY TO EDITABLE AND WATERTIGHT BOUNDARY REPRESENTATION IN COMPUTER AIDED DESIGN”, which was filed on May 28, 2019, and entitled “CONVERSION OF GENERATIVE DESIGN GEOMETRY TO EDITABLE AND WATERTIGHT BOUNDARY REPRESENTATION IN COMPUTER AIDED DESIGN”, which claims the benefit of priority of U.S. Provisional Application No. 62 / 758,053, filed on November 9, 2018, entitled “CONVERSION OF GENERATIVE DESIGN GEOMETRY TO EDITABLE AND WATERTIGHT BOUNDARY REPRESENTATION IN COMPUTER AIDED DESIGN”. The disclosure of the prior application is considered part of the disclosure of this application and is incorporated herein by reference. Background Art

[0004] This description relates to computer-aided design of physical structures that can be manufactured using additive manufacturing, subtractive manufacturing, and / or other manufacturing systems and techniques.

[0005] Computer-aided design (CAD) software has been developed and used to generate three-dimensional (3D) representations of objects, and computer-aided manufacturing (CAM) software has been developed and used to manufacture the physical structure of those objects, for example using computer numerical control (CNC) manufacturing techniques. Typically, CAD software uses a boundary representation (B-Rep) format to store a 3D representation of the geometry of the object being modeled. In a boundary representation model (B-Rep), the geometry is stored in the computer using smooth and precise mathematical surfaces, as opposed to the discrete and approximate surfaces of a mesh model.

[0006] In addition, CAD software has been designed to perform automatic generation of 3D geometry for a part or one or more parts in a larger system of parts to be manufactured (generative design). Such automatic generation of 3D geometry is typically limited to a design space specified by a user of the CAD software, and the 3D geometry generation is typically controlled by design goals and constraints, which may be defined by the user of the CAD software or another party and imported into the CAD software. Design goals (such as minimizing waste material or the weight of the designed part) can be used to drive the geometry generation process toward a better design. Design constraints include structural integrity constraints of individual parts (i.e., the requirement that the part must not fail under the expected structural load during the use of the part) and physical constraints imposed by the larger system (i.e., the requirement that the part does not interfere with another part in the system during use). In addition, the input to the generative design process may include a set of input entities (B-Rep inputs) that specify the boundary conditions of the generative design process, but many modern generative design solvers do not directly operate on the exact surface boundary representation of their input entities. Instead, the B-Rep is sampled and replaced with a volume representation (such as level sets or tetrahedral or hexahedral meshes), which is significantly more convenient and efficient for physical simulations and material synthesis computed by the solver. Summary of the invention

[0007] Due to the limitations of the target representation, the conversion of input solids into volumetric representation by generative design solvers introduces surface accuracy loss. Figure 2 Such an example is shown, where a generative mesh segment 200 is extracted from a level set 0 isosurface intended to represent a superimposed semi-transparent solid 205. The loss of accuracy is particularly noticeable near solid sharp edges 210 and holes 215. While this loss is negligible in the context of solver calculations, it generally prevents the output of generative design from being sufficiently accurate to represent the input solid surface geometry away from the organic material synthesized by the solver. Subsequently, when the solver output is integrated into a complete model assembly, these surface inaccuracies often cause problems such as part interference and manufacturing defects or anomalies. Figure 3Such an example of two versions 300, 320 of a model is shown. A rod 305, which has been designed to fit through a hole in an input solid 310, fits properly when assembled with a generative B-Rep according to the present disclosure, which can reuse the input geometry. In contrast, a general surface reconstruction 325 violates the generative constraints, causing interference 330 with the rod. Note that generative design geometry constraints can include solid B-Reps (such as input solid 310) and are placed in Optimize the domain to avoid interference with other parts in the CAD assembly (keep-out) and specify attachment points with other parts (keep-in).

[0008] To address these inaccuracies in generative design geometry, the fully automated method of the present disclosure converts a generative design into an editable, watertight B-Rep by utilizing a generative solver input and representation to: (1) embed the exact input solid boundary surfaces where the design is consistent with the input; (2) approximate the design boundaries at all other locations using globally smooth editable “organic” surfaces; and (3) join all surfaces to form the generative design output B-Rep. Figure 1 An overview example of the process is shown. An input solid 100 is provided to a generative design solver, which converts the input solid 100 into a level set representation and operates on this level set representation to automatically generate new geometry that connects the input geometry. The new geometry is extracted from the 0 isosurface of the level set representation to produce an extracted mesh 110, which is partitioned into an associative part 112 and an organic part 114, respectively. A T-spline surface 120 is constructed for the organic part 114, and the final output watertight B-Rep 130 is composed of the input solid 100 and the organic T-spline surface 120.

[0009] Note that the presently disclosed method is applicable to generative design that represents any combination of additive and subtractive materials and utilizes solver geometry representation. In addition, although the above examples reference T-spline surfaces 120, it should be understood that one or more different types of editable smooth surface representations may be used in corresponding implementations. For example, the surface 120 constructed for the organic portion 114 may be a non-uniform rational Catmull-Clark surface (T-NURCC) surface 120 with T-joints. Suitable variations of geometric formats that can be used for editable smooth surface representations may include T-NURCC, T-splines, LR B-splines, and / or layered B-splines. In addition, the initially constructed editable smooth surfaces 120 may be merged (where possible) to produce a simpler patch layout 125 before being synthesized with the input entity 100 to form the final output watertight B-Rep 130. For example, the patches of the initially constructed T-spline and / or T-NURCC surface 120 may be merged to generate the T-spline and / or T-NURCC surface 125, as shown in FIG. Figure 1 shown.

[0010] In general, one or more aspects of the subject matter described in this specification can be embodied in one or more methods for converting a mesh geometry into a watertight boundary representation, the method comprising: obtaining a first three-dimensional model of an object, wherein the first three-dimensional model comprises a polygonal mesh; partitioning the polygonal mesh into a first portion corresponding to one or more entities and a second portion not corresponding to the one or more entities, wherein the one or more entities are in a boundary representation format; constructing one or more editable smooth surfaces for the second portion of the polygonal mesh; modifying one or more boundaries of the one or more editable smooth surfaces to contact the one or more entities at one or more gapless contact curves that are homeomorphic to the one or more boundaries, thereby forming one or more modified smooth surfaces; and combining the one or more modified smooth surfaces with the one or more entities to form a second three-dimensional model of the object, wherein the second three-dimensional model comprises the one or more modified smooth surfaces in watertight contact with one or more portions of the one or more entities in the boundary representation format at the one or more gapless contact curves.

[0011] The one or more editable smooth surfaces are globally smooth in that their surface parameterization is smooth for the entire surface. This is in contrast to piecewise smooth (often simply referred to as smooth), which means that there are discontinuities in the surface parameterization, which can cause normal or curvature shape discontinuities. It should be appreciated that globally smooth surfaces are preferred for end users because they allow simpler and more natural editing, where smoothness remains continuous as the user performs edits. Therefore, the ability of the method to construct a globally smooth surface for the second portion of the polygonal mesh provides significant value in computer-aided design applications. In addition, the one or more constructed surfaces can fit tightly to the second portion of the mesh because the global smooth surface deviates from the mesh by no more than an approximation tolerance specified by the application, and the ability of the method to satisfy this constraint is also of significant value in computer-aided design applications.

[0012] Furthermore, the watertight and editable nature of the second three-dimensional model also provides significant value. Being watertight means that there are no gaps where the modified smooth surface and the global smooth surface contact the input entity. Ensuring that the contact curves between the constructed (and modified) surface and the input entity are gapless in the boundary representation format means that the input entity, the surface generated from the mesh of the generative design, and the contacts therebetween are all capable of further editing using standard computer-aided design and free-form modeling operations. This facilitates the use of the method within the context of existing workflows employed by typical users of computer-aided design applications.

[0013] This process of converting a generative design into a watertight B-Rep model consisting of the exact residual geometry of the input entity and editable (e.g., T-NURCC) surfaces avoids the need for a manual conversion process that relies on user skills. The process achieves this goal while being able to handle any suitable number of allowed and prohibited entities based on the generative design geometric constraints. In addition, the resulting watertight 3D model allows the generative design to be easily used in downstream workflows (e.g., setting assembly constraints, simulation analysis, performing parameter editing, etc.), which can speed up the manufacturing process and reduce time to market. Therefore, the disclosed systems and techniques enable engineers to quickly obtain usable CAD models of any number of generative designs calculated by a variety of algorithms, settings, and iterations.

[0014] The generative design process may employ a volume (e.g., tetrahedral or hexahedral) mesh method, a level set method, or an unknown or proprietary method to create a generative design of an object (provided that the distance representing the accuracy of the method is known). The polygonal mesh may be an original or converted triangle mesh that is consistent with the boundary of the generative design. The partitioning may include: allocating the triangle to the first portion based on association data determined according to generative design information associated with the accuracy of the generative design process. For example, for a generative design process that employs a level set method, the generative design information used may be grid cell inclusion information, and the method may check the input entity that intersects the grid cell. In general, the partitioning may include: allocating the triangle to the first portion based on association data determined for the vertices of the triangle, wherein some vertices are determined to be associated with one or more input entities based on calculations specific to the generative design process and the input entity type. In addition, when a triangle has at least one vertex that is not determined to be associated with an input entity, the triangle may be allocated to the second portion.

[0015] Each vertex of the polygonal mesh may be assigned to be associated with one or more entities based on processing a level set representation (when a level set method is used for the generative design process) or based on sampling (e.g., at the beginning of the generative design process, each vertex on the boundary of the volume mesh may be assigned to be associated with one or more input entities whose surfaces are sampled to calculate the vertex positions). In addition, the generative design information may be distance information, and the assigning may include assigning the triangle to the first portion based on a threshold distance between the vertices of the triangle and the one or more input entities, wherein the vertex of the triangle is considered to be associated with the input entity when the vertex is contained by the input entity or within the threshold distance of the surface of the input entity, and the threshold distance corresponds to the discretization accuracy of the representation of the triangular mesh of the generative design created by the generative design process, even when the details of how the generative design process operates are unknown, but the accuracy of the generative design process is known. Thus, each vertex may be assigned to be associated with one or more entities that contain the vertex within a distance threshold from the boundary of the entity, wherein the distance threshold is equal to the known accuracy of the generative design process.

[0016] The partitioning includes: checking for any non-manifold boundary vertices that (i) are located on the boundary between the first part and the second part and (ii) connect more than two boundary edges located on the boundary between the first part and the second part; reallocating one or more associated triangles including such non-manifold boundary vertices from the first part to the second part; and iteratively repeating the checking and the reallocation until no non-manifold boundary vertices remain. In addition, the partitioning may include: relaxing a boundary shape formed by boundary edges located on the boundary between the first part and the second part by at least partially shifting the boundary vertex positions toward their average values ​​to reduce angular and length deviations of the boundary shape.

[0017] The one or more editable smooth surfaces may be one or more T-spline surfaces, and the construction may include: adding regularization constraints to any boundary vertices with flat interior surface angles; applying boundary curve tangent direction propagation along boundary edges located on the boundary between the first part and the second part; applying a global continuous mapping calculation method that aligns with the principal curvature in the anisotropic region, scales according to the local curvature, and quantizes to obtain a quadrilateral partition of the mapped image; applying global mapping relaxation to improve the smoothness of the global quadrilateral partition; and applying a global T-spline surface approximation method that includes an approximation error of the second part of the mesh. Applying the global T-spline surface approximation method may specifically involve: including an approximation error of the second part of the mesh at the boundary between the two parts of the mesh within an approximation tolerance specified by the application.

[0018] The modification may include pulling at least one boundary of the one or more editable smooth surfaces toward at least one of the one or more input entities (including pulling the boundary into the interior of the space contained by the input entity) by applying a gradient descent method to a distance function of the input entity evaluated for the pulled boundary; setting a safety tolerance value for the modification based on an accuracy limit of: (i) an intersection algorithm employed by the modification and / or (ii) a representation of the triangular mesh of the generative design created by the generative design process; and iteratively adjusting the safety tolerance value to ensure that the one or more contact curves of the one or more modified smooth surfaces with the one or more input entities are homeomorphic to the unmodified boundary. The combining may include using Boolean operations that work on solids and oriented sheets, or using cellular modeling techniques.

[0019] The computer-aided design program may include two or more programs operating in cooperation on two or more separate computer processors. The method may also include: providing the second three-dimensional model by the computer-aided design program for use in manufacturing a physical structure corresponding to the object using one or more computer-controlled manufacturing systems. The providing may include: saving the second three-dimensional model to a permanent storage device for use in manufacturing the physical structure corresponding to the object using the one or more computer-controlled manufacturing systems. The one or more computer-controlled manufacturing systems may include an additive manufacturing machine, and the providing may include: using the second three-dimensional model to generate a tool path description for the additive manufacturing machine; and using the tool path description generated for the additive manufacturing machine to use the additive manufacturing machine to manufacture at least a portion of the physical structure corresponding to the object.

[0020] One or more other aspects of the subject matter described in this specification may be embodied in one or more systems, the one or more systems comprising: a non-transitory storage medium having instructions of a computer-aided design program stored thereon; and one or more data processing devices, the one or more data processing devices being capable of executing the instructions of the computer-aided design program to perform any of the methods described. The one or more systems may include an additive manufacturing machine, wherein the one or more data processing devices are capable of executing the instructions of the computer-aided design program to generate a tool path description for the additive manufacturing machine based on the second three-dimensional model, and use the tool path description to manufacture at least a portion of the physical structure corresponding to the object using the additive manufacturing machine. In addition, one or more aspects of the subject matter described in this specification may be embodied in one or more non-transitory computer-readable media encoding a computer-aided design program, the computer-aided design program being capable of operating to cause one or more data processing devices to perform any of the methods described.

[0021] Specific embodiments of the subject matter described in this specification may be implemented to achieve one or more of the following advantages. Rather than using a specialized solver that directly processes an input solid B-Rep and outputs a restricted type of B-Rep geometry (e.g., a lattice structure) rather than a mesh, a more diverse set of generative design solvers that produce mesh outputs may be used, which provides the ability to generate more varied and usable shapes optimized for arbitrary physical criteria. In addition, violations of permissive and prohibited constraints, typically resulting from converting a generative design mesh to an unrestricted global approximation scheme of a globally smooth subdivision or spline surface, may be avoided, and the need to repair such violations with separately applied Boolean operations, which are unreliable and produce poor quality results, may be avoided. Thus, new and unique geometries for generative design may be generated to meet a wide variety of design requirements without user input or editing, wherein the new geometries are smoothly connected to the input geometries provided to the generative design process.

[0022] Converting a generative design mesh to an editable, watertight B-Rep using the systems and techniques described herein can facilitate downstream editing and processing (e.g., fillet or shell operations) of the generatively designed 3D model, where such downstream editing and processing typically requires precise mathematical geometry and cannot work effectively with the generative design mesh that has been embedded via the B-Rep. Furthermore, the conversion process can be fully automatic, as no manual work is required to align the smoothed surfaces of the input solid with the processed mesh geometry to produce a geometric result that accurately represents the residual input solid surfaces in the generative design, even the complex, feature-rich shapes that typically appear in generative designs. This saves time in the design process, thereby facilitating the use of generative design techniques by reducing the cost of creating a final manufacturable design.

[0023] The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the invention will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 An overview example showing the generative design process that produces an editable watertight B-Rep.

[0025] Figure 2 An example showing how a generative design solver can introduce surface accuracy loss due to limitations in the target representation.

[0026] Figure 3 Another example of this loss of surface accuracy and how this can cause part interference is shown.

[0027] Figure 4An overview example of a simple generative model that produces the final generative B-Rep is shown.

[0028] Figure 5A , Figure 5B and Figure 5C An overview example of 2D level set associations from allowed, forbidden, and seed entities is shown.

[0029] Figure 6 Shows the Figure 1 Example of a mesh subset constructed from an input entity.

[0030] Figure 7 An example showing how to eliminate non-manifold boundary vertices.

[0031] Figure 8 Shows an example of boundary relaxation that produces high-quality contact geometry between an organic surface and an input solid.

[0032] Fig. 9 An example of a high-generic (88 and 54) generative design B-Rep generated using the fully automatic method of the present disclosure is shown.

[0033] Fig.10 Shows an example of a boundary vertex with a flat interior surface angle.

[0034] Fig.11 Shows an example of boundary relaxation after adding regularization constraints to all boundary vertices with flat interior surface corners and applying boundary tangent direction propagation.

[0035] Fig.12 An example of an organic boundary surface before and after a pull modification that produces a homeomorphic curve is shown.

[0036] Fig.13 An example of a process for constructing a watertight B-Rep is shown.

[0037] Fig.14 is a schematic diagram of a data processing system including a data processing device.

[0038] Fig.15 An example of a process for converting mesh geometry into a watertight boundary representation of an object to be manufactured is shown.

[0039] Fig.16 An example of a process for partitioning mesh geometry generated by topology optimization of a CAD solid model, where non-manifold boundary vertices are eliminated, is shown.

[0040] Fig.17An example of a process of partitioning mesh geometry, constructing one or more editable smooth surfaces for organic portions of the mesh geometry, and modifying one or more boundaries of the one or more editable smooth surfaces is shown.

[0041] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION

[0042] 1-Overview

[0043] The fully automatic method disclosed herein can be used to generate a solver input entity B-Rep (referred to as "input entity" or represented as {S i}) and represents generative design The output grid As input. Link to {S i}, an intermediate solver representation (e.g., level set or volume grid) may also be processed. Alternatively, a solver representation accuracy error (e.g., level set voxel grid edge length) may be supplied instead.

[0044] {S i}Specifies the subspace of the optimization domain. represents the solid boundary surface, and Indicates the interior of the entity boundary. i} can be of the following types: Permissive (S i is fully encompassed by generative design, i.e. Prohibition In generative design outside; Overlapping) or seed type (S i Fully or partially in generative design within).

[0045] Overlapping input entities of the same type are merged, so without loss of generality, for each i, j of the same type, The union of all input entities (i.e., regardless of type) is denoted by It is close A closed 2-manifold grid, where These are mesh vertices, edges, and triangles, respectively. If a non-triangular mesh is provided, quadrilaterals and general polygons can be triangulated to form a triangular mesh.

[0046] Some embodiments of the fully automatic method of the present disclosure work as follows: (1) partitioning the generative design mesh into two subsets (regions): an associated subset and an organic subset, wherein the associated subset (region) corresponds to the input solid surface and the organic subset (region) corresponds to the generative synthetic surface; (2) approximating the organic subset (region) with a globally smooth and tightly fitting editable "organic" surface; and (3) constructing a watertight B-Rep by combining the input surface and the organic surface.

[0047] Figure 4 An overview example of a simple generative model that produces a final generative B-Rep is shown. An input entity 400 and an input generative mesh 405 are received, and the input generative mesh 405 is partitioned into mesh partitions 410. This may involve To input B-Rep{S i} construction and association relationship And use To determine In the corresponding S i One or more organic T-spline surfaces 415 (or another surface type in a suitable editable / locally refinable smooth surface format (e.g., T-NURCC)) are generated for the organic portion 412 of the mesh partition 410. This may involve approximating the organic region 412 of the partitioned mesh 410 by relaxing the boundary between the organic region and the associated region, computing the intersection, size, and field-guided quadrilateral parameterization of the organic region, and constructing a smooth surface {0 i The final generative B-Rep model 420 is composed of one or more constructed organic smooth surfaces 415 and the input solid 400. This may involve pulling The interior of i}'s boundaries, construction {O i} and {S i} and the contact curve between {O i} and {S i}Constitute a watertight B-Rep.

[0048] 2- Grid Partitioning

[0049] Output mesh from a generative design solver Partitioned into a pair of disjoint triangle subsets in express The input entity B-Rep in Represents the boundary surfaces of the "organic" material synthesized by the solver. Note that represents the union of disjoint sets. To compute this partition, the solver geometry representation is used to construct the association relationship in Yes i}, and A mesh can be mapped to zero, one, or multiple input entities.

[0050] 2.1- Linked Data

[0051] Constructs association data ("associations") that link the generated mesh to the input entities. Associations are stored as one or more attributes for each mesh vertex (considered to represent an input entity surface). A vertex can be associated with multiple input entities.

[0052] Notably, the representative vertices need not be exactly placed on one or more associated input surfaces. The disclosed method performs robustly when vertex positions are shifted within the generative solver B-Rep discretization accuracy (eg, level set mesh edge size).

[0053] The construction of association data varies depending on how the solver represents the input entities internally. We present association extraction methods for two common solver representations: level sets and volume meshes. Furthermore, we describe an algorithm based on backoff distances that can be applied to any generated output mesh given an association distance.

[0054] 2.1.1-Level Set Correlation

[0055] Level sets are one of the most popular contemporary representations for generative design, used both in research (Van Dijk, NP, Maute, K., Langelaar, M., and Van Keulen, F., Level-set methods for structural topology optimization: a review, Structural and Multidisciplinary Optimization 48, 3, 437-472, 2013) and in the CAD industry (Autodesk Dreamcatcher, Project Dreamcatcher, Autodesk Research, https: / / autodeskresearch.com / projects / dreamcatcher). Solver output The 0 isosurface is approximated by using the following contour algorithm to extract (such as Lorensen, WE and Cline, HE Marching Cubes: a High Resolution 3D Surface Construction Algorithm, Proc. of ACM SIGGRAPH 87, 163-170, 1987; Kobbelt, L., Botsch, M., Schwanecke, U. and Seidel, H.-P. Feature Sensitive Surface Extraction from Volume Data. Proc. of ACM SIGGRAPH 01, 57-66, 2001; Ju, T., Lassasso, F., Schaefer, S. and Warren, J. Dual Contouring of Hermite Data, Proc. of ACM SIGGRAPH 02, 339-346, 2002), wherein is a level set representation of generative design. Each grid vertex position is computed by combining the corner positions of the level set grid cells that contain the vertex.

[0056] The mesh vertex associations are constructed as the union of the grid cell corner associations as follows: (1) For each grid point g k The association set The "solid point" test uses the standard ray-surface intersection counting algorithm (Chen, M. and Townsend, T., Efficient and Consistent Algorithms for Determining the Containment of Points in Polygons and Polyhedra, EG 1987-Technical Papers, Eurographics Association, 1987). For efficiency, only the grid points involved in grid extraction (i.e., those with The corner points of the narrow bands of intersecting cells); (2) If for the seed S i for Then k The surrounding volume has been changed from Erosion, then set in YesS i The “erosion” subset of The grid cell G j Each V extracted i, constructing the association set by merging the associations of the cell corners

[0057] Figure 5A , Figure 5B and Figure 5C An example of a 2D level set association from three input entities {A, B, C} is shown: an allowed entity 505 (represented by dashed lines), a seed entity 510 (represented by dotted lines), and a prohibited entity 515 (represented by double dotted lines). The association attributes are assigned to the grid points on or within the entities, such as Figure 5A As shown. The solver adds organic material (O) and reduces seed-type solid material (E), as shown Figure 5B The grid points are shown in the figure (the grid is represented by dotted lines). The grid vertex attributes are Figure 5C The vertices extracted from each grid cell are propagated at 520 in FIG. 5 (the solid lines represent the boundaries of the solver output, where the thicker solid lines correspond to the added organic material). Note that the vertices extracted from the purely additive organic cells have no associated attributes.

[0058] 2.1.2-Volume Grid Association

[0059] Volume meshes (e.g., tetrahedral and hexahedral meshes) are another commonly used generative design representation, especially popular in topology optimization applications (Brackett, D., Ashcroft, I., and Hague, R., Topology optimization for additive manufacturing, Proceedings of the solid freeform fabrication symposium, Austin, TX, 348-362, 2011; Chen, X., Peng, D., and Gao, S., SVM-Based Topological Optimization of Tetrahedral Meshes, Proceedings of the 21st International Meshing Roundtable, Springer Berlin Heidelberg, Berlin, Heidelberg, 211-224, 2013). Extracting related data is easy because make It is the union of the input allowed entities and the seed entities. is through Initialize with piecewise linear sampling of ). Therefore, initially During initialization, set The associated attribute is in To be sampled to obtain V i For all vertices that have not been eroded or added by the solver, these attributes are in The generative optimization period persists and is based on the final recover.

[0060] 2.1.3-Distance association

[0061] The provided generative design may not be based on volume optimization, or the internal geometry representation may be unavailable or proprietary. In such cases, the association data may be constructed given a distance d>0, which represents the accuracy tolerance of the underlying solver representation.

[0062] In such cases, the associated data is constructed as follows: and Calculate D j (V i ), where D j ()yes The signed distance function for p∈S j , D j (p)≤0. Next, set (i.e., within d of its surface, V i ). If for the seed S j , Then set or For big and ||{S i}|, then it is used for neighbor search The constraint hierarchy can be pre-computed to improve efficiency (Ehmann, S. A. and Lin, M. C., Accurate and Fast Proximity Queries Between Polyhedra Using Convex Surface Decomposition, Computer Graphics Forum 20, 3, 2001; Alliez, P., Tayeb, S. and Wormser, 2018, 3D Fast Intersection and Distance Computation, CGAL User and Reference Manual, CGAL Editorial Board. 2018; Siemens, Collision Detection Manager (D-Cubed CDM) - Siemens PLM Software, https: / / www.plm.automation.siemens.com / en / products / open / d-cubed / cdm / index.shtml).

[0063] 2.2- Partitioning

[0064] The associated data is expanded for a mesh triangle as follows: if all three vertices T of a triangle i = {V i , V j , V k} is associated with one or more entities, then a triangle association is constructed Otherwise, set It is worth noting that if a triangle has at least one vertex that is organic, the entire triangle is considered organic even if another vertex is associated with a solid.

[0065] According to the triangle association, construct the corresponding A subset of the grid. Figure 6 Shows the Figure 1 An example of a mesh subset 600 constructed from an input entity 100. It is worth noting that if but And if S i Consumption by organic materials, then Next, associate Partial and organic Parts are constructed to complete the partition

[0066] 2.3-Organic components

[0067] If a pair of triangles T i and T j Shared Edge E k =T i ∩T j , then they are edge-connected. Minimum partition Elements The subset of disjoint edge paths is called This partition is simply computed by “flood-filling” with edge connections.

[0068] 3-Organic Boundaries

[0069] Is separation and Therefore, is called an organic boundary, and its elements are called organic boundary edges, or just boundary edges: is closed by definition, so this shorthand notation is not ambiguous.

[0070] 3.1-Boundary Vertices

[0071] If the two edges E i and E j Shared Vertex V k =E i ∩E j , then they are connected. If Then V k is called a boundary. Most boundary vertices connect a single pair of boundary edges and are called a 2-manifold. However, sometimes there are vertices V k Connect multiple pairs of boundary edges (i.e. V k Such vertices introduce complexity in downstream processing, which should be addressed through special case handling.

[0072] Figure 7 An example is shown of how to eliminate non-manifold boundary vertices 705; the configuration is fixed by slightly changing the partitioning to produce only manifold vertices 710. For all non-manifold vertices {V k}, all associated triangles Reassign to {V k} is no longer a boundary, but the organic part partition should now be recalculated Because the reallocated triangles are New edge connections are introduced into , which connect the previously disconnected subsets. This process can be iterated until all boundary vertices become 2-manifolds. Typically, only a few iterations are required to complete the process. Furthermore, since the entire mesh is eventually redistributed to the organic region, convergence is also ensured for pathological input data.

[0073] 3.2-Boundary curve

[0074] Minimum organic boundary partitioning among disjoint subsets considering path connections Elements To calculate Use any unprocessed border edges as seeds to trace vertex connections. When the traced edge sequence is closed, the algorithm will complete the current subset. This construction shows represents a closed piecewise linear curve and is called a partition The boundary curve.

[0075] 3.3 Boundary Relaxation

[0076] Next, as a prerequisite for further processing, the boundary curves can be relaxed 's shape to reduce the roughness and length difference between adjacent boundary edges. This step is very important to obtain high-quality, simpler quad graphs, which in turn leads to improved editability of the output organic surface.

[0077] The unrestricted version of piecewise linear relaxation is well known as curve smoothing (Chaikin, GM, An algorithm for high speed curve generation, Computer Graphics and Image Processing 20, 3, 346-349, 1974; Taubin, G., A signal processing approach to fair surface design, Proc. of ACM SIGGRAPH 95, 351-358, 1995). However, to avoid shape shrinkage caused by such algorithms, curve relaxation is restricted to The surface is then re-meshed and smoothed as follows:

[0078] (1) Adaptively The surrounding small triangle channels are remeshed to reduce the difference in length of adjacent boundary edges. A channel may include all triangles in the two ring neighborhoods of the boundary vertex, but alternative definitions may also be applicable. Remeshing is performed by applying a curvature adaptive algorithm (e.g., as described in Alliez, P., Ucelli, G., Gotsman, C., and Attene, M., Recent Advances in Remeshing of Surfaces, 2005) and refining adjacent mesh triangles to accommodate the changes.

[0079] (2) Smoothing by applying a surface constraint curve smoothing algorithm (e.g., as described in U.S. Publication No. 2013 / 0300735) The algorithm iteratively reduces the angular and length deviations of the boundary curve by shifting the boundary vertex positions towards their mean values.

[0080] Note that the remeshing step is not strictly required, but it can produce better relaxation results, mainly because the improved mesh sampling significantly reduces the difference in lengths of adjacent boundary edges.

[0081] Figure 8 An example of boundary relaxation that produces high quality contact geometry between an organic surface and an input entity is shown. The input mesh 805 before relaxation has high curvature organic boundary segments 810. The high curvature organic boundary segments 815 after relaxation have reduced adjacent boundary edge length differences. Finally, the input entity 800 is shown with an organic surface 820 (e.g., a T-spline surface) constructed for the relaxed input mesh 805.

[0082] 4-Organic Surface

[0083] Next, a set of editable smooth surfaces are presented. i} structure, each organic component Due to the fully automatic method of the disclosed subject matter, each component The same applies, so the component index i is omitted to simplify the description.

[0084] The editable surface representation used may be T-splines and / or T-NURCC (Sederberg, TW, Zheng, J., Bakenov, A., and Nasri, A., T-splines and T-NURCCs, Proc. of ACM SIGGRAPH 03, 477-484, 2003). T-splines provide C-based coverage of the represented shape. 2 Continuous quadrilateral patch {Q i} and a conforming quadrilateral control grid that fully defines the surface geometry Mapping atlases can be used to apply common CAD algorithms such as surface-surface intersection, while quadrilateral control meshing is one of the most popular organic shape editing tools employed by industrial designers.

[0085] T-splines can be used to insert local T-junctions without reparameterization (Sederberg, TW, Cardon, DL, Finnigan, GT, North, NS, Zheng, J., and Lyche, T., T-splinesimplification and local refinement, Proc. of ACM SIGGRAPH 04, 276-283, 2004). The deviation can be effectively reduced by adding additional degrees of freedom only when needed (Li, W.-C., Ray, N. and Levy, B., Automatic and Interactive Mesh to T-Spline Conversion, Proc. of the Symposium on Geometry Processing, 191-200, 2006). For applications that do not require T-splines, the output surface can be converted to G-spline using a patch-by-patch approximation. 1 / G 2 Continuous Non-Uniform Rational Basis Spline (NURBS) networks, or converted to C by expanding all T-junctions 2 Catmull-Clark subdivision surfaces (Catmull, E. and Clark, J., Recursively generated B-spline surfaces on arbitrary topological meshes, Computer Aided Design 10, 6, 350-355, 1978).

[0086] T-NURCC is also available and provides the following usable properties: (1) The surface is defined by a quadrilateral control mesh, which is a very popular shape editing tool adopted by industry designers; (2) Local refinement (Sederberg, TW, Cardon, DL, Finnigan, GT, North, NS, Zheng, J., and Lyche, T., T-splinesimplification and local refinement, Proc. of ACM SIGGRAPH 04, 276–283, 2004) achieves error reduction by adding control points only when needed (Li, W.-C., Ray, N., and Levy, B., Automatic and Interactive Mesh to T-Spline Conversion, Proc. of the Symposium on GeometryProcessing, 191–200, 2006; Wang, Y. and Zheng, J., Adaptive T-spline surfaceapproximation of triangular meshes, 6th International Conference on Information, Communications and Signal Processing, ICICS, IEEE, 1–5, 2007); (3) General CAD algorithms (e.g., intersection, offset) can use the geometry as C 2 Atlas access of continuous quadrilateral patches; and (4) surfaces can be easily converted to G 1 Continuous NURBS networks for export to traditional CAD formats.

[0087] To obtain an organically shaped quad atlas (or quad partitions) suitable for defining a meaningfully aligned control grid (e.g., by fitting a T-spline surface), a quantized global parameterization such as an integer grid map (IGM) can be computed (Bommes, D., Campen, M., Ebke, H.-C., Alliez, P., and Kobbelt, L., Integer-grid maps for reliable quad meshing, ACM Transactions on Graphics 32, 4, 1, 2013; Campen, M., Bommes, D., and Kobbelt, L., Quantized global parametrization, ACM Transactions on Graphics 34, 6, 1–12, 2015): This graph has the following important properties:

[0088] (1) There is no need to specify cutting networks for the highly organic forms that are often found in generative design. Fig. 9 Examples 900, 910 of high-generic (88 and 54) generative design B-Reps generated using the fully automatic method of the present disclosure are shown. ) Instead, only a small number of conic singularities are required (Ray, N., Li, W.C., Levy, B., Sheffer, A., and Alliez, P., Periodic Global Parameterization, ACM Trans. Graph., ACM, 1460–1485, 2006), which can be obtained from smoothed curvature tensor-aligned intersection fields (Bommes, D., Zimmer, H., and Kobbelt, L., Mixed-integer quadrangulation, ACM Transactions on Graphics 28, 2009).

[0089] (2) Mapping singular points are mapped to integer points, and the image boundary φ: Consists of integer contours, which allows extraction of quadrilateral partitions (Integer-grid maps for reliable quad meshing by Bommes, D., Campen, M., Ebke, H.-C., Alliez, P., and Kobbelt, L., ACM Transactions on Graphics 32, 4, 1, 2013).

[0090] (3) By computing the smoothed cross field, the edges of the quadrilateral mesh can be aligned along the principal curvature of the shape (Mixed-integer quadrangulation by Bommes, D., Zimmer, H., and Kobbelt, L., ACM Transactions on Graphics 28, 2009).

[0091] (4) By specifying an adaptive size field, shapes containing features with greatly varying sizes can be efficiently represented.

[0092] Equipped with φ: and its reciprocal φ -1 : Next, we present the organic T-spline surface fitting structure.

[0093] 4.1- Cross Field

[0094] Constructing organic T-spline surface fitting The first step is to specify the desired edge directions of the editable quadrilateral control mesh for the organic surface. As shown in Alliez, P., Cohen-Steiner, D., Devillers, O., Levy, B., and Desbrun, M., Anisotropic polygonal remeshing, Proc. of ACM SIGGRAPH 03, 485-493, 2003, edges sampled along the principal curvature directions (away from isotropic points) closely match the manually designed control mesh, provide the best approximation, naturally represent symmetries, and allow meaningful shape deformations when used as a surface editing tool. Therefore, following the established mixed-interval quadrangulation (MIQ) method (Bommes, D., Zimmer, H., and Kobbelt, L., Mixed-integer quadrangulation, ACM Transactions on Graphics 28, 2009; U.S. Patent Publication No. 2012 / 0029882), the edges sampled along the principal curvature directions (away from isotropic points) closely match the manually designed control mesh, provide the best approximation, naturally represent symmetries, and allow meaningful shape deformations when used as a surface editing tool. A global smoothed cross field that matches the principal curvature directions on the mesh (away from the isotropic region) to specify the desired edge directions for a quad mesh. Alternative curvature-aligned cross field calculation algorithms (e.g. F., Crane, K., Pinkall, U., and P.'s Globally optimal direction rields, ACM Transactions on Graphics 32, 2013) is also applicable at this stage. The curvature tensor on , using the method in "Restricted Delaunay triangulation and normal cycle" (Cohen-Steiner, D. and Morvan, J.-M., Restricted Delaunay triangulations and normal cycle, 19th Annu. ACM Sympos. Comput. Geom., 237-246, 2003), but other mesh curvature estimation methods may also be applicable (e.g., Meyer, M., Desbrun, M., P. and Barr, A. H., Discrete Differential-Geometry Operators for Triangulated 2-Manifolds, Visualization and Mathematics III, edited by H.-C. Hege and K. Polthier, Springer-Verlag, Heidelberg, 35-57, 2003; Cazals, F. and Pouget, M., Estimating differential quantities using polynomialfitting of osculating jets, Computer Aided Geometric Design 22, 121-146, 2005; Computing discrete shapeoperators on general meshes by Grinspun, E., Gingold, Y., Reisman, J., and Zorin, D., Computer Graphics Forum 25, 547-556, 2006).

[0095] The computed intersection field consists of a pair of orthogonal directions representing the desired quadrilateral edge alignment and contains a small number of singularities assigned to vertices where the field flow bifurcates. Since singularities disrupt the quadrilateral edge flow and thus affect the editability of O, some adjustments are made to reduce their The number of places.

[0096] First, for a "flat" inner surface angle A regularity constraint is added to all boundary vertices of to prevent the computation from placing singularities on them. Due to the boundary relaxation step performed in Section 3.3, the vertices that violate this condition are very few and scattered. Fig.10 An example of a boundary vertex 1005 having a flat interior surface angle is shown.

[0097] Secondly, along the The boundary curve tangent direction propagation is applied in small channels of , replacing the estimated principal curvature directions. This enforces the boundary structure by aligning the cross field with the boundary directions within the channel. The channel size is automatically set to match the expected local control mesh edge length.

[0098] Fig.11 An example of boundary relaxation after adding regular constraints to all boundary vertices with "flat" interior surface angles and applying boundary tangent direction propagation is shown. The relaxation on the mesh boundary 1105 achieves regular constraints on almost the entire organic boundary without causing mapping deformation, resulting in a very regular and easily editable organic surface boundary 1110. These modifications produce a simple, as regular as possible quadrilateral structure along the control mesh boundary, thereby facilitating the construction of O and {S i} to achieve improved results when contacting curves between them.

[0099] 4.2-Size Field

[0100] Generative shapes are often composed of features of varying sizes. To avoid wasted control mesh complexity on large features and improve editability, methods can be applied to compute anisotropic adaptive size fields that specify the control mesh edge length size to cover small enough features and avoid over-representation of larger features. Anisotropic size fields can be specified along the cross-field direction. The desired edge length (d i,u , d i,v ) It can be set according to equation (6) in Alliez, P., Cohen-Steiner, D., Devillers, O., Levy, B. and Desbrun, M., Anisotropic polygonal remeshing, Proc. of ACM SIGGRAPH 03, 485-493, 2003:

[0101]

[0102] Among them (κ i,u , κ i,v ) is T i The estimated curvature along the cross-field direction is obtained by ensuring that ∈ t <2 / max i K i,t Automatically select (∈ u ,∈ v ) to maintain the minimum shape features.

[0103] 4.3-Parameterization

[0104] Applying the injective global parameterization method from Bommes, D., Campen, M., Ebke, H.-C., Alliez, P., and Kobbelt, L. Integer-grid maps for reliable quad meshing, ACM Transactions on Graphics 32, 4, 1, 2013 modified to use the quantization algorithm from Campen, M., Bommes, D., and Kobbelt, L. Quantized globalparametrization, ACM Transactions on Graphics 34, 6, 1-12, 2015, we obtain a quantized global continuous map φ that conforms to the previously computed cross field and size field: The properties of this map allow it to be directly defined on the quadrilateral atlas The parametric T-spline surface O on the surface.

[0105] Compute the inverse mapping φ -1 : and relax it to improve the singularity position and reduce distortion; φ -1 Used to construct bijective correspondences that map organic surfaces to organic meshes via Ω

[0106] 4.4-Approximation

[0107] By providing η, the general T-spline approximation method can be applied to calculate the surface fit Depending on the application requirements, different strategies for how to specify the approximation problem are available depending on the specific conditions. (1) If a simpler and easier editing of organic surfaces is preferred, then the linear approximation problem can be solved without restrictions on the maximum deviation. The problem is used to calculate the control mesh vertex positions. In some implementations, O is also represented as a Catmull-Clark surface. (2) If we find The nonlinear limit problem with tolerance δ>0 is solved by a close fit of In this case, the approximation algorithm can be The approximation is interleaved with T-junction refinement, where In some implementations, the output is an adaptively refined T-NURCC surface (e.g., using a method similar to that in Li, W.-C., Ray, N., and Levy, B., Automatic and Interactive Mesh to T-Spline Conversion, Proc. of the Symposium on Geometry Processing, 191-200, 2006). Approximate smooth surfaces within the accuracy limit of the generative solver, so set δ accordingly (e.g., ). (3) May be requested to ensure surface accuracy near the junctions with the input entities. In this case, the boundary control points are solved And by solving The fitting in the interior is completed. In some implementations, an adaptively refined T-NURCC surface is calculated, where the T-NURCC surface closely approximates the organic boundary (solving ), while the interior is more loosely approximated (solving ) as a trade-off between surface complexity and accuracy. For more details on such approximation methods, see U.S. Patent Application No. 16 / 388,771, filed on April 18, 2019, published as U.S. Patent Publication No. 2020-0150624 on May 14, 2020, entitled “CONVERSION OF MESH GEOMETRY TO WATERTIGHTBOUNDARY REPRESENTATION,” and issued as U.S. Patent No. 11,016,470 on May 25, 2021, which is incorporated herein by reference.

[0108] 5-Boundary contact

[0109] In order to make the composed output B-Rep watertight, the organic surface boundary Should be included in the volume In Therefore, for organic surface boundaries {O i,j Apply pull modification to construct the corresponding B-Rep contact curve This ensures a successful result for subsequent watertight B-Rep composing. This is true for all organic surface boundary curves are the same, so the index pair i, j is omitted.

[0110] Fig.12An example of an organic boundary surface 1200 is shown before and after a pull modification that produces a contact curve that is homeomorphic to the corresponding boundary curve. Generative design with lower sampling accuracy produces a large visible gap 1205 between the boundary organic surface 1200 and the contact input entity 1210. A pull algorithm is applied to the organic surface 1200 to remove the gap, as shown at 1215. The intersection curve is homeomorphic to the corresponding organic boundary curve, which allows a watertight output B-Rep 1220 to be constructed.

[0111] 5.1-Boundary correspondence

[0112] The bounds on η corresponding to the bijection constructed in Section 4.3 are Determine and and accordingly In some implementations, the entity S associated with the grid partition is determined based on the grid partition calculated in Section 2.2 above. The associated entities S. If multiple adjacent entities of different types are associated with the same boundary curve, then S is the union of these multiple adjacent entities. By construction, such entities have overlapping boundaries, and thus their union defines a valid path-connected entity. The corresponding organic surface boundary can be found from the IGM,

[0113] 5.2-Border Pull

[0114] Let D j ()for The signed distance, for p∈S, D(p)≤0; Being "pulled" to make where ξ<0 is suitable for ensuring the intersection and is the negative safety tolerance of the homeomorphism (see Section 5.3 below). hint Therefore the contact between S and O is watertight.

[0115] use NURBS parameterization c(t) = ∑ i c i B i (t), where {B i} is along the NURBS basis functions, and {c i} is the corresponding surface boundary control point, relative to {c i}Evaluate and

[0116]

[0117] Next, a gradient descent method is applied to make {c i} Along Move until

[0118] In order to efficiently evaluate D(c(t)), we use Hierarchical space parameterization of . Line search This can be achieved by maintaining a dense uniform sample grid {t j} to accelerate, thereby the basis function value {B i (t j )} for caching. Finally, in c i The projection point Unit normal Loosely approximating partial derivatives This works very well and significantly reduces computation time. i If it is located on a sharp edge or corner vertex, then n i Defined as i The average of the associated surface normals.

[0119] The pulling process usually converges quickly within a few iterations. Sometimes, the algorithm fails to pull a small segment of the boundary into S within a certain number of iterations (e.g., 100). In such cases, the segment can be corrected by bisecting the segment by local insertion (Sederberg, TW, Cardon, DL, Finnigan, GT, North, NS, Zheng, J. and Lyche, T., T-spline simplification and local refinement, Proc. of ACM SIGGRAPH 04, 276-283, 2004) of new boundary vertices and rerunning the pulling algorithm. The boundary pulling and refinement can be iterated before convergence; in most cases of this problem, only a few new vertices and refinement steps are required.

[0120] 5.3-Safety tolerance

[0121] In practice, due to the accuracy limitations of the underlying geometry representation, the surface-surface intersection implementation may not be able to compute the correct intersection result if the boundary of one surface almost coincides with the boundary of another surface. and Almost overlap, then the calculated intersection Can not Homeomorphism.

[0122] To handle such cases, the pull modification can be initially set to ξ = -1×(calculated by the underlying accuracy tolerance used by the intersection algorithm ). Once the pull is complete, calculate And check whether it is consistent with homeomorphism. If this is not the case, the safety tolerance can be increased by a scalar value (e.g., ξ→2ξ) and then the pull can be resumed. Applying this strategy iteratively allows robust handling of accuracy limits. As a performance optimization, if the underlying surface is known to be accuracy limited, it may be preferable to initialize |ξ| with a larger initial tolerance.

[0123] 5.4-Tolerance Modeling

[0124] Some B-Rep modeling kernels (e.g., Siemens Parasolid) support "tolerance" edges and vertices that represent contact curves and points of non-intersecting or partially intersecting surfaces (Jackson, DJ, Boundary representation modelling with local tolerances, Proceedings of the third ACM symposium on Solid modeling and applications-SMA'95, ACM Press, 247-254, 1995). If tolerance modeling capabilities are available, you can specify a distance μ>0 that represents the maximum supported tolerance limiting the gap between contact surfaces. Then, set ξ=μ>0 to pull the contact curve within the distance Sμ. Therefore, there is no need to calculate Because it is stipulated Where S μ ={p|D(p)≤μ}.

[0125] 5.5-Organic shape variation

[0126] The association construction in Section 2.1 implies that is contained within a distance d>0 from S, where d≈the generative solver accuracy. Therefore, if the fitting strategy in Section 4.4 is applied or Initially, Therefore, the shape variation introduced by the “pull” ~2d is within the design accuracy tolerance and does not affect the validity of the generative results.

[0127] If we solve the simpler problem in Section 4.4 instead Initial However, in reality, Close enough to S that the introduced variation is acceptable. The B-Rep modeling calculation is many orders of magnitude more accurate than the generative representation sampling tolerance. Therefore, |ξ|<<d, and the shape variation caused by the additional safety tolerance pull Can be ignored.

[0128] 6- Composition

[0129] Next, by combining the organic surfaces {O i} and the input entity {S i} to form a watertight B-Rep representing the generative design. Now the contact curves of all boundaries are constructed It is therefore only necessary to determine how much volume must be allocated for the output generative B-Rep.

[0130] Currently, the distinction between allowed and forbidden input entities has not been made. in and They are allowable, prohibited and seed input entities respectively.

[0131] 6.1-Surface Boolean Operations

[0132] and {O i} Can be combined using existing recognized Boolean operations that work on solid and oriented sheets (Granados, M., Hachenberger, P., Hert, S., Kettner, L., Mehlhorn, K., and Seel, M., Boolean Operations on 3D Selective Nef Complexes Data Structure, Algorithms, and Implementation, Algorithms-ESA 2003: 11th Annual European Symposium, Springer, 174-186, 2003; Hachenberger, P. and Kettner, L., 3D Boolean Operations on Nef Polyhedra, CGAL User and Reference Manual, CGAL Editorial Board, 2018). and {O i} includes the following steps: (1) i} into a single (non-intersecting) oriented sheet And (2) perform a Boolean merge Because by constructing Operation to form a valid entity ; (3) Subtract the prohibited entity to produce the desired output

[0133] 6.2-Cellular composition

[0134] Alternatively, cellular modeling techniques that are well established in the art can be used (Arnon, D., A cellular decomposition algorithm for semialgebraic sets, Springer, Berlin, Heidelberg, 301-315, 19). This has the following advantages: Boolean operations on oriented sheets and partial solids have always proven to be confusing and counterintuitive for both users and developers; and the cellular method produces an intermediate cellular decomposition of the generative design, which can be used to customize the results or diagnose failures due to bad inputs.

[0135] 6.2.1-Cell Creation

[0136] A "global" void-free solid U is constructed (e.g., as an extended bounding box or sphere) that strictly contains all input solids and organic surfaces Partitioned into organic surfaces {O i}、Solid surface and the overall surface Restricted path connecting entity cells Right now, By construction, there exists a global boundary A single cell U 0 : Discard U 0 , and the remaining cells will satisfy

[0137] 6.2.2-Cell classification

[0138] Fig.13 An example of a process for forming a watertight B-Rep is shown. Input entities 1300 and mesh partitions 1305 are used to control the combination of organic T-spline surfaces 1310 (or other surface types, such as T-NURCC surfaces) with input entities 1300 to form a watertight B-Rep 1315. Each U i is determined as the inside or outside of the final generated B-Rep. Then U i is classified as inside, otherwise it is outside. For all other cells, check the cell boundaries

[0139] Let {F ij}yes Surface partitioning, that is Each face F ij With a single surface O k or The subsets connected by the paths overlap: (1) If Then U i In its The empty set is classified as external, otherwise it is internal, because then (2) If And O k With F ij same direction, the cell is temporarily classified as inside; (3) If And O k With F ij (4) If both (2) and (3) are true, the cell is classified as internal and a diagnostic indicating invalid algorithm input is reported. (5) Otherwise, the temporary classification is adopted. Then, by merging all internal cells {U i} constitute the output generative entity B-Rep.

[0140] Fig.14 1 is a schematic diagram of a data processing system including a data processing device 1400 (also referred to as computer 1400) that can be programmed as a client or a server. Data processing device 1400 is connected to one or more computers 1490 via a network 1480. Fig.14 Only one computer is shown as data processing device 1400, but two or more computers may be used. Data processing device 1400 includes various software modules that can be distributed between the application layer and the operating system. These modules may include executable and / or interpretable software programs or libraries, including tools and services of one or more CAD programs 1404 that implement the systems and technologies described in this application. Therefore, one or more CAD programs 1404 convert the generative design grid into an editable and watertight B-Rep model, as described herein. In addition, one or more CAD programs 1404 may provide additional functions and features, including implementing a generative design process (e.g., a generative design solver that automatically creates a 3D model design using one or more level set methods) and / or computer-aided engineering (CAE), computer-aided manufacturing (CAM) and computer numerical control (CNC) programs for additive manufacturing and / or subtractive manufacturing. The number of software modules used may vary depending on the implementation. In addition, the software modules may be distributed on one or more data processing devices connected by one or more computer networks or other suitable communication networks.

[0141] The data processing device 1400 also includes hardware or firmware devices, including one or more processors 1412, one or more additional devices 1414, non-transitory computer-readable media 1416, communication interfaces 1418, and one or more user interface devices 1420. Each processor 1412 is capable of processing instructions for execution within the data processing device 1400. In some implementations, the processor 1412 is a single-threaded or multi-threaded processor. Each processor 1412 is capable of processing instructions stored on a computer-readable medium 1416 or a permanent storage device (such as, one of the additional devices 1414). The data processing device 1400 uses a communication interface 1418 to communicate with one or more computers 1490, for example, via a network 1480. Examples of the user interface device 1420 include a display, a camera, a speaker, a microphone, a tactile feedback device, a keyboard, a mouse, and a virtual reality (VR) and / or augmented reality (AR) device. The data processing device 1400 may store instructions for implementing operations associated with one or more procedures described herein on, for example, a computer-readable medium 1416 or one or more additional devices 1414, wherein the computer-readable medium 1416 or one or more additional devices 1414 also includes non-transitory computer-readable media, such as non-transitory computer-readable media 1416, for example, one or more of a hard disk device, an optical disk device, a magnetic tape device, and a solid-state memory device.

[0142] Fig.14 The system can be used to design and potentially manufacture physical structures, wherein one or more CAD programs 1404 implement three-dimensional (3D) modeling functionality and convert mesh geometry into a watertight boundary representation of the part to be manufactured. The mesh geometry can be obtained from different sources, but typically, the mesh geometry will be associated with one or more modeling entities in a boundary representation format. In some implementations, the system includes a 3D scanner (not shown) that scans a physical object to generate a mesh representation of the physical object, and the one or more CAD programs 1404 can use this input mesh to generate one or more modeling entities (e.g., B-Rep) by fitting regular geometric shapes to the mesh, and the one or more CAD programs 1404 can use the systems and techniques described herein to convert the remaining portions of the mesh (those portions that are too complex to be modeled using regular geometric shapes) into a boundary representation format (e.g., B-Rep) and connect them to the one or more modeling entities. In this example, the one or more CAD programs 1404 include scanning and modeling functionality.

[0143] In some implementations, one or more CAD programs 1404 implement one or more generative design processes that employ material or microstructural techniques and / or geometric or macrostructural techniques for generative design (e.g., solid isotropic material penalty (SIMP) and / or level set methods for topology optimization). One or more modeling entities may be generated in (or loaded into) one or more CAD programs using conventional 3D modeling techniques, and these modeling entities (also referred to as one or more input entities) may be used as one or more subspaces of the optimization domain of the generative design process. Thus, the generative design process may output a mesh representing an automatically generated geometric structure to be connected to the one or more modeling entities used as input. In addition, in various implementations, one or more CAD programs 1404 may implement physical simulation (finite element analysis (FEA) or other) and also manufacturing control functions.

[0144] As used herein, CAD refers to any suitable program for designing a physical structure that meets specified design requirements, regardless of whether the program is capable of interacting with and / or controlling a particular manufacturing device. Thus, one or more CAD programs 1404 may include one or more CAE programs, one or more CAM programs, and the like. One or more programs 1404 may be run locally on the computer 1400, remotely on a computer of one or more remote computer systems 1490 (e.g., one or more server systems of one or more third-party providers that can be accessed by the computer 1400 via a network 1480), or both locally and remotely. Thus, the CAD programs 1404 may be two or more programs operating in concert on two or more separate computer processors, because the programs 1404 operating locally at the computer 1400 may offload processing operations (e.g., mesh conversion, generative design, and / or physical simulation operations) “to the cloud” by causing one or more programs 1404 on one or more computers 1490 to perform the offloaded processing operations.

[0145] One or more CAD programs 1404 may present a user interface (UI) on a display device 1420 of the computer 1400, which may be operated using one or more input devices 1420 (e.g., a keyboard and a mouse) of the computer 1400. Various subsets of the input and output devices 1420 may be separate or integrated with each other and / or the computer 1400, such as in a tablet computer (e.g., a touch screen may be an input / output device 1420). In addition, the computer 1400 may include or be part of a VR or AR system. For example, the input / output device 1420 may include VR / AR input gloves and / or a VR / AR headset.

[0146] As noted above, one or more CAD programs 1404 implement 3D modeling functionality, meaning that a 3D model can be constructed using one or more CAD programs 1404. One or more CAD programs 1404 can implement physical simulations (locally and / or through remote procedure calls) to assist in building the 3D model. Physical simulations (such as FEA, computational fluid dynamics (CFD), acoustics / noise control, heat conduction, and / or computational injection molding simulations) are typically an integral component of CAD-based product development. One or more CAD programs 1404 can be used to build an accurate geometric description of a design model, while physical simulations achieve improved performance without the need for time-consuming physical testing.

[0147] One or more CAD programs 1404 may provide user interface elements that enable a user to specify inputs for one or more physical simulations, such as materials and load cases for one or more 3D models, wherein the load cases define the loads in different directions borne by the designed part during use of the part. Thus, a user may interact with the UI of one or more CAD programs 1404, including generating a complete mechanical problem definition for a part to be manufactured, in order to construct and modify one or more 3D models that may be stored in one or more 3D model documents. As will be appreciated, many possible 3D models may be designed using the systems and techniques described herein.

[0148] In addition, the one or more CAD programs 1404 may implement at least one generative design method (locally and / or through remote procedure calls) that enables the one or more CAD programs 1404 to automatically generate one or more portions of one or more 3D models (or the entire 3D model) based on design criteria, wherein the geometric design is iteratively optimized based on simulation feedback. Note that as used herein, "optimization" (or "optimal") does not mean that the best design among all possible designs is achieved in all cases, but rather that the best (or near-optimal) design is selected from a finite set of possible designs that can be generated within a specified time in view of available processing resources. The design criteria may be defined by a user or another party and imported into the one or more CAD programs 1404. For example, the design space, load cases, and design criteria may be obtained for an object modeled by the one or more CAD models 1404 by receiving user input, for example, through a UI on the display device 1420.

[0149] The 3D model includes one or more modeling entities used as input to a generative design process (e.g., a B-Rep as a retained volume input), from which a mesh is generated according to boundary conditions set by the input geometry. Various generative design processes can be used to optimize the shape and topology of the mesh portion of the 3D model. One or more input entities can be converted into a mesh geometry for use as input to a generative design process, and the mesh output from the generative design process can include mesh portions corresponding to the one or more input entities, and these portions can be removed to produce an organic mesh portion of the generated model. This mesh portion is then converted into an editable boundary representation format (e.g., B-Rep, T-spline, subdivision surface, and / or other computer 3D modeling formats) and connected to one or more modeling entities to form a watertight model of the generative design object.

[0150] In addition, in some implementations, one or more CAD programs 1404 implement manufacturing control functions. Once the user is satisfied with the 3D model, the 3D model can be stored as one or more 3D model documents and / or another representation used to generate the model (e.g., a .STL file for additive manufacturing). This can be done at the user's request or based on the user's request for another action (such as sending the 3D model to one or more additive manufacturing (AM) machines 1495 or other manufacturing machinery that can be directly connected to the computer 1400 or connected through the network 1480, as shown). This may involve post-processing performed on the local computer 1400 or cloud service to export the 3D model to an electronic document to be manufactured based on it. Note that an electronic document (which will be referred to as a document for simplicity) can be a file, but does not necessarily correspond to a file. A document can be stored in a portion of a file that holds other documents, in a single file dedicated to the document in question, or in multiple coordinated files.

[0151] In any case, one or more CAD programs 1404 may provide a document (with tool path instructions in an appropriate format) to an AM machine 1495 to produce a physical structure corresponding to a 3D model of a generative design. The AM machine 1495 may employ one or more additive manufacturing techniques, such as particle technology (e.g., powder bed fusion (PBF), selective laser sintering (SLS), and direct metal laser sintering (DMLS)), extrusion technology (e.g., fused deposition modeling (FDM) that may include metal deposition AM). In some cases, the AM machine 1495 directly builds the physical structure, and in some cases, the AM machine 1495 builds a mold for use in casting or forging the physical structure. In addition, the user may save or transfer the 3D model for later use. For example, one or more CAD programs 1404 may store one or more documents including the 3D model.

[0152] In some implementations, one or more CAD programs 1404 implement manufacturing control functions for one or more subtractive manufacturing (SM) machines 1495 (e.g., computer numerical control (CNC) milling machines, such as multi-axis multi-tool milling machines) to be used in a manufacturing process. For example, one or more CAD programs 1404 may generate CNC instructions for a machine tool system 1495 that includes multiple tools that can be used for various machining operations (e.g., solid carbide fillet tools of different sizes and shapes, and insert tools of different sizes that receive metal inserts to create different cutting surfaces). Thus, in some implementations, one or more CAD programs 1404 may provide corresponding documents (tool path instructions in an appropriately formatted format, such as CNC numerical control (NC) programs) to the SM machine 1495 for use in manufacturing physical structures using various cutting tools, etc.

[0153] In some implementations, the one or more CAD programs 1404 provide instructions to build the workpiece in a first manufacturing stage, for example, using direct AM and / or using forging and / or casting methods, and the one or more CAD programs 1404 also provide instructions to machine the workpiece (e.g., roughing and / or finishing operations) in a second manufacturing stage, for example, in a 3-axis CNC milling system, to form a finished structure. In general, a variety of different manufacturing systems and techniques may be employed, alone or in combination, to produce the final structure, and the one or more CAD programs 1404 may include suitable algorithms to generate tool path instructions for one or more of these various systems to manufacture a part that has been designed using the systems and techniques described in the present application.

[0154] Fig.15 An example of a process for converting a mesh geometry into a watertight boundary representation of an object to be manufactured is shown. A first 3D model of an object to be manufactured is obtained 1505, for example, by one or more CAD programs 1404. The first 3D model includes a polygonal mesh associated with one or more modeling entities, for example, a polygonal mesh generated by a generative design process that employs one or more input entities (in a boundary representation format) as one or more subspaces of an optimization domain of the generative design process. The generative design process may employ a volume mesh method to create a generative design of an object. The generative design process may employ a level set method to create a generative design of an object. In addition, obtaining 1505 may include: calling a generative design process to generate a generative design or receiving a generative design from another process or source.

[0155] The polygonal mesh may be a primitive or converted triangular mesh, but various types of mesh formats may be used, including tetrahedral or hexahedral meshes. Furthermore, while the present disclosure focuses on generative design where the polygonal mesh coincides with the boundary of the generative design, other implementations are possible. For example, one or more modeled entities in a boundary representation format (e.g., B-Rep) may be regular geometric shapes that have been fitted to a scanned mesh, rather than one or more modeled entities used as input to the generative design process.

[0156] Additionally, the process may optionally include a check 1510 (in the presence of two or more input entities for the generative design process) for detecting one or more gaps (between at least two of the two or more input entities) that are less than the accuracy of the generative design process. Generative design constraint settings sometimes contain very small gaps that are inadvertently left between adjacent input entities of typically different types (e.g., allowed and forbidden entities). In effect, the solver ignores these gaps and "merges" the entities in its representation. This is particularly evident in level set representations where reducing the voxel grid size to capture tiny gaps is often impractical. If If the object intersects such a gap, the pull algorithm (see, e.g., Section 5.2 above) cannot converge because it cannot be pulled into the gap. A small part of To address this issue, these small gaps can be detected 1510 in a generative setting, and the input B-Rep entity can be expanded 1515 to fill the gaps. This check and expansion is shown as occurring before obtaining 1505 the first 3D model, but in some implementations, this check and expansion can also be performed after obtaining 1505 the first 3D model.

[0157] The polygonal mesh is partitioned 1520, for example, by one or more CAD programs 1404, into a first portion associated with one or more input entities and a second portion not associated with the one or more input entities. Various methods for such partitioning are possible, such as described above in Section 2. In general, a particular polygon in the mesh need not be completely contained by the input entities to be considered associated with the one or more input entities, i.e., considered as a non-organic part of the mesh, and a particular polygon in the mesh need not be completely outside of all input entities to be considered not associated with the one or more input entities, i.e., considered as an organic part of the mesh.

[0158] In some implementations, partitioning 1520 involves assigning triangles of the mesh to the first (associated) portion based on association data determined according to generative design information associated with the accuracy of the generative design process. For example, the generative design information may include distance information, and assigning 1520 may include assigning triangles to the first (associated) portion based on a threshold distance between a vertex of the triangle and one or more input entities, wherein a vertex of a triangle is considered to be associated with an input entity when the vertex is contained by the input entity or is contained within a threshold distance of a surface of the input entity. The threshold distance corresponds to the accuracy of the discretization of the representation of the generative design created by the generative design process, for example, the threshold may be set based on the maximum distance between the level set grid cell size or the volume grid element discretization and the input B-Rep. Thus, the inherent ambiguity of the generative design output is taken into account in partitioning 1520. Additional detailed examples of partitioning 1520 are provided above in Sections 2.1, 2.2, and 2.3.

[0159] also, Fig.16 An example of a process for partitioning mesh geometry generated by topology optimization of a CAD solid model, in which non-manifold boundary vertices are eliminated, is shown. The process begins by examining triangles of the mesh to assign them to a first (non-organic) part of the mesh or a second (organic) part of the mesh. The first part of the mesh is "non-organic" in the sense that it corresponds to one or more smooth and exact mathematical surfaces, which may be one or more modeled entities provided as input to a generative design process, or regular geometry fitted to the mesh output of a scanner. The second part of the mesh is "organic" in the sense that it represents a complex shape produced by a generative design process or a scanner, which is not easily modeled using regular geometry fitted to a mesh.

[0160] While mesh triangles are to be allocated 1600, each triangle is checked 1605 to determine whether the triangle has at least one vertex that is not associated with any of the one or more modeled entities. When the triangle has at least one vertex that is determined not to be associated with an input entity (or a generated entity), the triangle is allocated 1610 to the second (organic) portion. Otherwise, the triangle is allocated 1615 to the first (non-organic) portion of the mesh. Thus, a triangle may be allocated to the organic portion of the mesh even when two of the three vertices of the triangle are contained by the input entity. Furthermore, as explained elsewhere in this application (e.g., Section 2.1 above), the vertices of a triangle need only be within a threshold distance of a modeled entity to be considered associated with the modeled entity. Thus, a triangle having no vertices contained by an input entity may be allocated to the non-organic (associated) portion of the mesh if all three of those vertices are within a threshold distance set by the discretization accuracy (of the generative design process or the scanner).

[0161] Once the triangles of the mesh have been assigned to either the first (associative / non-organic) portion or the second (organic / non-associative) portion of the mesh, an additional checking and reallocation process may be employed as part of the partitioning process. A check 1620 may be performed for any boundary vertices (i.e., vertices connecting a boundary edge that separates two portions of the mesh) that are non-2-manifold (i.e., vertices connecting more than two boundary edges). Thus, the check 1620 for any non-manifold boundary vertices involves finding vertices that (i) lie on the boundary between the first portion and the second portion and (ii) connect more than two boundary edges that lie on the boundary between the first portion and the second portion. For more details, see above and in conjunction with Figure 7 See Section 3.1.

[0162] For each such non-manifold boundary vertex found, one or more associated triangles including the non-manifold boundary vertex are reallocated from the first (associated / non-organic) portion of the mesh to the second (organic / non-associated) portion. Note that such reallocation changes the boundary between the two portions of the mesh, resulting in changes in the boundary edges and, therefore, the boundary vertices. Therefore, a single pass may not be sufficient, and the process may include iteratively repeating the check 1620 and reallocation 1625 until no non-manifold boundary vertices remain. This may involve checking 1630 to determine if any reallocations were made across boundary vertices in the last iteration. Once no further triangle reallocations need to be made, the process ends.

[0163] return Fig.15Once the partitioning 1520 is completed, one or more editable smooth surfaces may be constructed 1525 for the second portion of the polygonal mesh, for example, by one or more CAD programs 1404. Each of the one or more editable smooth surfaces has a global smooth parameterization that allows for global smooth free-form surface editing. As noted above, various types of surface definition formats may be used, including T-NURCC, T-splines, LR B-splines, and / or layered B-splines. Various methods may be used to construct 1525 the one or more editable smooth surfaces, including one or more of the methods described above in Section 4, below in conjunction with Fig.17 One or more methods described and / or one or more methods described in U.S. patent application Ser. No. 16 / 388,771, filed on April 18, 2019 and published on May 25, 2021 as U.S. Pat. No. 11,016,470.

[0164] One or more boundaries of one or more editable smooth surfaces are modified 1530, for example, by one or more CAD programs 1404, to contact one or more input entities (or one or more other modeling entities corresponding to the regular geometry fitted to the scanned mesh) at one or more contact curves that are homeomorphic to the unmodified boundaries between the one or more modified smooth surfaces and one or more input entities (or one or more other modeling entities corresponding to the regular geometry fitted to the scanned mesh). This ensures that the smooth surface constructed from the organic part of the mesh will fully contact the one or more input entities (or one or more other modeling entities corresponding to the one or more regular geometry fitted to the scanned mesh). Therefore, the final 3D model will be watertight. The modification 1530 of one or more editable smooth surfaces may include one or more of the methods described in Section 5 above and / or in combination with the following. Fig.17 One or more of the methods described.

[0165] The one or more modified smooth surfaces are then combined 1535 with one or more input entities (or one or more other modeling entities corresponding to one or more regular geometric shapes fitted to the scanned mesh), for example by one or more CAD programs 1404, to form a second 3D model of the object to be manufactured. The second 3D model includes one or more modified smooth surfaces that are in contact with one or more portions of one or more input entities (or one or more other modeling entities) in a boundary representation format at one or more gapless contact curves. The second 3D model is watertight, and each of the one or more gapless contact curves and each of the one or more modified smooth surfaces can be edited using free-form modeling operations. The merge 1535 may include using Boolean operations that operate on entities and oriented sheets or using cellular modeling techniques. The merge 1535 may include one or more of the methods described in Section 6 above and / or in combination with the following. Fig.17 One or more of the methods described.

[0166] Furthermore, in some implementations, additional processing may be performed on the second 3D model. For example, a check 1540 may be performed to identify that at least one tangent line (G ) is not provided between the modified smooth surface and the input solid. 1 ) continuity. When such contact curves are identified, a blending operation may be applied 1545 at at least one of the one or more gapless contact curves to provide at least a tangent line (G) between the modified smooth surface and the input solid. 1 ) continuity. Thus, one or more intersection curves between the organic region and the associated region may be replaced to improve the shape characteristics at one or more gapless contact curves in the second 3D model. Other continuity checks and additional post-processing operations may also be performed, such as making one or more joint points have tangents (G 1 )Continuity or curve (G 2 )Continuity.

[0167] Additionally, in some implementations, the second 3D model may be provided 1550, for example, by one or more CAD programs 1404, for use in manufacturing a physical structure corresponding to the object using one or more computer-controlled manufacturing systems (e.g., AM machine 1495, SM machine 1495, and / or other manufacturing machines). Providing 1550 may involve saving the watertight 3D model to a permanent storage device for use in manufacturing a physical structure corresponding to the object using one or more computer-controlled manufacturing systems (e.g., AM machine 1495 and / or SM machine 1495). In some implementations, providing 1550 involves: using the second 3D model, for example, via one or more CAD programs 1404, to generate 1552 tool path instructions for one or more computer-controlled manufacturing systems (e.g., AM machines 1495 and / or SM machines 1495), and using the tool path instructions generated for the additive manufacturing machines (e.g., AM machines 1495 and / or SM machines 1495), for example, via one or more CAD programs 1404, to manufacture 1554 at least a portion of the physical structure corresponding to the object using one or more computer-controlled manufacturing systems (e.g., AM machines 1495 and / or SM machines 1495).

[0168] Fig.17 An example of a process of partitioning 1520 a mesh geometry, constructing 1525 one or more editable smooth surfaces for the organic portion of the mesh geometry, and modifying 1530 one or more boundaries of the one or more editable smooth surfaces is shown. The polygons of the mesh geometry are assigned 1705 to a first (associative / non-organic) portion or a second (organic / non-associative) portion of the mesh, such as by one or more CAD programs 1404. One or more additional processing operations are then performed at the organic boundaries as part of the partitioning process, such as described above in Section 3 and in conjunction with Fig.16 Such additional processing may include, for example, relaxing 1710, by one or more CAD programs 1404, a boundary shape formed by boundary edges located on the boundary between the first portion and the second portion by at least partially shifting boundary vertex positions toward their average values ​​to reduce angular and length deviations of the boundary shape. Additional details of relaxation 1710 are provided above in Section 3.3.

[0169] For construction, regularization constraints are added 1715 to any boundary vertices with flat interior surface corners, for example, by one or more CAD programs 1404. Fig.11Further details on this are provided. Boundary curve tangent direction propagation is applied 1720, such as by one or more CAD programs 1404, along a boundary edge located on a boundary between the first portion and the second portion. Further details on this are provided above in Section 4.1.

[0170] A global continuous mapping calculation method is applied 1725, for example, by one or more CAD programs 1404, wherein the global continuous mapping calculation method is aligned with the principal curvature in the anisotropic region, scaled according to the local curvature, and quantized to obtain a quadrilateral partition of the mapped image. A global mapping relaxation is applied 1730, for example, by one or more CAD programs 1404, to improve the smoothness of the global quadrilateral partition. Other details of the global continuous mapping calculation and global mapping relaxation are provided above in Section 4.3. In addition, a global surface approximation method is applied 1735, for example, by one or more CAD programs 1404, the method comprising an approximation error of the second part of the grid. Other details of this are provided above in Section 4.4.

[0171] For example, one or more boundaries of one or more editable smooth surfaces are modified by one or more CAD programs 1404 to contact one or more modeling entities. When at least one surface boundary is to be modified 1740, the process continues, and once all smooth surface boundaries have been modified to contact one or more modeling entities, the process ends. For example, one or more CAD programs 1404 are used to modify the setting 1750 of a safety tolerance value based on the following accuracy limits: (i) modifying the intersection algorithm (e.g., Boolean operations) adopted and / or (ii) the mesh representation of the generative design (or the scanned physical object) created by the generative design process. Additional details about the safety tolerance value are provided above in Section 5.3. For example, the next boundary of the editable smooth surface is pulled 1755 toward at least one of the modeling entities by one or more CAD programs 1404 in the following manner: applying a gradient descent method to the distance function of the input entity evaluated for the pulled boundary. Additional details on this are provided above in Section 5.2. In some implementations, the safety tolerance value is iteratively adjusted to ensure that one or more contact curves of the one or more modified smooth surfaces and the one or more input entities are homeomorphic to the unmodified boundary. Thus, check 1740 may include checking that, before completing the modification of the pulled boundary, the curve of the boundary is homeomorphic to Homeomorphism.

[0172] In addition, in some cases, the pull algorithm can be The small surface self-intersection near the high curvature area causes organic surface defects. If the surface self-intersection overlaps the contact curve Then the intersection algorithm may not be able to calculate C. To solve this problem, an optional step may include: when the curvature of one or more regions near the boundary exceeds a threshold, for example, by one or more CAD programs 1404 adding 1745 one or more smoothing energy terms (Halstead, M., Kass, M., and DeRose, T., Efficient, fair interpolation using Catmull-Clark surfaces, Proc. of SIGGRAPH 93, pp. 35–44, 1993) for one or more regions of the boundary to alleviate this problem.

[0173] The embodiments of the subject matter and functional operations described in this specification can be implemented in digital electronic circuits or in computer software, firmware or hardware (including the structures disclosed in this specification and their equivalent structures) or in a combination of one or more of them. The embodiments of the subject matter described in this specification can be implemented using one or more modules of computer program instructions encoded on a non-transitory computer-readable medium for execution by a data processing device or controlling the operation of a data processing device. The computer-readable medium can be a manufactured product, such as a hard drive in a computer system or an optical disc or embedded system sold through a retail channel. The computer-readable medium can be obtained separately, and then one or more modules of computer program instructions are used to encode it, such as by delivering one or more modules of computer program instructions through a wired or wireless network. The computer-readable medium can be a machine-readable storage device, a machine-readable storage substrate, a memory device, or a combination of one or more of them.

[0174] The term "data processing device" encompasses all devices, apparatuses and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. In addition to hardware, the device may also include code that creates an execution environment for the computer program in question (e.g., code constituting processor firmware, a protocol stack, a database management system, an operating system, a runtime environment, or a combination of one or more of them). In addition, the device may employ a variety of different computing model infrastructures, such as network services, distributed computing, and grid computing infrastructures.

[0175] A computer program (also referred to as a program, software, software application, script, or code) can be written in any suitable programming language form (including compiled or interpreted languages, declarative or procedural languages), and it can be deployed in any suitable form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple collaborative files (e.g., files that store one or more modules, subroutines, or code portions). A computer program may be deployed to execute on one computer or on multiple computers (which are located at one location or distributed across multiple locations and interconnected by a communication network).

[0176] The processes and logic flows described in this specification may be performed by one or more programmable processors executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows may also be performed by, and the apparatus may also be implemented as, special purpose logic circuitry (e.g., an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit)).

[0177] Processors suitable for executing computer programs include, for example, general and special purpose microprocessors and any one or more processors of any kind of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more large-capacity storage devices (e.g., magnetic disks, magneto-optical disks, or optical disks) for storing data or be operatively coupled to the one or more large-capacity storage devices to receive data from it or to transmit data to it or both. However, a computer need not have such devices. In addition, a computer may be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name a few. Suitable devices for storing computer program instructions and data include all forms of non-volatile memory, media and storage devices, including, for example, semiconductor memory devices, such as EPROM (erasable programmable read-only memory), EEPROM (electrically erasable programmable read-only memory), and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0178] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device (e.g., an LCD (liquid crystal display) display device, an OLED (organic light emitting diode) display device, or another monitor) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, feedback provided to the user may be any suitable form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any suitable form, including sound, voice, or tactile input.

[0179] A computing system may include a client and a server. The client and the server are usually far from each other and usually interact through a communication network. The relationship between the client and the server is generated by a computer program running on a corresponding computer and having a client-server relationship with each other. The embodiments of the subject matter described in this specification may be implemented in a computing system, the computing system including a back-end component (e.g., as a data server) or including a middleware component (e.g., an application server) or including a front-end component (e.g., a client computer with a graphical user interface or a web browser with which a user can interact with the implementation of the subject matter described in this specification), or any combination of one or more such back-ends, middleware or front-end components. The components of the system may be interconnected by digital data communication (e.g., a communication network) of any suitable form or medium. Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs"), interconnected networks (e.g., the Internet), and peer-to-peer networks (e.g., dedicated peer-to-peer networks).

[0180] Although this specification includes many implementation details, these details should not be interpreted as limitations on the scope of what is being claimed or may be claimed, but rather should be interpreted as descriptions of features specific to a particular embodiment of the disclosed subject matter. Certain features described in this specification in the context of a separate embodiment may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as acting in certain combinations, and even initially claimed as such, in some cases, one or more features from the claimed combination may be removed from the combination, and the claimed combination may be directed to a sub-combination or a variation of the sub-combination.

[0181] Similarly, although operations are shown in a particular order in the accompanying drawings, this should not be understood as requiring such operations to be performed in the particular order shown or in a sequential order, or requiring that all of the operations shown be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0182] Thus, certain embodiments of the invention have been described. Other embodiments are within the scope of the following claims. Furthermore, the actions recited in the claims can be performed in a different order and still achieve desirable results.

Claims

1. A method for converting a mesh geometry into a watertight boundary representation, the method comprising: obtaining a first three-dimensional model of the object, wherein the first three-dimensional model comprises a polygonal mesh; partitioning the polygonal mesh into a first portion corresponding to one or more entities and a second portion not corresponding to the one or more entities, wherein the one or more entities are in a boundary representation format; constructing one or more editable smooth surfaces for the second portion of the polygonal mesh; modifying one or more boundaries of the one or more editable smooth surfaces to contact the one or more solid bodies at one or more gapless contact curves homeomorphic to the one or more boundaries, thereby forming one or more modified smooth surfaces; as well as The one or more modified smooth surfaces are combined with the one or more solid bodies to form a second three-dimensional model of the object, wherein the second three-dimensional model includes the one or more modified smooth surfaces in watertight contact with one or more portions of the one or more solid bodies in the boundary representation format at the one or more gapless contact curves.

2. The method of claim 1 , wherein the partitioning comprises assigning polygons of the polygonal mesh to the first portion based on polygons having at least one vertex, wherein the at least one vertex is contained by at least one of the one or more entities or is within a threshold distance of a surface of at least one of the one or more entities, and wherein the threshold distance is based on a discretization accuracy of the polygonal mesh.

3. A method as claimed in claim 2, wherein the assigning includes initially assigning the polygon to the first part in response to each polygon vertex of the polygon being contained by at least one of the one or more entities or within a threshold distance of the surface of at least one of the one or more entities, and the partitioning includes reallocating the polygon from the first part to the second part in response to the polygon including a boundary vertex, wherein the boundary vertex (i) is located on the boundary between the first part and the second part, and (ii) connects more than two boundary edges located on the boundary between the first part and the second part.

4. The method of claim 1, comprising smoothing one or more piecewise linear curves of a boundary between the first portion and the second portion.

5. The method of claim 4, comprising remeshing polygons around the one or more piecewise linear curves of the boundary between the first portion and the second portion, and wherein the smoothing comprises moving boundary vertex positions toward an average thereof.

6. The method of claim 4, comprising, before said smoothing: adding a regularity constraint on one or more boundary vertices having a flat interior surface angle; and Boundary curve tangent direction propagation is applied along the one or more piecewise linear curves of the boundary between the first portion and the second portion.

7. The method of claim 1, wherein the constructing comprises fitting the one or more editable smooth surfaces to the second portion of the polygonal mesh to form at least one globally smooth freeform surface that deviates from the polygonal mesh by no more than a specified approximation tolerance.

8. The method of claim 7, wherein the constructing includes calculating an anisotropic adaptive size field that specifies a control mesh edge length size of the one or more editable smooth surfaces.

9. The method of claim 7, wherein the constructing comprises computing intersection, size, and field-directed quad parameterization of the second portion of the polygonal mesh.

10. The method of claim 1, wherein the constructing comprises obtaining a quantized global continuity graph, and the one or more editable smooth surfaces comprise one or more non-uniform rational Catmull-Clark surfaces having T-junctions or T-spline surfaces.

11. The method of claim 1, wherein the modifying comprises: pulling at least one boundary of the one or more editable smooth surfaces toward at least one of the one or more entities; setting a safety tolerance value for the modification based on the accuracy limit; as well as The safety tolerance value is adjusted to ensure that the one or more gap-free contact curves are homeomorphic to the one or more boundaries.

12. The method of claim 11, wherein the one or more entities include two entities having a minimum distance between the two entities, and the method includes extending at least one of the two entities in response to the minimum distance being less than the precision limit.

13. The method of claim 11, comprising adding at least one smoothing energy term to at least one region of the at least one boundary in response to the curvature of at least one region of the at least one boundary exceeding a threshold.

14. The method of claim 1, wherein said combining comprises using a lattice modeling technique.

15. The method of claim 1, comprising applying blending to at least one of the one or more gapless contact curves in response to the at least one contact curve not providing at least tangential continuity with the one or more solid bodies.

16. The method of any one of claims 1-15, wherein the obtaining comprises receiving the polygonal mesh from a generative design process, the generative design process using the one or more entities in the generative design process, and each of the one or more gapless contact curves and each of the one or more modified smooth surfaces are editable using a free-form modeling operation.

17. The method of claim 16, wherein the generative design process employs a level set approach, the polygonal mesh is extracted from a level set representation of the object, the method comprising propagating associated attributes from mesh points in the level set representation to vertices of the polygonal mesh, and the mesh points include mesh points on or within the one or more entities and participating in the polygonal mesh extraction.

18. The method of any of claims 1-15, wherein the obtaining comprises receiving the polygonal mesh, and the partitioning comprises fitting one or more regular geometric shapes to the polygonal mesh to determine the one or more solid bodies.

19. The method of claim 18, wherein the object is a physical object and the polygonal mesh is generated by a scanner scanning the physical object.

20. A system for converting a mesh geometry into a watertight boundary representation, the system comprising: a non-transitory storage medium having instructions of a computer program stored thereon; as well as One or more data processing devices capable of executing the instructions of the computer program to perform the method of any one of claims 1-19.

21. The system of claim 20, comprising: One or more computer-controlled manufacturing systems include an additive manufacturing machine or a subtractive manufacturing machine, wherein the one or more data processing devices are capable of executing the instructions of the computer program to generate a tool path description for the additive manufacturing machine or the subtractive manufacturing machine based on the second three-dimensional model, and use the tool path description to manufacture at least a portion of the object using the additive manufacturing machine or the subtractive manufacturing machine.

22. A non-transitory computer readable medium encoding a computer program operable to cause one or more data processing devices to perform the method of any one of claims 1-19.