Learning Neural Networks for Inferring Editable Feature Trees

Through a neural network-based approach, utilizing recurrent neural networks and supervised/unsupervised training, the existing technology problem of inferring editable feature trees from discrete representations of 3D shapes is solved, achieving robust and accurate inference of complex geometries. , provides a compact feature tree representation.

CN111382496BActive Publication Date: 2024-09-06DASSAULT SYSTEMES SA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201911396215.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-29
Filing Date
2019-12-30
Publication Date
2024-09-06
Estimated Expiration
2039-12-30

AI Technical Summary

Technical Problem

Existing techniques have difficulty in effectively inferring editable feature trees from discrete representations of 3D shapes, especially with challenges related to fragility and error propagation issues caused by complex geometries and intermediate B-Rep representations.

Method used

Adopt a neural network-based approach that learns to infer editable feature trees of 3D shapes by providing a dataset and a candidate set, utilizing Recurrent Neural Network (RNN) units and supervised/unsupervised training, optimizing the loss function to minimize the probability distribution and parameter values ​​to achieve accurate inference of the editable feature tree.

Benefits of technology

Improved accuracy and robustness of editable feature tree inference for 3D shapes, capable of handling complex geometries and providing compact and organized feature tree representations without compromising the input representation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111382496B_ABST
    Figure CN111382496B_ABST
Patent Text Reader

Abstract

The present invention relates in particular to a computer-implemented method for learning a neural network configured to infer an editable feature tree representing a 3D shape from a discrete geometric representation of the 3D shape. The editable feature tree comprises a tree arrangement of geometric operations applied to leaf geometries. The method comprises providing a data set comprising a discrete geometric representation of each of the corresponding 3D shapes, and providing a candidate set of leaf geometries. The method further comprises learning a neural network based on the data set and based on the candidate set. The candidate set comprises at least one continuous subset of the leaf geometries. The method forms an improved solution for digitization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer programs and systems, and more particularly, to solutions related to learning a neural network configured to infer an editable feature tree representing a 3D shape from a discrete geometric representation of the 3D shape. Background Art

[0002] Many systems and programs for design, engineering and manufacturing of objects are available on the market. CAD is an abbreviation for computer-aided design, for example, it relates to software solutions for designing objects. CAE is an abbreviation for computer-aided engineering, for example, it relates to software solutions for simulating the physical behavior of future products. CAM is an abbreviation for computer-aided manufacturing, for example, it relates to software solutions for defining manufacturing processes and operations. In such computer-aided design systems, graphical user interfaces play an important role in technical efficiency. These technologies can be embedded in product lifecycle management (PLM) systems. PLM is a business strategy that helps companies share product data, apply common processes, and leverage corporate knowledge to develop products from concept to the end of their life cycle throughout the concept of an extended enterprise. The PLM solution provided by Dassault Systèmes (trademarks CATIA, ENOVIA and DELMIA) provides an engineering center (which organizes product engineering knowledge), a manufacturing center (which manages manufacturing engineering knowledge), and an enterprise center (which enables companies to integrate and connect both engineering centers and manufacturing centers). Together, the system provides an open object model that links products, processes, and resources together to enable dynamic, knowledge-based product creation and decision support that drives optimized product definition, manufacturing preparation, production, and service.

[0003] In this context, researchers have been looking for solutions to infer plausible editable feature trees representing 3D shapes from their discrete representations. In particular, finding plausible CSG trees corresponding to the original input mesh has attracted attention. This problem belongs to the more general topic known as "digitization".

[0004] The following references deal specifically with digitization:

[0005] -[1]Bénière et al.: Topology Reconstruction for B-Rep Modeling from 3DMesh in Reverse Engineering Applications, 2012.

[0006] -[2] Flavien Boussuge et al.: Extraction of generative processes from B-Rep shapes and application to idealization transformations, 2014.

[0007] -[3] S. Gauthier et al.: Digitized 3d mesh segmentation based on curvature analysis, 2017.

[0008] -[4] D. Cohen-Steiner et al.: Restricted Delaunay Triangulation and Normal Cycle, 2003.

[0009] -[5] B. Levy et al.: Lp Centroidal Voronoi Tesselation and its application, 2010.

[0010] -[6] F. Boussuge: Idealization of CAD assemblies for FE structural analyses, chapter 4: Extraction of generative processes from B-Rep shapes to structure components up to assemblies, PhD Thesis, Université de Grenoble, 2014.

[0011] -[7] J. J. Shah, D. Anderson, Y. Se Kim, S. Joshi: A Discourse on Geometric Feature Recognition From CAD Models, Journal of Computing and Information Science in Engineering, 2001.

[0012] -[8]Y.Zhang,

[0013] -[9]Jonathan Richard Shewchuk, Robust Adaptive Floating-PointGeometric Predicates, 1996.

[0014] -

[10] G.Sharma,R.Goyal,D.Liu,E.Kalogerakis,S.Maji.CSGNet: Neural ShapeParser for Constructive Solid Geometry.The IEEE Conference on Computer Vision and Pattern Recognition(CVPR), 2018.

[0015] The paper [1] deals with extracting enough information from a mesh to construct an accurate boundary representation (B-Rep) model using mean curvature. By analyzing the curvature on the triangles of the mesh relative to the entire mesh curvature distribution, submeshes are established, which are potential candidates for faces as B-Rep representations. When submeshes do not touch their neighbors, the proposed method expands them until some restrictions between neighboring faces can be recovered. The proposed method expands the submeshes by aggregating triangles based on the notion of distance to the established submeshes. For complex and tortuous geometries, there is no guarantee that the proposed procedure will be able to recover valid restrictions. Therefore, in the case of complex mesh geometries, this method may not be able to construct a B-Rep. In addition, this method only focuses on reconstructing an accurate B-Rep and not an editable feature tree. In the context of building an editable feature tree from the original mesh, the B-Rep representation is not necessarily an intermediate stage and it may harm the method. In the case of complex geometries, going through an intermediate B-Rep representation will make the entire process fragile. If the B-Rep construction fails, no features will be retrieved at all.

[0016] The paper [2] deals with the reconstruction of a “process tree” starting from a B-Rep representation. To construct the process tree, the proposed method analyzes the faces and intersections between the faces of the B-Rep to build a sketch that can be later stretched. The generated process tree is limited to entity addition, i.e. no subtraction operations are generated. Since the exact B-Rep is available, the algorithm proceeds iteratively, i.e., feature entities are identified and removed from the current B-Rep through Boolean operations until the entire entity is processed. Therefore, the proposed method has the risk of propagating errors.

[0017] The paper [8] proposes a method for determining non-planar loops of intersecting curves / edges that are connected by successive Boolean operations between scanned entities. In order to close the loop, the paper states that additional virtual intersecting curves / edges may have to be created. However, the paper does not go into detail on how to create them. Furthermore, the paper does not go beyond loop detection, and in particular, it does not show how to determine the order of Boolean operations based on loop detection.

[0018] The paper

[10] proposed a completely different approach based on inferring a feature tree representation from 3D shapes based on a neural network model. The learning is based on a discrete set of candidate leaf entities of the feature tree representation. In addition, the method requires the input shape to be discretized into a regular voxel grid with finite resolution. The paper does not mention how to obtain a labeled dataset for supervised learning. The proposed method lacks accuracy.

[0019] Against this background, there continues to be a need for improved solutions for digitalization. Summary of the invention

[0020] Thus, a computer-implemented (learning) method is provided for learning a neural network configured to infer an editable feature tree representing a 3D shape from a discrete geometric representation of the 3D shape. The editable feature tree comprises a tree arrangement of geometric operations applied to leaf geometries. The method comprises providing a data set comprising a discrete geometric representation of each of the corresponding 3D shapes, and providing a candidate set of leaf geometries. The method further comprises learning a neural network based on the data set and based on the candidate set. The candidate set comprises at least one continuous subset of the leaf geometries.

[0021] The method may include one or more of the following:

[0022] - The candidate set consists of the set product between: a discrete set of primitive shape types;

[0023] and, for each primitive shape type, a respective discrete set of one or more parameter domains for each of the respective continuous parameters, each parameter domain having a respective parameter value for the respective continuous parameter, and each primitive shape type forming a respective element of the candidate set using the respective parameter value for each parameter domain in the respective discrete set of one or more parameter domains;

[0024] - for each of the one or more primitive shape types, the one or more corresponding continuous parameters include one or more size parameters and / or one or more positioning parameters;

[0025] - a discrete set of primitive shape types including a cuboid type, a sphere type, one or more cylinder types, and / or one or more prism types;

[0026] - the neural network comprises recurrent neural network (RNN) units, each RNN unit outputting, at a respective time step (t), respective first data for inferring a respective primitive shape type, and respective second data for inferring a respective parameter value for each of a respective discrete set of one or more parameter domains;

[0027] - the respective first data comprises a respective discrete distribution of probabilities, each probability being attributed to a respective primitive shape type from a discrete set of primitive shape types, and / or the respective second data comprises a respective parameter value for each parameter domain from a respective discrete set of one or more parameter domains;

[0028] - for each of the one or more discrete geometric representations, the data set further comprises a corresponding editable feature tree comprising a tree arrangement of geometric operations applied to leaf geometric shapes and representing a 3D shape corresponding to the discrete geometric representation, each geometric shape being formed from a corresponding primitive shape type using corresponding parameter values ​​for each of a corresponding discrete set of one or more parameter domains, the learning of the neural network comprising supervised training comprising subjecting a loss L 1 Minimize, for each time step corresponding to each leaf geometry of each discrete geometric representation, the loss L 1 penalizing: a low probability of the corresponding first data being attributable to the corresponding primitive shape type of the leaf geometry, and / or a difference between one or more corresponding parameter values ​​of the leaf geometry and one or more corresponding parameter values ​​of the corresponding second data;

[0029] - Loss L 1 Penalizes the following: Type is low, and / or type item where n specifies the discrete geometric representation, t specifies the time step, Specify the corresponding primitive shape type, Assign attribute to The probability of the corresponding first data, specifying said one or more corresponding parameter values ​​of said leaf geometry, specifying the one or more corresponding parameter values ​​of the corresponding second data, d(·,·) is a distance function, and incr[·] is an increasing and / or positive function; - the corresponding first data comprises a corresponding discrete distribution of probabilities (p), each probability being attributed to a corresponding discrete set of discrete sets of primitive shape types (l), and the learning of the neural network comprises unsupervised training, which comprises making the loss L 2 Minimize, which includes exploring the corresponding discrete probability distribution of candidates, for the discrete geometric representation and for the corresponding discrete probability distribution of candidates, the loss L 2 Penalize the difference of the discrete geometric representation derived from the corresponding editable feature tree, the corresponding editable feature tree is inferable based on the corresponding discrete probability distribution of the explored candidates, minimize the loss L of the variable including the corresponding discrete distribution of the candidate with respect to at least the corresponding first data 2 Back propagation of the gradient of , which is obtained using the reinforcement algorithm;

[0030] - The gradient has type Where: n specifies the discrete geometric representation, T n Specifies the depth of the corresponding editable feature tree, t specifies the corresponding time step, y specifies the primitive shape type, p y specifying the variable representing the corresponding discrete distribution of the candidate for the corresponding first data at t, specifies the primitive shape type of the corresponding editable feature tree that can be inferred at t, and β is a reference value; and / or

[0031] -Each RNN unit takes as input the result of the current prediction sequence, and the learning of the neural network consists of supervised training, which consists of minimizing the loss involving the inferred parameter values.

[0032] A data structure representing a neural network learnable according to a (learning) method is also provided.

[0033] A computer-implemented method of using the data structure is also provided, the method comprising: providing a discrete geometric representation of a 3D shape; applying a neural network to the discrete geometric representation of the 3D shape; and inferring an editable feature tree representing the 3D shape based on the results of the application; and optionally refining the inferred editable feature tree.

[0034] A computer program is also provided, the computer program comprising instructions for executing the learning method and / or the using method.

[0035] Also provided is a device comprising a data storage medium having a data structure and / or program recorded thereon. The device may form or be used as a non-transitory computer-readable medium, such as on a SaaS (software as a service) or other server, or a cloud-based platform, etc. The device may alternatively include a processor coupled to the data storage medium. Thus, the device may form a computer system in whole or in part (e.g., the device is a subsystem of the entire system). The system may also include a graphical user interface coupled to the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Embodiments will now be described by way of non-limiting examples and with reference to the accompanying drawings, in which:

[0037] - Figure 1 An example of a graphical user interface for the system is shown;

[0038] - Figure 2 An example of a system is shown; and

[0039] - Figure 3-11 These methods are described. DETAILED DESCRIPTION

[0040] A computer-implemented method is presented herein related to learning of a neural network. In this context, a neural network is a function configured to: take as input any one of the discrete geometric representations of each of the corresponding 3D shapes; process the input; and as a result of the processing, output corresponding data configured to infer an editable feature tree representing the 3D shape corresponding to the input. Thus, such a neural network can be used to infer an editable feature tree corresponding to the discrete geometric representation of the 3D shape.

[0041] Therefore, a computer-implemented method for performing such inference is proposed, which may be referred to as an "inference method".

[0042] The inference method may include providing a discrete geometric representation of the 3D shape. The inference method may also include applying a neural network to the discrete geometric representation of the 3D shape. The inference method may also include inferring at least one editable feature tree representing the 3D shape based on a result of the application (i.e., data output by the neural network when the discrete geometric representation is input). The output data may (directly) include the editable feature tree, and / or be processed to (indirectly) determine the editable feature tree, for example automatically and / or according to a predetermined algorithm.

[0043] In the case of indirect determination, the output data may, for example, include one or more probability distributions for selecting values ​​defining at least one editable feature tree, and the predetermined algorithm may, for example, include determining at least one editable feature tree based on the one or more probability distributions. The determination may, for example, penalize the selection of values ​​with low probability. The determination may, for example, be equal to searching for a predetermined number k (e.g., where k is higher than or equal to 1 and / or lower than 10) of the most likely editable feature trees based on the one or more probability distributions. The search may be performed according to a beam search algorithm. This provides computational efficiency.

[0044] In an example of improving accuracy, the inference method may also include, for example, automatically refining each (initially) inferred editable feature tree. Refining may include editing the inferred editable feature tree (e.g., its parameters) so that its resulting 3D geometry (e.g., obtained by "playing" the editable feature tree) is more similar to the discrete geometric representation of the input. The similarity may be increased by minimizing a loss that penalizes the difference between the 3D geometry provided by the inferred editable feature tree and the discrete geometric representation of the input. Minimization may include exploring candidate versions of the initially inferred editable feature tree, such as versions of its leaf geometry. Examples of such versions are provided later. This refinement option improves accuracy by exploiting facts specific to the context of the present disclosure. That is, the refinement exploits the fact that the editable feature tree can be used to calculate 3D geometry that is directly comparable to the discrete geometric representation, such as by playing the editable feature tree (i.e., applying the geometric operations of the editable feature tree to the leaf geometry of the editable feature tree in the order defined by the tree arrangement of the editable feature tree). In other words, the accuracy of the output of the neural network can be evaluated directly and immediately.

[0045] As is known from the field of machine learning, the processing of an input by a neural network comprises applying an operation to the input, the operation being defined by data including weight values. Thus, the learning of the neural network comprises determining the values ​​of the weights based on a data set configured for such learning. To this end, the data set comprises data segments each forming a corresponding training sample. The training samples represent the diversity of situations in which the neural network is to be used after learning. Any data set cited herein may comprise a plurality of training samples higher than 1,000, 10,000, 100,000 or 1,000,000.

[0046] Therefore, in particular, a computer-implemented method for forming such a data set is proposed, which method may be referred to as a “data set forming method”. Also proposed is a computer-implemented method for performing such learning, which method may be referred to as a “learning method”.

[0047] The machine learning process may include a dataset formation method and / or a learning method, and optionally an inference method.

[0048] The machine learning process may specifically include both a data set formation method and a learning method. In the example following the data set formation method, the learning method may, for example, be performed at least in part based on the data set formed by the data set formation method. Such a machine learning process is particularly effective and provides improved accuracy.

[0049] Alternatively, the machine learning process may include a data set formation method and any other computer-implemented method for learning a neural network (compared to the proposed learning method) is performed based on the data set. Still alternatively, the machine learning process may include performing the learning method on a data set provided by any other computer-implemented method (compared to the proposed data set formation method), such as another method for forming a data set or retrieving a data set.

[0050] Before introducing the data set formation method and the learning method, the data structures involved are now discussed. It will be appreciated that the data structure definitions and examples provided herein can be applied to at least a portion (e.g., all) of a data set formed by the data set formation method and / or at least a portion (e.g., all) of a data set provided in a learning method, and / or at least one input and / or at least one output of an inference method.

[0051] A discrete geometric representation of a 3D shape is herein a data structure that includes a discrete collection of data segments. Each segment of data represents a corresponding geometric entity located in 3D space. Each geometric entity represents a corresponding location of the 3D shape (in other words, a corresponding portion of the material composition of the entity represented by the 3D shape). The aggregation (i.e., union or juxtaposition) of geometric entities together represents a 3D shape. In an example, any discrete geometric representation herein may include a plurality of such data segments higher than 100 (e.g., higher than 1000).

[0052] Any discrete geometric representation herein may be, for example, a 3D point cloud, with each geometric entity being a point. Alternatively, any discrete geometric representation herein may be a 3D mesh, with each geometric entity being a mesh tile or face. Any 3D mesh herein may be regular or irregular (i.e., whether composed of faces of the same type). Any 3D mesh herein may be a polygonal mesh, such as a triangular mesh. Alternatively, any 3D mesh herein may be a B-Rep. Any 3D mesh herein may be obtained from a 3D point cloud, for example by triangulating the 3D point cloud (e.g., using Delaunay triangulation).

[0053] Any 3D point cloud herein may be determined based on physical measurements of a real object, such as in a 3D reconstruction process (except that discrete geometric representations are synthetically generated, such as in a data set formation method). The 3D reconstruction process may include: providing a real object; providing one or more physical sensors each configured to acquire corresponding physical signals; and acquiring one or more corresponding physical signals by operating one or more physical sensors on the real object (i.e., using each sensor to scan the real object). Then, according to any known technology, the 3D reconstruction may automatically determine a 3D point cloud and / or a 3D mesh based on the measurements. One or more sensors may include multiple (e.g., RGB and / or image or video) cameras, and the determination may include motion structure analysis. One or more sensors may alternatively or additionally include one or more depth sensors (e.g., on an RGB depth camera), and the determination may include a 3D reconstruction based on depth data. One or more depth sensors may, for example, include a laser (e.g., a lidar) or an ultrasonic transmitter-receiver.

[0054] Alternatively, any 3D point cloud or 3D mesh herein may be obtained from a 3D modeled object representing the skin (i.e., outer surface) of an entity (e.g., a B-Rep model), for example, by ray casting on the 3D modeled object or tessellation of the 3D modeled object. Tessellation may be performed according to any 3D modeled object rendering process. Such a rendering process may be encoded on any CAD system to display a graphical representation of a 3D modeled object. The 3D modeled object may be designed by a user using a CAD system or may already be designed (except when the discrete geometric representation is synthetically generated, for example, during a data set formation method).

[0055] A modeling object is any object defined by data stored, for example, in a database. By extension, the expression "modeling object" denotes the data itself. Depending on the type of system used to design the modeling object, the modeling object may be defined by different kinds of data. The system may indeed be any combination of a CAD system, a CAE system, a CAM system, a PDM system and / or a PLM system. In those different systems, the modeling object is defined by the corresponding data. Thus, one may mention a CAD object, a PLM object, a PDM object, a CAE object, a CAM object, CAD data, PLM data, PDM data, CAM data, CAE data. However, these systems are not mutually exclusive, since a modeling object may be defined by data corresponding to any combination of these systems. Thus, a system may very well be both a CAD system and a PLM system.

[0056] By CAD system, it is further meant any system, such as CATIA, that is at least suitable for designing a modeled object based on a graphical representation of the modeled object. In this case, the data defining the modeled object include data that allow the modeled object to be represented. The CAD system can, for example, use edges or lines (with faces or surfaces in some cases) to provide representations of CAD modeled objects. Lines, edges or surfaces can be represented in various ways, such as non-uniform rational B-splines (NURBS). Specifically, CAD files contain specifications from which geometric shapes can be generated, thereby allowing representations to be generated. The specifications of the modeled object can be stored in a single CAD file or in multiple CAD files. The typical size of a file representing a modeled object in a CAD system is in the range of 1 megabyte per part. And a modeled object can typically be a combination of thousands of parts.

[0057] In the context of CAD, a modeled object may typically be a 3D modeled object, for example, which represents a product (such as a part or a combination of parts) or possibly a combination of products. By "3D modeled object", it is meant any object modeled by data that allows its 3D representation. The 3D representation allows the part to be viewed from various angles. For example, when represented in 3D, 3D modeled objects can be manipulated and rotated about any of their axes or about any axis in the screen where the representation is displayed. In particular, this does not include 2D icons that are not modeled in 3D. The display of a 3D representation facilitates design (i.e., increases the speed at which the designer statistically completes his task). Since the design of a product is part of the manufacturing process, this can speed up the industrial manufacturing process.

[0058] CAD systems can be history-based. In this case, modeled objects can be further defined by data including the history of geometric features. Modeled objects can indeed be designed by a natural person (i.e., a designer / user) using standard modeling features (e.g., extrusion, rotation, cutting and / or rounding) and / or standard surface features (e.g., scanning, blending, lofting, filling, deformation and / or smoothing). Many CAD systems that support such modeling functions are history-based systems. This means that the creation history of design features is usually saved through a non-cyclic data flow that links the geometric features together through input and output links. The history-based modeling paradigm has been widely known since the early 1980s. Modeled objects can be described by two persistent data representations: history and B-rep (i.e., boundary representation). B-rep is the result of the calculations defined in the history. When representing a modeled object, the shape of the part displayed on the computer screen is the B-rep (e.g., tessellation). The history of a part is the design intent. Basically, history collects information about the operations that have been performed on the modeled object. B-rep can be saved with history to make it easier to display complex parts. History can be saved with the B-rep to allow design changes to be made to the part according to design intent.

[0059] Inference methods allow retrieving such history of geometric features through an editable feature tree when a discrete geometric representation of a 3D shape is fed without any such history (e.g. because no history is saved, or the discrete geometric representation or B-Rep is received from a remote system or retrieved from a database without history).

[0060] Any 3D shape herein may represent the geometry of a product to be manufactured in the real world, such as a (e.g. mechanical) part or assembly of parts (or equivalently an assembly of parts, since from the perspective of these methods an assembly of parts may be considered a part in itself, or the methods may be applied independently to each part of the assembly), or more generally any assembly of rigid bodies (e.g. a moving mechanism). The product may be one of a variety of products in a wide and unlimited range of industrial sectors, including: aerospace, architecture, construction, consumer products, high-tech equipment, industrial equipment, transportation, marine and / or offshore oil / gas production or transportation. Thus, the 3D shape can represent an industrial product, which can be any mechanical part, such as parts of land vehicles (including, for example, automobile and light truck equipment, racing cars, motorcycles, trucks and automotive equipment, trucks and buses, trains), parts of aviation vehicles (including, for example, fuselage equipment, aerospace equipment, propulsion equipment, defense products, aviation equipment, space equipment), parts of naval vehicles (including, for example, naval equipment, merchant ships, offshore equipment, yachts and workboats, marine equipment), general mechanical parts (including, for example, industrial manufacturing machinery, heavy mobile machinery or equipment, installed equipment, industrial equipment products, metal products, tire manufacturing products), electromechanical or electronic parts (including, for example, consumer electronics, safety and / or control and / or instrumentation products, computing and communications equipment, semiconductors, medical devices and equipment), consumer products (including, for example, furniture, home and garden products, leisure products, fashion products, products of hard goods retailers, products of soft goods retailers), packaging (including, for example, food and beverage and tobacco, beauty and personal care, household product packaging).

[0061] As known from the CAD field, an editable feature tree is herein an editable data structure comprising data representing a tree arrangement of geometric operations applied to leaf geometries. Each leaf node of the tree arrangement represents a corresponding leaf geometry, and each non-leaf node of the tree arrangement represents a corresponding geometric operation to be applied to its child nodes, also referred to as a "feature". Therefore, applying the tree arrangement of geometric operations to leaf geometries is equivalent to: starting from the leaf geometry and applying the geometric operations of each non-leaf node in turn according to the tree arrangement. The 3D shape represented by the editable feature tree corresponds to the result of the root node of the editable feature tree.

[0062] Leaf geometry can be of any type. Leaf geometry can, for example, each include (e.g., consist of) a corresponding 3D shape, such as a corresponding 3D entity. Geometric operations can be of any type. In an example, all geometric operations are of the same type, such as all addition / union operations. In such an example, the inference method can be configured to infer those editable feature trees limited to geometric operations of the single type. In an alternative and better example, geometric operations can include different types of operations (e.g., different Boolean operation types (i.e., binary and continuous operators, for example, which associate a new 3D shape with two 3D shapes)), including addition / union operation types, subtraction operation types, and / or intersection operation types. In such an example, the inference method can be configured to infer an editable feature tree using all types of available geometric operations. In particular, any editable feature tree herein can be a constructed solid geometry (CSG) tree known from the field of solid modeling. In a particularly accurate example, the inference method is configured to infer only CSG trees. Tree arrangement can be of any type. In particular, any editable feature tree herein may be a single-rooted tree, a binary tree, and / or a full binary tree (i.e., a binary tree of a type in which each non-leaf node has at least one leaf node as a child node). In particularly efficient examples, the inference method is configured to infer only trees that exhibit this type of arrangement. As will be appreciated, the inference method may be configured to infer an editable feature tree subject to certain conditions via a corresponding neural network architecture provided to the learning method.

[0063] Each leaf geometry of the editable feature tree can be selected and edited by the user. In the case of an editable feature tree where the geometric operations can include operations of different types, one or more of the geometric operations in the examples can be selected and edited by the user. In alternative examples, the geometric operations are not editable. In all examples, branches of the editable feature tree can be deleted and / or branches can be added. The branches themselves are tree arrangements of geometric operations applied to the leaf geometries.

[0064] The editing of leaf geometries or geometric operations can be performed by the user in any manner known in the CAD field, such as including selecting at least one parameter having a current parameter value and modifying the parameter value. Compared with the editing of discrete geometric representations (such as the original mesh), this editing presents ergonomic characteristics. In particular, the inferred editable feature tree can include leaf geometries with a number that is more than 5 times (e.g., more than 10 times) lower than the number of discrete geometric entities of the input mesh, and / or include leaf geometries with a number that is less than 100 (e.g., less than 50). The geometry of each leaf can be defined by a number of parameters that is less than 20 (e.g., less than 10). Therefore, compared with discrete geometric representations, editable feature trees represent 3D shapes in a more compact and organized manner. In addition, as is known from the CAD field, a single parameter acting on an editable feature tree may have a global impact, while in the case where a discrete geometric representation acts on a single geometric entity, only a local impact is presented. For example, any editable feature tree herein can be configured to scale a portion of a 3D shape (e.g., curved, e.g., cylindrical) or the entire 3D shape by modifying a number of parameter values ​​less than 5 (e.g., less than 3) rather than moving / adding a large number of mesh triangles. Additionally, an editable feature tree is more semantically meaningful to a user than a discrete geometric representation.

[0065] In an example, the inference method may include displaying a graphical representation of an editable feature tree, including a tree arrangement of graphical items representing each corresponding leaf geometry or geometric operation. The editing may include, for example, selecting a graphical item by graphical interaction. Graphic interaction herein means operating a tactile device to activate pixels at a position corresponding to the position of a graphical item on a display. For example, a mouse cursor may be placed on a displayed graphical item, or a displayed graphical item may be directly touched via a touch screen, or indirectly touched via a touch pad. The selection may trigger the opening of a dialog box, etc., and the input of one or more parameter values ​​by a user, for example, via a keyboard.

[0066] In an example, the inference method may include displaying a graphical representation of the discrete geometric representation and, concurrently, initiating application of the neural network and inference of the editable feature tree by a user, whereby the graphical representation of the editable feature tree is displayed concurrently with displaying the graphical representation of the discrete geometric representation. The user may then hide the graphical representation of the discrete geometric representation to edit the editable feature tree. Alternatively, the inference method may continue to display both graphical representations concurrently, and as the user performs edits, the method may update (e.g., change) the graphical representation of the discrete geometric representation accordingly. This provides visual feedback to the user performing the edits.

[0067] In an example, the inference method is configured to take as input a 3D mesh or 3D point cloud determined from physical measurements of a real object, and the inference method allows determination of a corresponding editable feature tree representing the 3D shape of the real object. The user can then perform editing of the editable feature tree, for example to create a design similar to but different from the real object. In alternative and additional examples, the inference method is configured to take as input a 3D mesh of a 3D modeled object received from a remote computer system or retrieved from a non-volatile memory that does not have a corresponding editable feature tree, and the inference method allows determination of a corresponding editable feature tree representing the 3D shape. The user can then perform editing of the editable feature tree, for example to create a design similar to but different from the 3D mesh, or to complete a design formed by the 3D mesh.

[0068] In addition to or instead of the possibility to perform editing of 3D shapes in a more ergonomic way, obtaining an editable feature tree can also be used for other purposes, such as 3D shape merging or mechanical simulation.

[0069] The 3D shape merging method may include: providing a first editable feature tree representing a first 3D shape at a computer system; providing a discrete geometric representation of a second 3D shape; performing an inference method on the discrete geometric representation to obtain a second editable feature tree representing the second 3D shape; and merging the first editable feature tree and the second editable feature tree. The merging may be performed according to any merging technique and / or represent a mechanical assembly or mechanical fit between the first 3D shape and the second 3D shape. The merging may, for example, include connecting the second tree to the first tree. The 3D shape merging method may also include: applying a geometric model to the merged tree to obtain a graphical representation of the 3D shape represented thereby; and / or displaying the graphical representation to a user.

[0070] Mechanical simulation can be performed based on the editable feature tree. In fact, since the editable feature tree represents the 3D shape in a compact form (relative to discrete geometry representation) and in a parameterized manner, mechanical calculations can be performed more accurately on the editable feature tree. In particular, it is easier and more direct to calculate the finite element mesh based on CSG (as taught in the paper "Finite-element mesh generation from constructive-solid-geometry models" Edwin Boender, Willem F. Bronsvoort, Frits H. Post, see "Computer-Aided Design", Vol. 26, No. 5, May 1994, pp. 379-392; or the paper "Finite element mesh generation methods: a review and classification", K Ho-Le, p. 38, "Computer-Aided Design", Vol. 20 (January 1 / February 1, 1988)). In addition, CSG also guarantees the waterproofness of the surface. Thus, a mechanical simulation can include calculating one or more finite element meshes based on an editable feature tree (e.g., CSG) and / or one or more modifications thereof, and then performing a finite element analysis based on each finite element mesh. Furthermore, since the CSG is parameterized, the CSG can be easily optimized based on simulation results. Thus, one or more modifications can be used to optimize the editable feature tree (e.g., CSG) based on each previous finite element analysis result.

[0071] Now we will generally introduce the dataset formation method and learning method.

[0072] The data set forming method includes providing corresponding data segments. Each corresponding data segment includes an editable feature tree representing a 3D shape. The editable feature tree includes a tree arrangement of geometric operations applied to leaf geometric shapes. Each corresponding data segment also includes a discrete geometric representation of the 3D shape. The discrete geometric representation corresponds to the result of applying the tree arrangement of geometric operations to the leaf geometric shapes. The data set forming method also includes inserting a portion of the data segment into the data set as a training sample. The corresponding 3D shape of each data segment of the one or more first data segments inserted into the data set is the same as the corresponding 3D shape of the corresponding one or more second data segments not inserted into the data set.

[0073] The term “providing a corresponding data segment” means that, at least at a certain point in the data set forming method, the data segment is recorded in the memory of the computer system and is accessible to the processor.

[0074] The so-called "data set" means any data structure including training samples and configured for machine learning, which is recorded on the memory of the computer system and accessible to the processor. The data set forming method may include recording the data set on a non-volatile memory.

[0075] By "inserting" or "not inserting" a data segment as a training sample into a data set, it is meant that at least at a certain moment (e.g., the end) of the data set formation method, the data set is recorded on a (e.g., non-volatile) memory of a computer system in a state in which the data set includes all "inserted" data segments (i.e., they are therefore recorded on the memory within a data structure representing the data set), while the data set excludes (i.e., does not include) all "non-inserted" data segments (i.e., they are therefore not recorded on the memory at least within the data structure representing the data set). Therefore, at least at said moment and with respect to the same data set recorded on the storage location, all first data segments are recorded simultaneously, while no second data segments are recorded. Then, in an example after further processing of the data set, learning may be based on the data set. The learning may involve (e.g., substantially only involve) the first data segments (e.g., substantially all first data segments), while substantially not involving the second data segments. Therefore, the learned neural network will be consistent with the first data segments, but not with the second data segments.

[0076] The method for forming a data set forms an improved solution for digitization. The formed data set includes training samples, each training sample includes a discrete geometric representation of a corresponding 3D shape and a corresponding editable feature tree representing the 3D shape. Therefore, the data set is configured for learning a neural network, which in an example using the proposed learning method can be used to convert the discrete geometric representation into an editable feature tree representation. In addition, the data set is labeled with respect to the expected learning. In fact, the potential inputs of the neural network (discrete geometric representations) are respectively labeled in the data set by the ground truth output (corresponding editable feature trees). Therefore, supervised learning can be achieved and is therefore particularly effective. In addition, not all provided data segments are filled in the data set. On the contrary, in the training sample, there are one or more (first) data segments corresponding to a 3D shape, which is the same as the corresponding 3D shape of the one or more (second) data segments provided, but is not part of the training sample. This filtering of the second data segment improves learning. In fact, in the best case, the second data segment forms redundant information relative to the first data segment. In the worst case, the second data segment forms inconsistent information relative to the first data segment, thereby disrupting the learning. Filtering can be called "redundancy" reduction / management.

[0077] The learning method includes providing a data set, the data set including discrete geometric representations of corresponding 3D shapes. The learning method also includes providing a candidate set of leaf geometries. The learning method also includes learning a neural network based on the data set and based on the candidate set. The candidate set includes at least one continuous subset of the leaf geometries.

[0078] By "providing a candidate set of leaf geometries", it is meant that the learning method (in particular the learning step) is enabled to consider each element of the candidate set as a candidate for inference (at least at some point in time). As is known from the field of machine learning, the learning step may comprise freely setting the weight values ​​of the neural network so that the inference method tends to perform inferences consistent with the data set fed to the learning method. By "providing a candidate set of leaf geometries", it is meant that the neural network architecture is predetermined in some way, and the learning step is performed in some way, so that each element of the candidate set is available for potential inference during inference. In the example, each element of the candidate set is a candidate for each inferred leaf geometry (i.e., any position in the tree arrangement).

[0079] By "continuous" is meant that each candidate leaf geometry of the subset can be obtained by a certain continuous deformation (e.g., parameterized with a fixed number of parameters) of another candidate leaf geometry of the subset, such that each intermediate state of the continuous deformation is itself a candidate leaf geometry of the subset. In an example, the candidate set of leaf geometries includes several continuous subsets (e.g., one subset per primitive shape type).

[0080] The learning method forms an improved solution for digitization. It is noteworthy that the learned neural network can be used to convert a discrete geometric representation into an editable feature tree. As already discussed, this is particularly useful in the context of digitization. Moreover, utilizing the learned neural network to perform such digitization allows to realize the benefits offered by the field of machine learning, such as fast or real-time execution, the absence of tedious prior manual programming / coding, and the accuracy of the results (for example, accuracy here refers to the value of the 3D similarity evaluated between the result of playing the output editable feature tree and the input discrete geometric representation). Thus, the learning method improves ergonomics in the context of 3D design. Moreover, in contrast to the solution proposed in the paper

[10] , the candidate set of leaf geometries includes at least one continuous subset of leaf geometries. This improves the accuracy of learning. In fact, since at least one continuum of 3D shapes is all accessible to become leaves of the inferred editable feature tree, inference can be performed in a good way in such a continuum.

[0081] The learning may comprise supervised training based on at least a portion of the data set. In such a case, the at least a portion of the data set comprises, for each discrete geometric representation, a corresponding editable feature tree that together with the discrete geometric representation forms a (labeled) training sample. The at least a portion of the data set may be provided according to any method, for example formed according to a data set formation method.

[0082] Alternatively or additionally, learning may comprise unsupervised training based on at least another portion of the data set. In such a case, the discrete geometric representations of the at least another portion of the data set each form a corresponding (unlabeled) training sample. The at least another portion of the data set may be provided according to any method, for example retrieved as a commercial database of discrete geometric representations.

[0083] In a particularly efficient example, the learning method may include supervised training based on a data set formed by a data set formation method. In a robust example of such an example, learning may also include unsupervised training based on another data set, such as after supervised training. As known from the field of machine learning, each training may include iteratively processing the corresponding data set, such as small batches one by one, and modifying the weight values ​​of the neural network along the iterative processing. This can be performed according to stochastic gradient descent. For each training, the weight values ​​may be initialized in any way. In the example, the weight values ​​of unsupervised training may be initialized with the weight values ​​obtained at the end of supervised training. The weight values ​​may be initialized in any way for supervised training, such as randomly or by initializing each weight value to a zero value. Therefore, the data set formation method and supervised training form a method for initializing weight values ​​for further training, that is, unsupervised training based on another data set. Another data set may, for example, be an unlabeled data set that is more representative of reality than a labeled data set formed by a data set formation method. Therefore, unsupervised training may produce more accurate results than stopping after supervised training. However, as known from the field of machine learning, unsupervised training can be very long and provide incorrect results if initialized arbitrarily. In the proposed method, supervised learning provides a relatively good initialization.

[0084] The method is computer-implemented.

[0085] This means that the steps (or substantially all steps) of the method are performed by at least one computer or any similar system. Thus, the steps of the method may be performed fully automatically or semi-automatically by a computer. In an example, the triggering of at least some steps of the method may be performed by user-computer interaction. The required level of user-computer interaction may depend on the level of automation foreseen and balanced with the need to implement the user's wishes. In an example, the level may be user-defined and / or predefined.

[0086] This also means that the neural network, the data set, one or more (e.g., all) inputs and / or one or more (e.g., all) outputs can be represented by corresponding data structures, respectively. One or more (e.g., all) data structures can be non-temporarily recorded on corresponding data storage media, respectively.

[0087] A typical example of a computer implementation of the method is to perform the method using a system suitable for this purpose. The system may include a processor coupled to a memory and a graphical user interface (GUI), the memory having a computer program recorded thereon, the computer program including instructions for performing the method. The memory may also store a database. The memory is any hardware suitable for such storage, and may include several physically distinct parts (e.g., one for the program and perhaps one for the database). The system may be a CAD system.

[0088] Figure 1 An example of a GUI for any system herein is shown, where the system is a CAD system.

[0089] GUI 2100 can be a typical CAD-like interface with a standard menu bar 2110, 2120 and bottom and side toolbars 2140, 2150. Such menus and toolbars contain a set of user-selectable icons, each of which is associated with one or more operations or functions as known in the art. Some of these icons are associated with software tools suitable for editing and / or working on the 3D modeling object 2000 displayed in GUI 2100. Software tools can be grouped into workbenches. Each workbench contains a subset of software tools. In particular, one of the workbenches is an editing workbench suitable for editing the geometric features of the modeling product 2000. In operation, the designer can, for example, pre-select a part of the object 2000, and then start an operation (e.g., change size, color, etc.) or edit geometric constraints by selecting an appropriate icon. For example, a typical CAD operation is to model the punching or folding of the 3D modeling object displayed on the screen. The GUI can, for example, display data 2500 related to the displayed product 2000. In the example of the figure, data 2500 and its 3D representation 2000, displayed as a "feature tree", relate to a brake assembly including a brake caliper and a disc. The GUI may also show various types of graphical tools 2130, 2070, 2080, such as for facilitating 3D orientation of an object, for triggering simulation of an operation of an edited product, or for rendering various properties of the displayed product 2000. A cursor 2060 may be controlled by a haptic device to allow the user to interact with the graphical tools.

[0090] The 3D modeled object 2000 may be a graphical representation of a discrete geometric representation of a 3D shape, and the inference method may allow determining an editable feature tree 2500. Thus, the inference method allows starting from a discrete geometric representation 2000 of a 3D shape that has no feature tree associated therewith, and then, retrieving an editable feature tree 2500. This allows using all the capabilities of the CAD system.

[0091] Figure 2 An example of any system herein is shown where the system is a client computer system, such as a user's workstation.

[0092] The client computer of this example includes a central processing unit (CPU) 1010 connected to an internal communication bus 1000, a random access memory (RAM) 1070 also connected to the bus. The client computer is also provided with a graphics processing unit (GPU) 1110, which is associated with a video random access memory 1100 connected to the bus. Video RAM 1100 is also known in the art as a frame buffer. A mass storage device controller 1020 manages access to a mass storage device such as a hard disk drive 1030. Mass storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example: semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks 1040. Any of the above items may be supplemented or combined by specially designed ASICs (application specific integrated circuits). A network adapter 1050 manages access to a network 1060. The client computer may also include a tactile device 1090, such as a cursor control device, a keyboard, etc. A cursor control device is used in a client computer to allow a user to selectively position a cursor at any desired location on the display 1080. In addition, the cursor control device allows the user to select various commands and input control signals. The cursor control device includes a plurality of signal generating devices for inputting control signals to the system. Typically, the cursor control device may be a mouse, the buttons of which are used to generate signals. Alternatively or in addition, the client computer system may include a sensitive pad and / or a sensitive screen.

[0093] Any computer program herein may include instructions executable by a computer, the instructions including means for causing the above-mentioned system to perform the method. The program may be recorded on any data storage medium, including the memory of the system. The program may be implemented, for example, in a digital electronic circuit or in computer hardware, firmware, software, or a combination thereof. The program may be implemented as a device, such as a product tangibly embodied in a machine-readable storage device to be executed by a programmable processor. The method steps may be performed by a programmable processor executing an instruction program to perform the functions of the method by operating on input data and generating output. Therefore, the processor may be programmable and coupled to receive data and instructions from a data storage system, at least one input device, and at least one output device, and to send data and instructions to a data storage system, at least one input device, and at least one output device. If necessary, the application may be implemented in a high-level process or object-oriented programming language or in an assembly or machine language. In any case, the language may be a compiled language or an interpreted language. The program may be a complete installation program or an update program. In any case, the application of the program on the system generates instructions for executing the method.

[0094] Any method herein may be part of a process for designing a 3D modeled object. "Designing a 3D modeled object" specifies any action or series of actions that is at least part of a process for drawing up a 3D modeled object. Thus, the method may comprise creating a 3D modeled object from scratch. Alternatively, the method may comprise providing a previously created 3D modeled object and then modifying the 3D modeled object.

[0095] Any method herein may be included in a manufacturing process, which may include, after executing the method, producing a physical product corresponding to the modeled object. In any case, the modeled object designed by the method may represent a manufactured object. Therefore, the modeled object may be a modeled entity (i.e., a modeled object representing an entity). The manufactured object may be a product, such as a part or a combination of parts. Because the method improves the design of the modeled object, the method also improves the manufacture of the product, and therefore increases the productivity of the manufacturing process.

[0096] Now let's discuss examples of leaf geometry.

[0097] One or more (e.g., all) leaf geometries provided in the dataset formation method (as part of an editable feature tree for the corresponding data segment), one or more (e.g., all) candidate leaf geometries provided in the learning method, and / or one or more (e.g., all) leaf geometries provided by the inference method (as part of an inferred editable feature tree) can be consistent with these examples, respectively.

[0098] Given a discrete set of primitive shape types, and for each primitive shape type, a corresponding discrete set of one or more parameter domains, each having a corresponding continuous parameter, wherein each parameter domain has a corresponding parameter value for the corresponding continuous parameter, a leaf geometry may be formed by the corresponding primitive shape type using the corresponding parameter value of each parameter domain in the corresponding discrete set of one or more parameter domains.

[0099] Thus, the dataset formation method and / or the learning method may be based on such a discrete set of primitive shape types and, for each primitive shape type, such a corresponding discrete set of one or more parameter domains. These sets may be the same or different for the dataset formation method and the learning method. In the case where the sets are the same, the machine learning process is particularly accurate because the leaf geometries of the training samples are consistent with the leaf geometry candidates used for derivation.

[0100] Now, the candidate set of leaf geometries in the learning method may include a set product between discrete sets of primitive shape types and, for each primitive shape type, a corresponding discrete set of one or more parameter domains. Each element in the set product represents a corresponding candidate leaf geometry.

[0101] In the case of a data set formation method, each leaf geometry of a training sample may belong to such a set product. In an example, the data set formation method may include providing initial data, the initial data comprising (data representations of) a discrete set of primitive shape types and, for each primitive shape type, a corresponding discrete set of (data representations of) one or more parameter domains. In such an example, a leaf geometry may be provided (e.g., synthesized) based on such initial data.

[0102] By "primitive shape type", it is meant a class of geometric shapes (e.g., solids) each of which presents a common general form (e.g., a user-recognizable form). A primitive shape type is associated with parameters. Each parameter takes a value in a set called a "parameter domain" (which may be an interval, i.e., a continuous range of real numbers), and providing a specific parameter value for each parameter domain defines an instance of a primitive shape type. A primitive shape type may be defined by a corresponding set of one or more parameters and a predetermined algorithm configured to generate such geometric shape instances of the primitive shape type when fed with the corresponding set of parameter values. The instances form leaf geometries that may intervene in one or more editable feature trees.

[0103] Primitive shape types can each be associated with one or more continuous parameters. By "continuous" a parameter, we mean that the function of the output leaf geometry is at least piecewise continuous with respect to the parameter. We can also say that the parameter domain is at least piecewise continuous. This can allow for compact representation of a variety of shapes.

[0104] In an example, for each of the one or more primitive shape types, the one or more corresponding continuous parameters include one or more size parameters and / or one or more positioning parameters. Size parameters are parameters that define the size of a characteristic dimension of a shape of a given primitive shape type. Size parameters may be specific to each primitive shape type. Positioning parameters are parameters that allow positioning of a shape in 3D space. Positioning parameters may be the same for all primitive shape types, such as (x, y, z) coordinates defined relative to a (0, X, Y, Z) reference.

[0105] In an example that is particularly efficient with respect to computational time and / or convergence of learning and representation of the diversity of real cases, the discrete set of primitive shape types may include a cuboid type, a sphere type, one or more cylinder types, and / or one or more prism types. In an example, the discrete set of primitive shape types may include any one or any combination (e.g., all) of the following types:

[0106] - a cuboid, for example parameterized by three positioning parameters and three size parameters;

[0107] - A sphere, for example, parameterized by three positioning parameters and one size parameter (diameter)

[0108] - a right cylinder oriented along the X, Y or Z axis (thus corresponding to the three primitive shape types), for example parameterized by three positioning parameters, one size parameter representing the height and one size parameter representing the diameter;

[0109] - a right prism with an isosceles trapezoidal base oriented along the (X, Y), (X, Z), (Y, Z), (Y, X), (Z, X), (Z, Y) axes (thus corresponding to six primitive shape types), parameterized, for example, by three positioning parameters, one size parameter representing the base of the large trapezoid, one size parameter representing the length of the base of the small trapezoid, one size parameter representing the height of the trapezoid, and one size parameter representing the depth of the prism.

[0110] The discrete set of primitive shape types may include any other primitive shape types, such as unoriented cylinders with more than three rotation parameters, polygonal base cylinders, non-rectilinear cylinders, polygonal base prisms, non-oriented prisms, and / or irregular polyhedrons.

[0111] Any leaf geometry provided herein (e.g., on memory) can be recorded (e.g., within a provided data segment, training sample, and / or inferred output) as a data structure that includes data representing the primitive shape type (e.g., text information) and, for each parameter, corresponding data representing the parameter value (e.g., a value, such as a floating point number).

[0112] Examples of dataset formation methods are now discussed.

[0113] In a first example, the inserting may include: for each of the one or more (e.g., all) first data segments (i.e., inserted into the data set), selecting the first data segment according to the canonicity of the editable feature tree of the first data segment. For example, for each of the one or more (e.g., all) first data segments, the editable feature tree of the first data segment is more canonical than the editable feature tree of each of the one or more (e.g., substantially, e.g., all) corresponding second data segments (i.e., not inserted into the data set). By "more canonical" a first editable feature tree representing a 3D shape relative to a second editable feature tree representing the same 3D shape, it is meant that the sum of the sizes (e.g., volumes) of the leaf geometries (e.g., entities) of the first editable feature tree is less than (or equal to) the sum of the sizes (e.g., volumes) of the leaf geometries (e.g., entities) of the second editable feature tree. By "substantially", it is meant that the insertion may be intended to maximize the canonicity of each of the first data segments relative to their corresponding second data segments, but the decision may rarely be non-optimal, so that sometimes a true minimum is not reached. Providing high regularity to the editable feature trees of training samples improves the accuracy of learning by reducing (eg, avoiding) ambiguities that may arise in cases where non-regularity is authorized.

[0114] In a second example that may be combined with the first example, providing the corresponding data segment may include synthesizing the data segment.

[0115] By "synthesis", it is meant an automatic process including generating an editable feature tree and a discrete geometric representation. In an example, the method may first synthesize an editable feature tree, and then determine the discrete geometric representation (including) by applying a tree arrangement of geometric operations to leaf geometric shapes. The data set formation method may, for example, include providing a predetermined scheme for playing an editable feature tree, and determining the discrete geometric representation may be automatically performed by applying the scheme to the editable feature tree. The method may also optionally further add noise to one or more discrete geometric representations (e.g., Perlin noise). This allows a more realistic discrete geometric representation to be obtained, and thus improves the robustness of the learning.

[0116] The synthesis may be suboptimal (in terms of redundancy and / or canonicity of its elements). Therefore, at least some of the synthesized data segments may be filtered out and thus not inserted into the dataset, optionally after determining other data based on them (e.g., at least one such other data segment is eventually inserted into the dataset). In other words, the dataset is not populated with all the synthesized data, but with a selected strict portion thereof.

[0117] In a first option of such a second example (which also applies to other examples besides the second example), filtering out may include providing a pair of (third and fourth) data segments, and testing the identity between the 3D shapes of at least one (e.g., each) pair of (third and fourth) data segments. The test may be predetermined and define the same characters between a pair of 3D shapes: if the test between the representative data segments of a pair of 3D shapes is positive, the pair of 3D shapes is considered to be the same. Thus, when the test produces a positive result (and therefore determines that the third and fourth data segments are redundant), filtering out may identify a data segment in the third and fourth data segments as a second data segment (not inserted into the data set), thereby filtering out the second data. The identified data segment may optionally be the least standardized data segment (i.e., the data segment with the least standardized editable feature tree).

[0118] In a second option of a second example that can be combined with the first option, the data segment may include one or more (e.g., different and / or non-intersecting) data segment groups, and all data segments of the corresponding group represent the same 3D shape. In other words, all editable feature trees of each group result in discrete geometric representations representing the same 3D shape. In such a case, the data set formation method may retain only one or more (e.g., one) data segments inserted into the data set as training samples for at least one (e.g., each) group (optionally based on normativeness (e.g., the data segment with the most normative editable feature tree), and discard / delete (i.e., not include in the data set) any other data segments in the group.

[0119] In a specific example of the second option, the groups may be processed as in the first option, i.e., using a "segment pair" approach, including a test step. In such an example, the groups and pairs may be provided in any manner. For example, the process may not have a priori knowledge of the groups. In such a case, a test allows ensuring that the third and fourth data segments are in the same group.

[0120] For example, synthesis may include generating at least one initial data segment, and then, based on the initial data segment, determining at least one future data segment. Each initial data segment and its future data segment form a corresponding group. The step of determining the future data segment may include: starting from the initial data segment, iteratively performing the step of editing the editable feature tree, and the output of each iteration (of the step of editing the editable feature tree) forms the future data segment. The so-called "iteratively starting from the initial data segment" means that the step of editing the editable feature tree is repeated one or more times, and the output of the previous time is used as input at each time t, and the initial (i.e., starting / first) input (at the initial time t=0) is the editable feature tree of the initial data segment. In each iteration, the previous time may be the previous time (i.e., corresponding to the previous iteration, i.e., t-1) or any other previous time (such as the initial time t=0). The iteration may correspond to a blind exploration of the group, for example, aiming to find the most standardized data segment to be determined as the first data segment to be inserted into the data set. Iteratively synthesizing and providing data segments can improve computational efficiency compared to providing an original (unorganized) set of synthesized data segments. Indeed, iterative processing with synthesis allows organizing the data segments and working naturally group by group, thereby at least reducing unnecessary testing, compared to randomly (and therefore harshly) processing already synthesized but unorganized data.

[0121] In particular, the test can be interleaved with the synthesis. For example, the test can be performed (e.g., essentially only) after each step of the editable feature tree editing. In such an example, the third data segment can be a future data segment determined at the current time, and / or the fourth data segment can be another available data segment, such as an initial data segment or a future data segment determined at a previous time, such as a data segment input to the current step of the editable feature tree editing. The test allows to know whether the iteration stays in the group, in other words, whether the step of the editable feature tree editing modifies the represented 3D shape. If the test produces a positive result, filtering can be performed as described above, and the iteration can continue (e.g., to explore the group). In other words, filtering is interleaved with synthesis, and thus follows the order of synthesis. Alternatively, if the test produces a negative result, it means that the third data segment does not belong to the group. In such a case, the third data segment can be deleted / discarded or alternatively retained for any purpose (inserting it into the data set, or starting another separate iteration from the data set to explore a separate group). In any case, the third data segment is discarded from the current iteration, which may be continued, for example, by returning to the fourth data segment and performing a different editable feature tree edit.

[0122] The processing of one group according to the second option (e.g., including generating an initial data segment corresponding to the group) has been discussed. In the example of the second option, the same processing may be performed for at least one (e.g., each) other group (e.g., including generating an initial data segment corresponding to each other group). All groups may be processed in parallel or sequentially.

[0123] In a third example that can be combined with the first and / or second examples, for each first data segment (i.e., inserted into a data set), the editable feature tree of the first data segment can be structurally compatible with (e.g., and more standardized than) the editable feature tree of each corresponding second data segment (i.e., corresponding to the first data segment and not inserted into the data set). When the first editable feature tree and the second editable feature tree potentially produce the same 3D shape, they are considered to be "structurally compatible". "Structural compatibility" can correspond to any predetermined tree structure compatibility standard. For example, when the first editable feature tree and the second editable feature tree at least partially match each other, they can be considered to be "structurally compatible". The predetermined tree structure compatibility standard can measure the degree to which the elements of the two editable feature trees are the same. In fact, two editable features with a large number of identical elements potentially produce the same 3D shape. Two identical editable features must be structurally compatible. However, two structurally compatible editable feature trees can be the same or different. The third example improves efficiency.

[0124] For example, in the first option of the second example, for a process including one or more (e.g., all) "segment pairs" of test steps, the third and fourth data segments may be structurally compatible (i.e., have structurally compatible editable feature trees). This allows the test to be performed only in cases where a positive result is particularly likely, thereby improving efficiency.

[0125] Alternatively or in addition, still in the first option of the second example, the test may include a volume comparison scheme. The volume comparison scheme may include calculating a first volume value and a second volume value (using any volume calculation scheme based on discrete geometric representation), and comparing the first volume value with the second volume value. The first volume value represents the volume of the discrete geometric representation of the third data segment. The second volume value represents the volume of the discrete geometric representation of the fourth data segment. This provides a fast identity test. When a pair of 3D shapes involved in the test have editable feature trees that are structurally compatible, the speed can be achieved at a relatively low robustness cost.

[0126] Alternatively or additionally, in the second option of the second example, at least one (e.g., each) group of data segments may be structurally compatible in pairs. For example, the step of editing the editable feature tree may ensure (i.e., be constrained to make) each output data segment structurally compatible with the input data segment. The structural compatibility between editable feature trees may form an equivalence relation. This improves efficiency, particularly when the second option of the second example includes a test for the first option of the second example.

[0127] In the third example option, the first editable feature tree and the second editable feature tree may be considered "structurally compatible" when the following two (e.g., necessary and / or sufficient) conditions are met:

[0128] Condition 1, the first editable feature tree has a corresponding (first) tree arrangement of geometric operations that at least partially matches the (second) tree arrangement of geometric operations of the second editable feature tree. In other words, at least a portion of the first tree arrangement matches (i.e., is equal / identical to) at least a portion of the second tree arrangement. In the example, the first tree arrangement may match (i.e., is equal / identical to) the second tree arrangement, or the first (or correspondingly the second) tree arrangement may be included in (i.e., matches a portion of) the second (or correspondingly the first) tree arrangement. In addition, each pair of corresponding geometric operations is the same. Condition 1 may also optionally provide that the first tree arrangement and the second tree arrangement completely match each other, except that one or both of them have one or more additional single-leaf branches (i.e., branches with only one leaf node) relative to the other. In other words, the first tree arrangement and the second tree arrangement may differ from each other only because the first tree arrangement may have additional leaf geometry relative to the second tree arrangement and / or because the second tree arrangement may have additional leaf geometry relative to the first tree arrangement.

[0129] Condition 2: Each pair of corresponding leaf geometries has the same corresponding primitive shape type, and for each non-size parameter (every parameter except the size parameter), each pair of corresponding leaf geometries has the same corresponding parameter value. In other words, each pair of corresponding leaf geometries is identical except for their size parameter values.

[0130] The so-called "correspondence" for a pair of elements means that the first element of the first editable feature tree and the second element of the second editable feature tree are located at matching positions of their corresponding editable feature trees (tree arrangement matching provided according to condition 1).

[0131] Editable feature trees that satisfy these two conditions potentially produce the same 3D shape, because even though the size parameter values ​​may be different, the geometric operations, primitive shape types, and other parameters may make the generated 3D shapes the same. And in an example, the corresponding data segments provided by the data set formation method can effectively include one or more corresponding data segment sets, wherein the corresponding editable feature trees of each set are all structurally compatible. In an example, one or more sets may each include at least two data segments corresponding to editable feature trees representing different (i.e., different) 3D shapes. However, alternatively or in addition, the set may include at least two data segments corresponding to editable feature trees having at least one different size parameter (for primitive shape types of at least one leaf geometry and still representing the same 3D shape). The data set formation method may insert a single data segment in the two data segments. The determination of the single data segment may be performed in any manner.

[0132] The second example will now be discussed further.

[0133] In an example, a data set formation method may include providing initial data, the initial data including a discrete set of primitive shape types, and for each primitive shape type, a corresponding discrete set of one or more parameter domains. This means that for each primitive shape type, the initial data includes a corresponding data structure corresponding to an object class (referring to object-oriented programming), which has fields corresponding to the parameters of the primitive shape type. In such a case, synthesis of corresponding data segments can be performed based on the initial data. For example, providing at least one corresponding data segment may include synthesizing an editable feature tree based on the initial data. Synthesis may include a tree arrangement of generation operations, and for each leaf node of the tree arrangement, generating leaf geometry based on the initial data. In particular, the generation of leaf geometry may include selecting a primitive shape type, and selecting a parameter value for each parameter of the primitive shape type. This corresponds to creating an instance of a given class.

[0134] In the case where the method is not limited to trees involving a single type of geometric operation, the initial data may also include a set of geometric operations. In such a case, the tree arrangement of the generated operations may include a generated tree arrangement, and for each non-leaf node, a geometric operation is selected. The set of geometric operations may be discrete, for example including one or more Boolean operations, including addition / union, subtraction and / or intersection. This is particularly suitable for generating CSG trees.

[0135] The spanning tree arrangement can include a tree structure that generates nodes and connects nodes. As discussed earlier, the tree arrangement can be limited to a single-rooted tree, a binary tree and / or a full binary tree. In particular, one or more editable feature trees can be generated in a tree that is both a single-rooted and a full binary type, and wherein each non-leaf node has at least one leaf node as a child node. In such a case, the spanning tree arrangement can include the depth of the selection tree arrangement, that is, the number of non-leaf nodes. This information is enough to fully define the tree of the type.

[0136] Any selection performed when synthesizing an editable feature tree can be performed via (e.g., random) sampling. This allows the generation of data that relatively well represents the diversity of real situations. Therefore, this leads to accurate learning in the end.

[0137] Any (eg, random) sampling may include uniform (eg, random) sampling within a set, where values ​​of the variable are selected (eg, random uniform sampling is random sampling according to a uniform probability distribution).

[0138] For example:

[0139] - The depth can be sampled according to a uniform distribution over the set of all integers greater than N1 and less than N2, where N1 is a "minimum depth" integer greater than 0 and / or less than 5 (e.g. equal to 1), and N2 is a "maximum depth" integer greater than N1 and / or less than 100, 50 or 20 (e.g. equal to 7).

[0140] - Primitive shape types may be sampled according to a uniform distribution over a discrete set of primitive shape types.

[0141] - Each Boolean operation can be sampled according to a uniform distribution over a discrete set of Boolean operations (e.g., consisting of addition / union, subtraction, and intersection).

[0142] - The parameter values ​​of each selected primitive shape type may be sampled according to a uniform distribution in a hyperrectangle (a Cartesian product of intervals, each interval forming a parameter domain of a corresponding parameter specific to a primitive shape type). For simplicity, the data set formation method may uniformly sample all parameters of each of the above primitive shape types in a hypercube [a, b]^l, where l is the number of parameters of the primitive shape type, and a and b are real numbers, a may be greater than or equal to 0 and / or less than or equal to 1 (e.g., equal to 0.2). b may be greater than or equal to 1 and / or less than or equal to 10 (e.g., equal to 2).

[0143] A specific example of the second option in the second example is now discussed further.

[0144] When, for each of the one or more primitive shape types, the one or more corresponding continuous parameters include one or more size parameters, in an example, the synthesis may include a mix between the following two operations: generating one or more initial data segments based on the initial data (as described above), respectively; and based on each such generated initial data segment, deriving one or more corresponding other (future) data segments based on a modification of the generated data segment. In an example, the synthesis may include an initial generation of at least one (e.g., several) initial data segments based on the initial data. For each size parameter (of each leaf geometry), the initial generation includes the earlier described selection of the initial parameter value (e.g., via sampling, optionally via random sampling). In such an example, the synthesis may then include (e.g., for one or more (e.g., each) generated initial data segments): starting from the initial data segment, iteratively determining one or more future data segments; modifying one or more parameter values ​​of the corresponding size parameters and / or deleting one or more leaf geometries.

[0145] In particular, starting from an initial data segment, the iterative process may include: reducing (e.g., to the maximum extent) one or more (e.g., as many as possible) size parameter values ​​and / or deleting one or more (e.g., as many as possible) leaf geometries while keeping the represented 3D shape the same. In other words, the iterative process aims to replace the initial data segment with a more canonical data segment representing the same 3D shape, for example, replacing the initial data segment with the most canonical data segment that can be obtained by reducing the size parameter values ​​and / or deleting leaf geometries and still representing the same 3D shape as the initial data segment.

[0146] In an example, the iterative processing may include a reduction algorithm starting from an initial data segment, the reduction algorithm including:

[0147] a. Initialization:

[0148] o a third data segment (i.e., a variable), and

[0149] ο the fourth data segment (i.e., variable);

[0150] b. Set the value of the fourth data segment to the initial data segment;

[0151] c. Mark as “Not Visited”:

[0152] o all leaf geometries of the editable feature tree of the fourth data segment, and

[0153] o all dimensional parameters of all leaf geometries of the editable feature tree of the fourth data segment;

[0154] d. Select an unvisited leaf and mark the selected leaf as visited (otherwise, if no unvisited leaves are available, jump to step k);

[0155] e. Select an unvisited size parameter for the selected leaf and mark the selected size parameter as visited (otherwise, if no unvisited size parameter is available, return to step d);

[0156] f. Initialize a parameter reduction value greater than 0 and less than the parameter value of the selected size parameter (e.g., half of the parameter value of the selected size parameter, which corresponds to a bisection algorithm);

[0157] g. setting the value of the third data segment to the result of subtracting the parameter reduction value from the parameter value of the selected size parameter;

[0158] h. testing the identity between the 3D shape of the third data segment and the 3D shape of the fourth data segment (e.g., via a simple volume comparison between the discrete geometric representations of the third and fourth data segments, since their editable trees are structurally compatible);

[0159] i. If the test produces a positive result, then:

[0160] o replacing the value of the fourth data segment with the value of the third data segment (the fourth data segment is identified as the second data segment and therefore its value may be deleted);

[0161] o Return to step f;

[0162] j. Otherwise (i.e. the test produces a negative result):

[0163] o reducing the parameter reduction value (e.g. halving, which corresponds to the bisection algorithm);

[0164] o If the parameter reduction value is higher than a predetermined threshold (e.g., 0.1 or 0.05), return to step g, otherwise return to step e;

[0165] k. Mark all leaf geometries of the editable feature tree of the fourth data segment as “unvisited”;

[0166] 1. Select an unvisited leaf and mark the selected leaf as visited (otherwise, if no unvisited leaves are available, the algorithm ends);

[0167] m. Set the value of the third data segment to the result of deleting the selected leaf from the fourth data segment;

[0168] n. testing the identity between the 3D shape of the third data segment and the 3D shape of the fourth data segment (e.g., via a simple volume comparison between the discrete geometric representations of the third and fourth data segments, since their editable trees are structurally compatible);

[0169] o. If the test produces a positive result, then:

[0170] o replacing the value of the fourth data segment with the value of the third data segment (the fourth data segment is identified as the second data segment and therefore its value may be deleted);

[0171] οReturn to step I.

[0172] The reduction algorithm comprises a first "for" loop on the leaves for reducing as many geometric leaves as possible, a second "for" loop on the size parameters embedded in the first "for" loop for reducing each size parameter to the maximum extent, and then a third "for" loop on the leaves for deleting as many geometric leaves as possible.

[0173] The reduction of each primitive shape type can be performed size-by-size parameter, for example according to the X, Y or Z axis. The order of the sizes to be considered can be set arbitrarily. The reduction of one size may affect at least one parameter. For example, if the synthesis is trying to reduce a cube, then if the three dimensions of the cube (length, width, depth) are aligned in X, Y, Z, each dimension will have only one affecting parameter. In contrast, in more complex cases, such as the reduction of a right isosceles trapezoidal prism oriented along the axes (X, Y), several parameters may be affected in parallel.

[0174] Now let's discuss examples of learning methods.

[0175] In an example, the neural network may include recursive neural network (RNN) cells (i.e., cells of the same RNN). Such an example allows learning an accurate neural network, and thereby performing accurate inference, that presents (via the RNN) a sequential architecture corresponding to the sequential features of the editable feature tree to be inferred.

[0176] In particular, each RNN unit outputs corresponding first data for inferring a corresponding primitive shape type and corresponding second data for inferring a corresponding parameter value for each parameter domain of a corresponding discrete set of one or more parameter domains at a corresponding time step. Thus, the output data allows the corresponding leaf geometry to be inferred. The geometric operation can be inferred in any manner, such as predetermined (e.g., the inferred editable feature tree can be limited to an additive tree so that each geometric operation is an addition). Alternatively, each RNN unit can also output corresponding data for inferring the corresponding geometric operation at a corresponding time step (e.g., in a predetermined set of geometric operations, such as including or consisting of addition / union, subtraction and / or intersection). The number of time steps can be predetermined. Alternatively, each RNN unit can also output corresponding data for inferring an end or continue decision (i.e., an end marker) of the editable feature tree.

[0177] We now discuss particularly effective examples of RNN outputs.

[0178] The corresponding first data may include a corresponding discrete distribution of probabilities, each probability being attributed to a corresponding discrete set of discrete sets of primitive shape types. In other words, each RNN unit outputs a probability distribution over primitive shape types so that a possible primitive shape type can be inferred for a leaf geometry corresponding to a corresponding time step.

[0179] Alternatively or additionally, the corresponding second data comprises (for each primitive shape type) corresponding parameter values ​​for each parameter domain in a corresponding discrete set of one or more parameter domains. In other words, the RNN unit directly outputs parameter values ​​for the inferred primitive shape type. This simplifies learning and improves convergence and accuracy, particularly because the parameters are continuous and it is difficult to learn neural networks that output density distributions.

[0180] In addition, the optional corresponding data for inferring the corresponding geometric operation may include a corresponding (e.g., discrete) distribution of probabilities, each probability being attributed to a corresponding geometric operation in a predetermined (e.g., discrete) set of geometric operations. In addition, the corresponding data for inferring the end marker may include a probability of ending and / or a probability of continuing (e.g., a Bernoulli distribution), which is the same as a classical RNN.

[0181] We now discuss the architecture of a neural network that produces particularly accurate results.

[0182] In an option, the neural network may include an initial encoder that takes as input a discrete geometric representation or a representation thereof. In an example, the encoder may be a point cloud encoder (e.g., a PointNet encoder) and directly takes as input a point cloud (forming a discrete geometric representation or representing a discrete geometric representation and / or extracted from a discrete geometric representation). In other examples, the encoder may be a 2D convolutional neural network (CNN) and takes as input 2D image data (representing a discrete geometric representation and / or extracted from a discrete geometric representation). The 2D image data may be a single-channel rendering (i.e., a single-view image) or a multi-channel rendering (i.e., a multi-view image) of a discrete geometric representation. In an efficient example, the multi-channel rendering may be a four-view rendering based on four viewpoints (e.g., regularly) distributed around the discrete geometric representation, such as substantially forming a square around the discrete geometric representation.

[0183] In an alternative or additional option, each RNN unit may take as an (additional) input the result of the current prediction sequence (feedback loop). This improves accuracy. The feedback loop is possible because the inputs to the feedback loop are distinguishable due to the continuous parameters involved. In such an option, the neural network may include a predetermined geometric modeler (i.e. static, i.e. not learned, in other words, not including any modifiable weights) that is applied to the result of each RNN unit to calculate the current prediction sequence. The modeler may be any data structure that provides a mapping between an editable feature tree and its representation (e.g. multi-pass rendering). The geometric modeler may include a scheme for playing the editable feature tree, and then extracting a representation of the resulting 3D shape.

[0184] In an example of such an option, each RNN unit may include a corresponding encoder. The corresponding encoder can be applied to the input of the RNN, for example to calculate global features representing the input. Depending on the output of the geometric modeler, in an example, if the geometric modeler outputs a point cloud, each corresponding encoder can be a point cloud encoder (e.g., a PointNet encoder). In other examples, if the geometric modeler outputs 2D image data, each corresponding encoder can be a 2D CNN. The 2D image data can be a single-channel rendering (i.e., a single-view image) or a multi-channel rendering (i.e., a multi-view image), such as in the previously introduced examples.

[0185] In such an example, each corresponding encoder may be the same at each time step. Alternatively or in addition, one or more (e.g., all) corresponding encoders may optionally be the same as the initial encoder. This improves the robustness of the process.

[0186] One example of a loss for supervised training that leads to accurate results penalizes one or both of the following amounts for each time step corresponding to each leaf geometry for each discrete geometry representation (each discrete geometry representation is here associated with a corresponding ground truth editable feature tree):

[0187] - a low probability of the corresponding first data of the corresponding primitive shape type being attributed to the corresponding ground truth leaf geometry, and / or

[0188] - a difference between one or more corresponding parameter values ​​of the corresponding ground truth leaf geometry and one or more corresponding parameter values ​​of the corresponding second data.

[0189] In other words, supervised training can act on the weights of the neural network by minimizing this loss, thereby tending to make the corresponding probability output by each RNN unit close to 1 (i.e. not low) for the corresponding ground truth primitive shape type and close to 0 (i.e. low) for other primitive shape types, and / or make the corresponding continuous parameter value output by each unit close to its ground truth. Such a loss accurately handles the discrete / continuous mixture of problems.

[0190] In the example options, for the time steps corresponding to each leaf geometry of each discrete geometric representation, the loss may also similarly penalize one or both of the additional amounts:

[0191] - a low corresponding probability (output by the RNN unit) due to the corresponding ground truth geometry operation, and / or

[0192] - Based on the corresponding data used to infer the end marker, the probability of reaching the tree arrangement (e.g., depth or length) of the corresponding ground truth editable feature tree (output by the RNN unit) is low.

[0193] An example of unsupervised training leading to accurate results is now discussed, wherein respective first data comprises respective discrete probability distributions, each probability being attributed to a respective discrete set of discrete sets of primitive shape types.

[0194] As is well known, unsupervised training can minimize losses. Minimization includes exploring the corresponding discrete probability distributions of the candidates. In other words, minimization iteratively modifies the neural network weights to explore the corresponding discrete probability distributions of the outputs and make them consistent with the unlabeled data set (where each discrete geometric representation is not associated with any ground truth editable feature tree). In a sense, the exploration of the corresponding discrete probability distributions of the candidates is indirect and is the result of direct exploration of the weights. In an option, minimization also includes exploring the corresponding discrete probability distributions of the candidates on geometric operations and / or the corresponding discrete probability distributions of the candidates for the end marker. In an example, minimization also includes exploring the corresponding candidate parameter values ​​of each parameter domain of the corresponding discrete set of one or more parameter domains.

[0195] Now, for each discrete geometric representation of the dataset and for each candidate, the loss penalizes the difference in the corresponding discrete geometric representation. The corresponding discrete geometric representation is derived from the corresponding editable feature tree, which itself is inferred based on the corresponding discrete probability distribution of the explored candidates. In other words, given the weight values ​​of the neural network (in any iteration of unsupervised training), the discrete geometric representation of the unlabeled dataset can be input to the neural network to perform inference of the editable feature tree. Each inferred editable feature tree itself can be based on the derived discrete geometric representation (by playing the tree and determining the resulting discrete geometric representation). This derived discrete geometric representation can be compared with the discrete geometric representation of the initial corresponding dataset.

[0196] In an example, unsupervised training may include a sampling step for at least one (e.g., each) discrete geometric representation. Training may include providing mini-batches, and sampling may include, for each mini-batch, sampling editable feature trees for the discrete geometric representation of each mini-batch by following data output by the neural network (including probability distributions and continuous parameter values ​​output by the RNN). Sampling may then compute a loss that compares the input discrete geometric representation (or a representation thereof, such as a rendering) with the discrete geometric representation corresponding to the sampled editable feature tree (i.e., penalizes the difference between them). Since the sampling is random and discrete, the loss is indistinguishable with respect to the sampling. Therefore, since there is no true gradient, classical backpropagation of such true gradients with respect to the variables cannot be performed.

[0197] The proposed example of unsupervised training suggests using a reinforcement method to provide the following: pseudo gradients of the loss relative to the variable representing the corresponding discrete distribution of the candidate representing the corresponding first data; and pseudo gradients of the loss relative to the variable representing the corresponding discrete distribution of the candidate on the geometric operation; and / or pseudo gradients of the loss relative to the variable representing the end marker distribution. Minimization can then include backpropagation (e.g., stochastic descent) of such pseudo gradients of the loss to learn the neural network. Since the pseudo gradients are provided by the reinforcement algorithm, the learning is accurate even if the backpropagation is not one of the true gradients. Minimization can also include backpropagation of the (true) gradient of the loss relative to each parameter domain in the corresponding discrete set of one or more parameter domains (because the loss is differentiable with respect to these variables). Therefore, the reinforcement method solves the differentiability problem caused by the introduction of discrete probability distributions, and only solves this problem.

[0198] An example machine learning process including an example of a method is now discussed.

[0199] Recurrent Neural Networks

[0200] The example machine learning process is based on a recurrent neural network (RNN). Recurrent neural networks are deep neural networks with internal memory states. Therefore, unlike feedforward neural networks, recurrent neural networks can exhibit temporal behavior. They implicitly consider past entries to predict the next outcome. They can be written as Where y is the output, x is the input, and h is the internal hidden state (also known as memory). w is the weight of the RNN. The memory h is not a hard memory that accumulates all past inputs. It is a fixed-size vector that is stored in the memory. to learn so that the RNN learns to retain only the useful information from past steps.

[0201] Purpose of the example machine learning process

[0202] Starting from a raw mesh, the example machine learning process allows to build a CSG tree without any supervision, consisting of a sequence of primitives merged in order using Boolean operations. This example machine learning process may be particularly useful in order to convert the raw mesh into a CAD format. Such CSG digitization may allow to convert the raw surface into an editable 3D model, which can then be used to deform the model, connect it to a mechanical component or simulate it. These raw meshes may come from laser scans of real 3D mechanical parts, or may come from B-rep models obtained on the 3D market.

[0203] Example of how machine learning works

[0204] The example machine learning process allows learning a recursive neural network that predicts a CSG tree based on an original grid. First, a synthetic dataset of CSG trees is randomly generated. Each CSG tree in the dataset is simplified to its minimum expression to remove any redundancy. The dataset is used to train a recursive neural network in a supervised manner to predict the CSG tree based on the original grid. The network is then refined in an unsupervised manner by performing reinforcement learning on a real dataset of the original grid (whose CSG tree is unknown). Finally, the network is used to infer a reasonable CSG tree based on the new original grid. An optimization scheme is used to refine the continuous parameters of the tree so that the CSG tree best fits the input grid.

[0205] Furthermore, any CSG tree in the example machine learning process is a single-rooted and full binary tree (a type in which every non-leaf node has at least one leaf node as a child).

[0206] Example of the effect of machine learning process

[0207] Compared to other deterministic methods based on curvature analysis, the example machine learning process is more robust to noise and incomplete data in the input grid. The example machine learning process provides an improvement over paper

[10] for several reasons. First, paper

[10] only applies to discretized primitives, while the example machine learning process processes continuous primitives (parameter entities). Second, the example machine learning process provides a robust final optimization to continuously refine the CSG tree. Third, the RNN of the example machine learning process includes a feedback loop that simplifies the inference process. Fourth, the pre-training step of the example machine learning process is more reasonable because it is applied to a CSG dataset, where all CSG trees have been reduced according to the new algorithm to avoid redundancy.

[0208] Description of the example machine learning process

[0209] 1. Generate synthetic CSG dataset

[0210] In the first step, the example machine learning process will generate a synthetic dataset of CSG trees. A tree is a sequence of primitives interleaved with Boolean operations between each primitive. Each Boolean operation is a binary operator that is applied to the next primitive and the result of the previous operation. Three common Boolean operations are addition / subtraction / intersection. Therefore, each primitive in the sequence is (added / intersected / subtracted) with the current result of the sequence, such as Figure 3 as shown in .

[0211] Primitives belong to a set of basic types (labeled {1, ..., L}, such as cuboid, cylinder, prism, etc.) Each primitive type has its own set of continuous parameters (e.g., the size and position of the cuboid).

[0212] To sample the CSG tree, the example machine learning process randomly samples its depth, primitive type, and Boolean operations. For each primitive, the example machine learning process also samples its continuous parameters. Therefore, the example machine learning process obtains a random CSG tree. The CSG can be converted into a raw mesh by sequentially applying its Boolean operations to its sequence of primitives.

[0213] The example machine learning process ultimately obtains a dataset of primitive meshes with corresponding CSG trees. One of the main problems with the pre-training step is that an infinite sequence of CSG trees can correspond to exactly the same primitive geometric shapes. For example, there are endless ways to intersect two cubes and get the same resulting cube. Figure 4 An example is shown.

[0214] Training a network that maps the same original input mesh to different CSG trees is much more difficult. To mitigate this problem, the example machine learning process involves an algorithm that reduces each sampled CSG tree to its minimal representation in order to enforce a bijection between the CSG tree and the mesh it produces.

[0215] First, the example machine learning process uses a bisection algorithm to reduce the size of each primitive along all its axes while constraining the resulting 3D shape to remain constant. To get a quick test to check if the results remain constant, the example machine learning process compares the volumes of the resulting 3D shapes. The example machine learning process keeps shrinking each primitive while the volume of the resulting CSG remains constant.

[0216] Second, the example machine learning process removes any primitive in the tree and its subsequent operations if it does not change the outcome.

[0217] The reduction algorithm is given by Figure 5-6 Shown.

[0218] Finally, the example machine learning process may also add noise (such as Perlin noise, depending on the application) to the generated mesh.

[0219] 2. Supervised Learning Recurrent Neural Networks

[0220] The example machine learning process defines a recurrent neural network (RNN) as follows. The RNN digitizes as input a discrete representation I of a 3D mesh (e.g., a multi-channel image I where each channel represents a rendered view or depth view of the input mesh, a 3D voxel grid, a 3D point cloud, etc.).

[0221] An RNN consists of an encoder that is applied to its input to compute global features that represent the shape of the input. This is done by Figure 7 Shown.

[0222] If the input is an image, the encoder can be, for example, a 2D CNN; if the input is a point cloud, the encoder can be, for example, a PointNet encoder, such as described in the following paper:

[0223] -Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deeplearning on point sets for 3d classification and segmentation. In ComputerVision and Pattern Regognition, 2017.

[0224] The CNN can be the same at each step of CSG. The CNN used at the step of CSG can itself be the same or different from the initial CNN. In the same case, the process is more robust.

[0225] Each RNN unit can also optionally take as input the result of the current prediction sequence (feedback loop).

[0226] The result of the current prediction sequence is computed using a geometric modeler. The modeler m can be viewed as a mapping between a CSG sequence and its resulting representation (e.g., multi-pass rendering).

[0227] Each RNN unit outputs at each time step t a discrete distribution over primitive types, a distribution o over Boolean operations, and a Bernoulli distribution q over the end marker (which indicates whether the CSG ends): q is the probability that the current step t is not the last step of the current CSG sequence, and therefore, 1-q is the probability that the current step is the last step in the sequence. y is the probability of primitive type y, and o y is the probability of operating y.

[0228] It also outputs the continuous parameters g for each primitive type l at each time step t l .

[0229] Figure 8 An example architecture of a neural network learned through an example machine learning process is shown.

[0230] This RNN is pre-trained in a supervised manner using a synthetic dataset. Note that a real CSG dataset can also be used.

[0231] Let N be the size of the dataset, and is the depth of the nth CSG sequence. Each CSG sequence is written as a sequence of primitive types. Sum Operation Sequence For each primitive make The input representation of the nth CSG is represented as I n .

[0232] We also passed To represent the intermediate result of the known CSG tree n at time step t, that is, (and ).

[0233] The hats on the letters indicate the ground truth labels of the CSG sequences.

[0234] The general equation for our RNN is: h 0 = 0, where w is the weight of the neural network. We recall that the feedback loop (the input I t-1 ) is optional.

[0235] An example machine learning process to minimize the loss in order to train the weights of the network (using standard deep learning techniques such as the ADAM solver on mini-batches) might be as follows:

[0236] L 1 (w) = L primitives (w)+L operations (w)+L length (w)+λL parameters (w)

[0237]

[0238]

[0239]

[0240]

[0241] λ is the classification loss L for discrete variables primitives (w)+L operations (w)+L length (w) and continuous regression loss L parameters (w). For example, it can be initialized as where w 0 are the randomly initialized weights of the neural network.

[0242] Any low penalty function other than log(cross entropy term) can be used for the term L primitives (w),L operations (w) and L lengthAny term in (w), and / or any distance d other than the L2 distance, and / or any increasing and / or positive function incr other than the square function may be used for L parameters (w).

[0243] In the case of a feedback loop, when using an RNN to predict CSG from an input 3D representation at inference time, the example machine learning process may not have access to the ground truth intermediate representation During the inference period, Could be replaced by an RNN with its inferred version:

[0244] I t =m([a 1 ,…,a t ],[x 1 ,…,x t ],[b 2 ,…,b t ]),

[0245] where a i and b i It is from p t and t The sampled and

[0246] In the case of the example machine learning process using a feedback loop, once the loss L 1 (w) Minimize the learned RNN, the example machine learning process can make the following loss Minimize in order to train the RNN to transform its own prediction intermediate representation I t for its feedback loop.

[0247] Yes and L 1 (w) Exactly the same loss, except that the example machine learning process converts all ground truth intermediate representations

[0248]

[0249] Replace with:

[0250]

[0251] in, are the parameters inferred by the RNN.

[0252] This means that the example machine learning process will use the inferred continuous parameters predicted by the RNN to compute intermediate representations (but preserve the ground truth structure of the CSG tree).

[0253] Now, It is no longer a fixed representation of the ground truth, but depends on the weights of the neural network (via g 1 ,...,g t , which depends on the weights). Therefore, in order to Minimizing allows the example machine learning process to be relative to x 1 ,...,x t To distinguish That is, differentiate the geometric modeler m. The differential of the mapping m can be calculated using finite differences. Furthermore, a smoothing kernel can be applied to smooth the result.

[0254] 3. Unsupervised Learning of Recurrent Neural Networks

[0255] The RNN has been pre-trained on a synthetic dataset that is not representative of the real dataset. Therefore, the example machine learning process can fine-tune it on the real dataset. However, the real dataset is usually not associated with its CSG tree. That is, the example machine learning process proposes a reinforcement method to fine-tune the network without supervision. Moreover, this method allows the network to predict more consistent trees, while the pre-training step must match the synthetic dataset, which can present different CSG trees with very similar 3D shapes despite the reduction algorithm.

[0256] It is also possible to directly train an RNN in an unsupervised manner using the same techniques as the fine-tuning step presented here. In this case, the example machine learning process can start directly from a randomly initialized RNN. However, convergence will be much slower than starting from a pre-trained network.

[0257] In this unsupervised learning step, the dataset only contains N original meshes without any labels, CSG information, etc.

[0258] The loss might simply be comparing a rendering of the predicted CSG to a rendering of the input mesh. To compute the predicted CSG, an example machine learning process might sample the RNN according to its distribution (conditioned on the input). Sampling might be performed according to the example of the inference method presented later in Section 4, but based on the current weight values.

[0259] An example machine learning process can be found from Start with Middle Pair Sampling from Middle Pair Take samples and set in

[0260] The sample machine learning process is also available from The end / continue marker is sampled in . If the end marker is sampled, it stops here. Otherwise, the example machine learning process iterates the sampling process until the end marker is sampled, or the time step reaches the maximum allowed time step T, which is the maximum allowed time step (i.e., the maximum length of the CSG sequence): Example machine learning process sampling:

[0261] from Middle Pair Take samples,

[0262] from Middle Pair Take samples,

[0263] set up in

[0264] We use T n To represent the depth of the sampled CSG of the nth input original mesh.

[0265] With these notations, the loss can be easily written as

[0266]

[0267] Where d is I n and For example, if the example machine learning procedure uses a multi-channel image or a 3D voxel grid as a representation of the 3D input, the example machine learning procedure can use

[0268] If the example machine learning procedure uses a point cloud, the example machine learning procedure can use the chamfer distance.

[0269] This loss is relative to the continuous parameter is differentiable. Therefore, minimizing this loss allows learning (or fine-tuning if the RNN has been pre-trained) only the weights of the neural network with respect to those continuous parameters, but the discrete distributions p,o,q cannot be learned. In fact, the discrete distributions (which are differentiable with respect to the weights of the network) are used to infer discrete variables (primitive types, boolean operations, CSG lengths), and the loss is indifferentiable with respect to the discrete variables.

[0270] To also fine tune these distributions, the example machine learning process can back propagate the gradient of the loss with respect to these distributions. The example machine learning process can use a reinforcement algorithm to obtain such gradients for discrete distributions p, o, q. The reinforcement algorithm is limited to these discrete distributions, and therefore, unsupervised learning can obtain the true gradients of other variables. This limits the approximation, thereby affecting the accuracy, and this allows the optimization of distributions that would otherwise not be updated and therefore not learned.

[0271] The reinforcement algorithm can be the REINFORCE algorithm described in the following paper:

[0272] -RJWilliams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 229-256, 1992.

[0273] This provides the following gradient formula:

[0274]

[0275]

[0276]

[0277] where ρ is an additional sparsity reward that encourages CSG trees to be maximally expressive for minimal size, and β is a benchmark for reducing the variance of the estimated gradients.

[0278] Typically ρ can be approximated by L calculated on the supervised dataset used to pre-train the network. 2 loss.

[0279] Let w 0 is the weight before unsupervised learning (w 0 from random initialization or from a supervised pre-training step). Then, β can be chosen as a constant, e.g., if the network has been pre-trained, Or if we start with random weights w 0 If Alternatively, the example machine learning procedure can also set β to be the value of L during training. 2 Moving average of losses.

[0280] Note that in the unsupervised learning scenario, the example machine learning procedure can also be made to differentiate between the mappings m for the same reasons as in the previous section (Supervised Learning with Feedback Loops). The difference is that in the unsupervised scenario, even though the example machine learning procedure does not use a feedback loop, the example machine learning procedure can differentiate between the modelers because the loss explicitly depends on the final CSG representation

[0281] 4. Inference and final refinement

[0282] Once the network is trained, the example machine learning process can use it to infer the most likely reasonable CSG tree based on the original input grid. To this end, the example machine learning process can apply a beam search algorithm with width k, because greedy search is prohibited for deep CSG trees.

[0283] At the first step t=1, the example machine learning process can sample the most likely k CSG sequences. Then, at each subsequent step, for each current sequence, the example machine learning process can compute the k most likely operations and primitives. At each step, this gives us k 2 CSG sequences, where the exemplary machine learning process may only keep the k most likely CSG sequences. They are selected based on the probability of the new potential sequence, which is the probability of the current sequence multiplied by the probability of the primitive multiplied by the probability of the operation multiplied by the probability of the end marker.

[0284] Finally, the example machine learning process obtains k reasonable CSG sequences. For each sequence, the example machine learning process can refine the continuous parameters of all primitives in the sequence, such as by using a differentiable optimization (such as BFGS) to make the loss L 2 Finally, the example machine learning process may retain only the CSG tree that minimizes the loss, or the example machine learning process may propose all k CSG trees to the user.

[0285] Figure 9-11 A test of the application of an inference method to an example machine learning process based on a neural network learned consistently with the example machine learning process is shown. Fig. 9 The original input mesh representing the machine tool is shown. Fig.10 The results of applying the inference method before refinement (after applying the geometry modeler to the inferred editable feature tree) are shown. Fig.11 The result after refinement is shown.

Claims

1. A computer-implemented method for learning a neural network configured to infer an editable feature tree representing a 3D shape from a discrete geometric representation of the 3D shape, the editable feature tree comprising a tree arrangement of geometric operations applied to leaf geometries, the method comprising: - providing a data set comprising a discrete geometric representation of each of the corresponding 3D shapes; - Provide a candidate set of leaf geometries; as well as - learning the neural network based on the data set and based on the candidate set; The method is characterized in that the candidate set comprises at least one continuous subset of leaf geometries.

2. The method according to claim 1, wherein: The candidate set includes the set product between: - a discrete set of primitive shape types, and - for each primitive shape type, a respective discrete set of one or more parameter domains for each of the respective continuous parameters, each parameter domain having a respective parameter value for the respective continuous parameter, Each primitive shape type forms a respective element of the candidate set using a respective parameter value of each parameter domain in the respective discrete set of one or more parameter domains.

3. The method according to claim 2, wherein: For each of the one or more primitive shape types, the one or more corresponding continuous parameters include one or more size parameters and / or one or more positioning parameters.

4. The method according to claim 2 or 3, wherein: The discrete set of primitive shape types includes a cuboid type, a sphere type, one or more cylinder types, and / or one or more prism types.

5. The method according to claim 2, 3 or 4, wherein: The neural network includes recurrent neural network (RNN) units, each RNN unit outputting, at a corresponding time step (t), corresponding first data for inferring a corresponding primitive shape type, and corresponding second data for inferring a corresponding parameter value for each parameter domain in the corresponding discrete set of one or more parameter domains.

6. The method according to claim 5, wherein: The respective first data comprises a respective discrete distribution of probabilities (p), each probability being attributed to a respective primitive shape type (l) in the discrete set of primitive shape types, and / or the respective second data comprises a respective parameter value (g) for each parameter domain in the discrete set of one or more parameter domains. l ).

7. The method according to claim 6, wherein: For each discrete geometric representation of the one or more discrete geometric representations (n), the data set also includes a corresponding editable feature tree, the editable feature tree including a feature tree applied to a leaf geometry. and represents a geometric operation of said 3D shape corresponding to said discrete geometric representation wherein each geometric shape is formed from a corresponding primitive shape type using a corresponding parameter value for each parameter domain in said corresponding discrete set of one or more parameter domains, said learning of said neural network comprises supervised training, said supervised training comprises minimizing a loss L1, for each leaf geometric shape associated with each discrete geometric representation (n) At the corresponding time step (t), the loss L1 penalizes the following: - the corresponding primitive shape type attributed to the leaf geometry The probability of the corresponding first data low, and / or - the one or more corresponding parameter values ​​of the leaf geometry and the one or more corresponding parameter values ​​of the corresponding second data The difference between 8. The method according to claim 7, wherein: The loss L1 penalizes the following: - Items of the type described (L primitives (w)) and / or - Items of the type described (L parameters (w)) in: n specifies the discrete geometric representation, t specifies the time step, · Specify the corresponding primitive shape type, · Assign attribute to the probability of the corresponding first data, · specifying said one or more corresponding parameter values ​​of said leaf geometry, · specifying said one or more corresponding parameter values ​​of said corresponding second data, ·d(·,·) is the distance function, and ·incr[·] is an increasing and / or positive function.

9. The method according to any one of claims 6, 7 or 8, wherein: The respective first data comprises a respective discrete distribution of probabilities (p), each probability being attributed to a respective primitive shape type of the discrete set of primitive shape types (l), the learning of the neural network comprising unsupervised training, the unsupervised training comprising minimizing a loss L2, the minimization comprising exploring the respective discrete probability distributions of the candidates, the loss L2 penalizing, for the discrete geometric representations and for the respective discrete probability distributions of the candidates, the difference in discrete geometric representations derived from the respective editable feature trees, the respective editable feature trees being inferable based on the respective discrete probability distributions of the explored candidates, the minimization comprising back-propagating a gradient of the loss L2 with respect to a variable representing at least the respective discrete distribution of the candidates of the respective first data, the gradient being obtained using a reinforcement algorithm, the gradient optionally being of type in: n specifies the discrete geometric representation, ·T n specifies the depth of the corresponding editable feature tree, t specifies the corresponding time step, y specifies the primitive shape type, ·p y specifying the variable representing the candidate corresponding discrete distribution of the corresponding first data at t, · specifies the primitive shape type of the corresponding editable feature tree that can be inferred at t, and β is a reference value.

10. The method according to any one of claims 5 to 9, wherein: Each RNN unit takes as input the result of the current prediction sequence, and the learning of the neural network includes supervised training, which includes making the loss related to the inferred parameter value minimize.

11. A data structure representing a neural network learnable according to the method of any one of claims 1 to 10.

12. A computer-implemented method using the data structure of claim 11, the method comprising: - Provides discrete geometric representation of 3D shapes; - applying said neural network to said discrete geometric representation of a 3D shape; as well as - inferring an editable feature tree representing the 3D shape based on the results of the applying; and optionally refining the inferred editable feature tree.

13. A computer program comprising instructions for executing the method according to any one of claims 1 to 10 and / or the method according to claim 12.

14. A device comprising a data storage medium having recorded thereon a data structure according to claim 11 and / or a program according to claim 13.

15. The device according to claim 14, wherein: The apparatus also includes a processor coupled to the data storage medium.

Citation Information

Patent Citations

  • Image search method based on quick intelligent taboo search

    CN102193937A

  • Triangular grid re-gridding method based on geometrical image

    CN104200518A

  • Method and system used for 2D / 3D image registration based on convolutional neural network regression

    CN106651750A

  • End-to-end three-dimensional human face reconstruction method based on depth neural network

    CN107292950A

  • Systems and methods for overlaying and integrating computer aided design (CAD) drawings with fluid models

    US20180260501A1