CN113420358B - Method, device and system for converting grid model into parameterized model - Google Patents

Method, device and system for converting grid model into parameterized model Download PDF

Info

Publication number
CN113420358B
CN113420358B CN202110735161.5A CN202110735161A CN113420358B CN 113420358 B CN113420358 B CN 113420358B CN 202110735161 A CN202110735161 A CN 202110735161A CN 113420358 B CN113420358 B CN 113420358B
Authority
CN
China
Prior art keywords
stretching
line
model
section
grid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110735161.5A
Other languages
Chinese (zh)
Other versions
CN113420358A (en
Inventor
张欣蔚
张彤
马超
吴锴亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202110735161.5A priority Critical patent/CN113420358B/en
Publication of CN113420358A publication Critical patent/CN113420358A/en
Application granted granted Critical
Publication of CN113420358B publication Critical patent/CN113420358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/20Packaging, e.g. boxes or containers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method, a device and a system for converting a grid model into a parameterized model. The method comprises the following steps: s1, segmenting a grid model; s2, configuring a stretching mode and a stretching ratio of each section of the plurality of sections, wherein the stretching mode comprises translational stretching and scaling stretching, and the stretching ratio is the ratio of the stretching distance of a certain section in the plurality of sections to the total stretching distance; s3, generating a parameterized model according to the original grid model, a newly added geometric structure and model parameters, wherein the newly added geometric structure comprises a stretching line, a stretching box and a plurality of sections; the model parameters include the length of the stretching line, the stretching mode and the stretching proportion. According to the method, different parts of the non-parametric mesh model are endowed with different stretching configurations through the segmental stretching of the mesh triangular patch, the stretching configurations are bound to parameters, and the effect that the sizes of the different parts of the model can be rapidly adjusted through interactive dragging or parameter configuration is finally achieved.

Description

Method, device and system for converting grid model into parameterized model
Technical Field
The invention belongs to the technical field of computer-aided three-dimensional modeling, and particularly relates to a method, a device and a system for converting a grid model into a parameterized model.
Background
The parametric modeling method encapsulates parameter definition and linkage logic into a model to form a modeling template, and series product models with different sizes, numbers and the like and different styles can be obtained by simply adjusting a small quantity of parameters in actual use. The modeling template is a parameterized model, effectively reduces the design difficulty, improves the design efficiency, and is widely used in the industries of construction, manufacturing and the like.
In some subdivided fields such as public decoration, home decoration and the like, designers accumulate a large number of grid models drawn by 3dMax and other software, but parameter definition and linkage logic are not arranged in the grid models, so that the models are difficult and tedious to adjust. Practitioners in these fields need to design serialized product models, either drawing the grid models one by one, or only abandoning the accumulation of the original grid models, and drawing parameterized models by professional engineers using professional software such as Revit, creo and the like, which is time-consuming and labor-consuming.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a system for converting a mesh model into a parameterized model, which aim to utilize the existing non-parameterized mesh model to rapidly manufacture the parameterized model, and different parts can perform size changes in different proportions, so as to meet the design requirements of serialization and parameterization of products, reduce resource waste, and improve design efficiency.
In a first aspect, an embodiment of the present application provides a method for converting a mesh model into a parameterized model, including:
s1, segmenting the grid model, wherein the segmenting method comprises the following steps:
combining a mesh model with a stretching line to generate a stretching box, and segmenting the mesh model into a plurality of segments by using at least two segmentation surfaces perpendicular to the stretching line, wherein the plurality of segments comprise a first segment, a last segment and at least one middle segment; the stretching line is a line segment with a starting point and an end point, and the surface of each segment close to the starting point of the stretching line is a starting surface; the surface close to the end point of the stretching line is called a final surface;
s2, configuring a stretching mode and a stretching ratio of each section of the plurality of sections, wherein the stretching mode comprises translational stretching and scaling stretching, and the stretching ratio is the ratio of the stretching distance of a certain section in the plurality of sections to the total stretching distance;
the translation stretching is that the head section is stretched along a stretching line by taking the initial surface as a reference, the tail section and the middle section are stretched along the stretching line by taking the respective final surfaces as bases, the sections are still connected end to end after the stretching is finished, and the distance from all grid vertexes in the head section to the initial surface of the head section is kept unchanged in the stretching process; the distances from all grid vertexes in the end section and the middle section to the final plane of the section are kept unchanged;
the scaling stretching is that the first section is stretched along a stretching line by taking the starting point of the stretching line as a reference, the last section is stretched along the stretching line by taking the end point of the stretching line as a reference, and the distance proportion from all the grid vertexes in any section to the starting surface and the end surface of the section is kept unchanged;
s3, generating a parameterized model according to the original grid model, the newly added geometric structure and the model parameters,
the newly added geometric structure comprises a stretching line, a stretching box and a plurality of sections;
the model parameters include the length of the stretching line, the stretching mode and the stretching proportion.
In a possible design, step S1 specifically includes:
s101, acquiring a straight line drawn in a grid model by a user as a stretching line, wherein the direction of the stretching line is a starting point and a terminal point;
step S102, combining the grid model and the stretching line into a graph group, and generating a minimum bounding box of the graph group as a stretching box by taking a straight line where the stretching line is located as a main axis direction;
s103, placing a plurality of segmentation planes vertical to the stretching line along the stretching line in the range of the stretching line, and dividing the bounding box of the model into a plurality of rectangular blocks;
wherein, the sections where the starting point and the end point of the stretching line are positioned are the first section and the end section, and the others are the middle sections; if the vertex of the mesh model is on the segmentation plane, the vertex belongs to the segment on the side of the segmentation plane close to the start point of the tensile line.
In one possible design, the method for generating the minimum bounding box of the graph group specifically includes:
step S1021, vertically projecting all grid nodes of the grid model onto a straight line where the stretching line is located, selecting two points with the farthest distance from all projection points and the starting point and the ending point of the stretching line, and determining the distance between the two points as the width of the minimum bounding box;
step S1022, all grid nodes of the grid model are vertically projected onto a plane vertical to the stretching line;
step S1023, randomly appointing two mutually perpendicular straight lines in the plane, projecting the projection points obtained in the step S1022 on the two straight lines, respectively selecting two points with the farthest distance on the two straight lines, and taking the distance between the two points as the height and the depth of the minimum bounding box;
and step S1024, searching six points in the step S1021 and the step S1023 from the starting point and the end point of the mesh vertex or the stretching line of the mesh model, and constructing a cuboid by the six points according to the width, the height and the depth obtained in the step S1021 and the step S1023, wherein the cuboid is the minimum bounding box.
In one possible design, a different stretching regime is configured for each of the plurality of segments.
In one possible design, after step S3, the method further includes:
and (4) importing the parameterized model generated in the step (S3) into a design scheme, changing the length of each segment by changing the length of a model stretching line, and further driving the grid vertex in each segment to move so as to enable each segment to be stretched and deformed.
In one possible design, each segment is stretched by allocating the amount of change in the length of the stretch line according to the stretch ratio.
In one possible design, the smallest bounding box of the mesh model is taken as the stretch box if the stretch line is within the space occupied by the mesh model.
In a second aspect, an embodiment of the present application provides an apparatus for converting a mesh model into a parameterized model, including:
a segmentation unit, configured to segment the mesh model, in a specific manner: combining a grid model and a stretching line to generate a stretching box, and using at least two segmentation surfaces perpendicular to the stretching line to segment the grid model into a plurality of segments, wherein the plurality of segments comprise a first segment, a last segment and at least one middle segment; the stretching line is a line segment with a starting point and an end point, and the surface of each segment close to the starting point of the stretching line is a starting surface; the surface close to the end point of the stretching line is called the final surface;
the parameter configuration unit is used for configuring a stretching mode and a stretching proportion of each section of the plurality of sections, the stretching mode comprises translational stretching and scaling stretching, and the stretching proportion is the proportion of the stretching distance of a certain section in the plurality of sections to the total stretching distance; the translation stretching is that the first section is stretched along a stretching line by taking an initial surface as a reference, the last section and the middle section are stretched along the stretching line by taking respective final surfaces as bases, the sections are still connected end to end after the stretching is finished, and the distance from all grid vertexes in the first section to the initial surface of the first section is kept unchanged in the stretching process; the distances from all grid vertexes in the end section and the middle section to the final plane of the section are kept unchanged; the scaling stretching is that the first section is stretched along a stretching line by taking the starting point of the stretching line as a reference, the last section is stretched along the stretching line by taking the end point of the stretching line as a reference, and the distance proportion from all the grid vertexes in any section to the starting surface and the end surface of the section is kept unchanged;
the parameterized model generating unit is used for generating a parameterized model according to the original grid model, the newly added geometric structure and the model parameters; the newly added geometric structure comprises a stretching line, a stretching box and a plurality of sections; the model parameters include the length of the stretching line, the stretching mode and the stretching proportion.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of transformation of a mesh model to a parameterized model as defined in any of the first aspects.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method for converting a mesh model into a parameterized model according to any one of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method for converting a mesh model into a parameterized model according to any one of the first aspects.
By adopting the technical scheme of the invention, a designer user can convert the existing non-parametric grid model into a parametric model, so that different parts of the model can be subjected to size change in different proportions. The method has the advantages that the requirements of product serialization and parameterization design are met, existing stock model accumulation is fully utilized, resource waste is reduced, and design efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a method for converting a mesh model into a parameterized model according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a mesh model segmentation method provided in the embodiments of the present application;
FIG. 3 is a schematic diagram of an S-plane and an E-plane in a segmentation method provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a chair mesh model divided into 3 segments in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating the effects of different stretching modes provided in the examples of the present application;
FIG. 6 is a schematic diagram showing the variation of grid vertices in translational stretching in the embodiment of the present application;
FIG. 7 is a schematic diagram illustrating the variation of grid vertices in scaling and stretching in the embodiment of the present application;
fig. 8 is a schematic diagram of a system architecture provided in an embodiment of the present application.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The embodiment provides a method for converting a mesh model into a parameterized model, which is characterized in that different parts of a nonparametric mesh model are endowed with different stretching configurations through segmental stretching of a mesh triangular patch, the stretching configurations are bound to parameters, and finally the effect of rapidly adjusting the sizes of the different parts of the model through interactive dragging or parameter configuration is achieved.
Different embodiments of the method for converting a mesh model into a parameterized model are given below in conjunction with the accompanying drawings, and may be applied to various scenarios requiring parameterized model conversion, where the method may be executed by a device for converting a mesh model into a parameterized model, where the device may be implemented in software and/or hardware, and the device may be configured in an electronic device, for example, a terminal device or a server.
As shown in fig. 1, the method includes:
and S1, segmenting the grid model.
As a possible implementation, a flow of the segmentation method is shown in fig. 2, and specifically includes:
and step S101, acquiring a straight line drawn in the grid model by the user as a stretching line. The direction of the stretch line is from the start point to the end point. The starting point and the end point are arbitrarily placed.
The application does not limit the method by which the user draws the stretch line. For example, in a human-computer interaction interface, a user selects a start point and an end point by a mouse cursor and then automatically draws a stretch line. Or, the user selects the starting point firstly, generates a straight line segment from the starting point to the current position of the mouse cursor in real time when the mouse cursor moves, and generates a tensile line after the user confirms the end point.
And S102, combining the grid model and the stretching line into a graph group, and generating a minimum bounding box of the graph group as a stretching box by taking the straight line where the stretching line is positioned as a main axis direction.
As a possible implementation, the method for generating the minimum bounding box of the graph group includes:
step S1021, vertically projecting all grid nodes of the grid model to a straight line where the stretching line is located, finding two points with the farthest distance among all projection points and the starting point and the end point of the stretching line, and determining the distance to be the width of the bounding box;
step S1022, vertically projecting all grid nodes of the grid model to a plane vertical to the stretching line;
step S1023, two mutually perpendicular straight lines are randomly specified in the plane, the projection points obtained in the step S1022 are projected on the two straight lines, two points with the farthest distance are respectively found on the two straight lines, and the two distances are the height and the depth of the bounding box;
step S1024, finding out points corresponding to the 6 points in step S1021 and step S1023 from the starting points and the ending points of the mesh vertices or the stretched lines of the mesh model, and constructing a rectangular solid with the width, height and depth obtained in step S1021 and step S1023 through the found 6 points, so that the rectangular solid is the required bounding box.
And S103, placing a plurality of dividing planes vertical to the stretching line along the stretching line in the range of the stretching line, and dividing the bounding box of the model into a plurality of rectangular sections.
The sections where the starting point and the ending point of the stretching line are located are the first section and the last section, and the others are the middle sections.
The surface of a segment close to the Starting Point of the stretching line is called a Starting surface (Face heated Starting Point) and is marked as an S surface; the Face near the end of the stretch line is called the end facing Face (Face heated end Point) and is designated as the E-Face, as shown in fig. 3.
If the vertex of the model mesh is on the segmentation plane, the vertex is considered to belong to the segment on the side of the segmentation plane close to the starting point of the tensile line. Fig. 4 shows a schematic diagram of a chair mesh model divided into 3 segments.
At this point, the segmentation of the mesh model is completed.
And S2, configuring a stretching mode and a stretching proportion.
Each segment can be configured with the stretching mode and proportion, and the size of each part in the stretching of the model is determined to be changed. Wherein, the stretching mode has two kinds: translational stretching and zoom stretching. The stretching pattern may be different for different segments. The stretch ratio determines the ratio of the stretch distance of one segment to the total stretch distance, the sum of the ratios of all segments being 100%.
The specific manner of configuring the stretching manner and the ratio is not limited in the present application, and for example, the configuration may be completed by acquiring a user input instruction.
And S3, generating a parameterized model.
After the step S2 is finished, the original model is converted into a parameterized model which can be stored, read and edited. The parametric model data obtained finally comprises the following components:
(1) An original mesh model;
(2) Additional geometries, tensile lines, bounding boxes, segments drawn and constructed in step S1;
(3) The length parameter of the stretching line is a floating point number;
(4) Stretching mode parameters, enumeration values, translation or scaling, and taking values as configuration values in the step S2;
(5) And (3) taking the stretching proportion parameter and the array of the floating point number as the stretching proportion of each section configured in the step (S2).
And S4, using a parameterized model.
And (4) importing the parameterized model obtained in the step (S3) into a design scheme, changing the length of a model stretching line to change the length of each segment, and further driving the movement of the model mesh vertex in each segment to generate stretching deformation of each segment of the model.
The variable quantity of the length of the stretching line is distributed to each segment according to the stretching proportion, and stretching is carried out. The translational stretching and the zooming stretching have different stretching mechanisms, and the stretching effect is shown in fig. 5.
The two stretching modes are described below with reference to fig. 6 and 7:
first, translational stretching
The first section is stretched along the stretching line by taking the S surface as the reference, the last section and the middle section are stretched along the stretching line by taking the respective E surfaces as the basis, and the sections are still connected end to end after the stretching is finished. In the stretching process, the distances from all the grid vertexes in the first section to the S surface of the first section are kept unchanged; the E-plane distance from all mesh vertices in the end and middle segments to the segment remains constant, as shown in fig. 6.
Second mode, zoom and stretch
The first section is stretched along the stretching line by taking the starting point of the stretching line as a reference, and the last section is stretched along the stretching line by taking the end point of the stretching line as a reference. The ratio of the distances from all mesh vertices within any segment to the S-and E-planes of that segment remains constant, as shown in fig. 7.
The application does not limit the method for the user to change the length of the stretch line. For example, in the human-computer interaction interface, a user can directly change the length parameter value of the stretching line, so that the model is locally stretched, and the end point of the stretching line is moved by default. Or directly writing the parameters of the stretching line into a conditional formula, and taking different values according to different conditions to partially stretch the model. Or directly dragging the end point of the stretching line to partially stretch the model.
An embodiment of the present application further provides a device for converting a mesh model into a parameterized model, including:
a segmentation unit, configured to segment the mesh model, in a specific manner: combining a grid model and a stretching line to generate a stretching box, and using at least two segmentation surfaces perpendicular to the stretching line to segment the grid model into a plurality of segments, wherein the plurality of segments comprise a first segment, a last segment and at least one middle segment; the stretching line is a line segment with a starting point and an end point, and the surface of each segment close to the starting point of the stretching line is a starting surface; the surface close to the end point of the stretching line is called a final surface;
the parameter configuration unit is used for configuring a stretching mode and a stretching proportion of each section of the plurality of sections, the stretching mode comprises translational stretching and scaling stretching, and the stretching proportion is the proportion of the stretching distance of a certain section in the plurality of sections to the total stretching distance; the translation stretching is that the first section is stretched along a stretching line by taking an initial surface as a reference, the last section and the middle section are stretched along the stretching line by taking respective final surfaces as bases, the sections are still connected end to end after the stretching is finished, and the distance from all grid vertexes in the first section to the initial surface of the first section is kept unchanged in the stretching process; the distances from all grid vertexes in the end section and the middle section to the final surface of the section are kept unchanged; the scaling stretching is that the first section is stretched along a stretching line by taking the starting point of the stretching line as a reference, the last section is stretched along the stretching line by taking the end point of the stretching line as a reference, and the distance proportion from all the grid vertexes in any section to the starting surface and the end surface of the section is kept unchanged;
the parameterized model generating unit is used for generating a parameterized model according to the original grid model, the newly added geometric structure and the model parameters; the newly added geometric structure comprises a stretching line, a stretching box and a plurality of sections; the model parameters include the length of the stretching line, the stretching mode and the stretching proportion.
An embodiment of the present application further provides an electronic device, including: at least one processor; a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a mesh model to parameterized model conversion method as previously described.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method of transforming a mesh model into a parameterized model as described above.
Embodiments of the present application also provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform a method of transforming a mesh model into a parameterized model as described above.
As shown in fig. 8, the method for converting a mesh model into a parameterized model provided in this embodiment may be implemented by a system architecture 100, and in an exemplary embodiment, the system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a search application, instant messaging tool software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.

Claims (10)

1. A method for transforming a mesh model into a parameterized model, comprising:
s1, segmenting the grid model, wherein the segmentation method comprises the following steps:
combining a grid model and a stretching line to generate a stretching box, and using at least two segmentation surfaces perpendicular to the stretching line to segment the grid model into a plurality of segments, wherein the plurality of segments comprise a first segment, a last segment and at least one middle segment; the stretching line is a line segment with a starting point and an end point, and the surface of each segment close to the starting point of the stretching line is a starting surface; the surface close to the end point of the stretching line is called the final surface;
s2, configuring a stretching mode and a stretching proportion of each section of the plurality of sections, wherein the stretching mode comprises translation stretching and scaling stretching, and the stretching proportion is the proportion of the stretching distance of a certain section in the plurality of sections to the total stretching distance;
the translation stretching is that the head section is stretched along a stretching line by taking the initial surface as a reference, the tail section and the middle section are stretched along the stretching line by taking the respective final surfaces as bases, the sections are still connected end to end after the stretching is finished, and the distance from all grid vertexes in the head section to the initial surface of the head section is kept unchanged in the stretching process; the distances from all grid vertexes in the end section and the middle section to the final plane of the section are kept unchanged;
the scaling stretching is that the first section is stretched along the stretching line by taking the starting point of the stretching line as a reference, the last section is stretched along the stretching line by taking the end point of the stretching line as a reference, and the distance proportion from all the grid vertexes in any section to the starting surface and the end surface of the section is kept unchanged;
s3, generating a parameterized model according to the original grid model, the newly added geometric structure and the model parameters,
the newly added geometric structure comprises a stretching line, a stretching box and a plurality of sections;
the model parameters include the length of the stretching line, the stretching mode and the stretching proportion.
2. The method of claim 1, wherein:
the step S1 specifically includes:
s101, acquiring a straight line drawn in a grid model by a user as a stretching line, wherein the direction of the stretching line is a starting point and a terminal point;
step S102, combining the grid model and the stretching line into a graph group, and generating a minimum bounding box of the graph group as a stretching box by taking a straight line where the stretching line is positioned as a main axis direction;
s103, placing a plurality of segmentation planes vertical to the stretching line along the stretching line in the range of the stretching line, and dividing the bounding box of the model into a plurality of rectangular blocks;
wherein, the sections where the starting point and the end point of the stretching line are positioned are the first section and the end section, and the others are the middle sections; if the vertex of the mesh model is on the segmentation plane, the vertex belongs to the segment on the side of the segmentation plane close to the start point of the tensile line.
3. The method of claim 2, wherein:
the method for generating the minimum bounding box of the graph group specifically comprises the following steps:
step S1021, vertically projecting all grid nodes of the grid model onto a straight line where the stretching line is located, selecting two points with the farthest distance from all projection points and the starting point and the ending point of the stretching line, and determining the distance between the two points as the width of the minimum bounding box;
step S1022, vertically projecting all grid nodes of the grid model to a plane vertical to the stretching line;
step S1023, randomly appointing two mutually perpendicular straight lines in the plane, projecting the projection points obtained in the step S1022 on the two straight lines, respectively selecting two points with the farthest distance on the two straight lines, and taking the distance between the two points as the height and the depth of the minimum bounding box;
and step S1024, searching six points in the step S1021 and the step S1023 from the starting point and the end point of the mesh vertex or the stretching line of the mesh model, and constructing a cuboid by the six points according to the width, the height and the depth obtained in the step S1021 and the step S1023, wherein the cuboid is the minimum bounding box.
4. The method of claim 1, wherein:
configuring a different stretching pattern for each of the plurality of segments.
5. The method of claim 1, wherein:
after step S3, the method further includes:
and (4) importing the parameterized model generated in the step (S3) into a design scheme, changing the length of each segment by changing the length of a model stretching line, and further driving the grid vertex in each segment to move so as to enable each segment to be stretched and deformed.
6. The method of claim 5, wherein:
each section is stretched by distributing the amount of change in the length of the stretch line according to the stretch ratio.
7. The method of claim 1, wherein:
and if the stretching line is in the space range occupied by the grid model, taking the minimum bounding box of the grid model as a stretching box.
8. An apparatus for converting a mesh model into a parameterized model, comprising:
a segmentation unit, configured to segment the mesh model, in a specific manner: combining a mesh model with a stretching line to generate a stretching box, and segmenting the mesh model into a plurality of segments by using at least two segmentation surfaces perpendicular to the stretching line, wherein the plurality of segments comprise a first segment, a last segment and at least one middle segment; the stretching line is a line segment with a starting point and an end point, and the surface of each segment close to the starting point of the stretching line is a starting surface; the surface close to the end point of the stretching line is called a final surface;
the parameter configuration unit is used for configuring a stretching mode and a stretching proportion of each section of the plurality of sections, the stretching mode comprises translational stretching and scaling stretching, and the stretching proportion is the proportion of the stretching distance of a certain section in the plurality of sections to the total stretching distance; the translation stretching is that the first section is stretched along a stretching line by taking an initial surface as a reference, the last section and the middle section are stretched along the stretching line by taking respective final surfaces as bases, the sections are still connected end to end after the stretching is finished, and the distance from all grid vertexes in the first section to the initial surface of the first section is kept unchanged in the stretching process; the distances from all grid vertexes in the end section and the middle section to the final surface of the section are kept unchanged; the scaling stretching is that the first section is stretched along the stretching line by taking the starting point of the stretching line as a reference, the last section is stretched along the stretching line by taking the end point of the stretching line as a reference, and the distance proportion from all the grid vertexes in any section to the starting surface and the end surface of the section is kept unchanged;
the parameterized model generating unit is used for generating a parameterized model according to the original grid model, the newly added geometric structure and the model parameters; the newly added geometric structure comprises a stretching line, a stretching box and a plurality of sections; the model parameters include the length of the stretching line, the stretching mode and the stretching proportion.
9. An electronic device, comprising: at least one processor; a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of transforming a mesh model to a parameterized model as claimed in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method of converting a mesh model to a parameterized model as defined in any one of claims 1 to 7.
CN202110735161.5A 2021-06-30 2021-06-30 Method, device and system for converting grid model into parameterized model Active CN113420358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110735161.5A CN113420358B (en) 2021-06-30 2021-06-30 Method, device and system for converting grid model into parameterized model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110735161.5A CN113420358B (en) 2021-06-30 2021-06-30 Method, device and system for converting grid model into parameterized model

Publications (2)

Publication Number Publication Date
CN113420358A CN113420358A (en) 2021-09-21
CN113420358B true CN113420358B (en) 2022-12-09

Family

ID=77717321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110735161.5A Active CN113420358B (en) 2021-06-30 2021-06-30 Method, device and system for converting grid model into parameterized model

Country Status (1)

Country Link
CN (1) CN113420358B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113919089B (en) * 2021-09-26 2024-07-26 北京凯盛建材工程有限公司 Design method of single-sided discharge hopper

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036540A (en) * 2014-03-11 2014-09-10 西南科技大学 Parametric adaptive grid generation and encryption method used for nuclear waste repository grid modeling
CN107609321A (en) * 2017-11-02 2018-01-19 中铁十局集团有限公司 Continuous bridge parametric modeling method based on Revit platforms
CN110176072A (en) * 2018-02-21 2019-08-27 奥多比公司 Refine the localized parameterization for two dimensional image to be applied to threedimensional model
CN110826122A (en) * 2019-10-12 2020-02-21 中广核工程有限公司 Voxel method and system for nuclear power three-dimensional layout design model
GB202007809D0 (en) * 2020-05-26 2020-07-08 Bim & Scan Ltd A computer implemented method of generating a parametric structural design model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036540A (en) * 2014-03-11 2014-09-10 西南科技大学 Parametric adaptive grid generation and encryption method used for nuclear waste repository grid modeling
CN107609321A (en) * 2017-11-02 2018-01-19 中铁十局集团有限公司 Continuous bridge parametric modeling method based on Revit platforms
CN110176072A (en) * 2018-02-21 2019-08-27 奥多比公司 Refine the localized parameterization for two dimensional image to be applied to threedimensional model
CN110826122A (en) * 2019-10-12 2020-02-21 中广核工程有限公司 Voxel method and system for nuclear power three-dimensional layout design model
GB202007809D0 (en) * 2020-05-26 2020-07-08 Bim & Scan Ltd A computer implemented method of generating a parametric structural design model

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Surface completion for shape and appearance;Seyoun Park,etc;《The Visual Computer: International Journal of Computer Graphics》;20060331;第22卷(第3期);168–180 *
基于有向包围盒的三维CAD模型局部特征重用;郭艳,华顺刚;《机械设计与制造》;20210608(第06期);219-221+227 *
基于零件参数化设计的Pro/E二次开发和应用;王婷,佟林,梁立;《第十三届沈阳科学学术年会论文集(理工农医)》;20160927;501-507 *

Also Published As

Publication number Publication date
CN113420358A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
KR102060839B1 (en) Designing a 3d modeled object
Zheng et al. A New Approach for Direct Manipulation of Free‐Form Curve
US11144679B2 (en) Engraving a 2D image on a subdivision surface
CN111324965A (en) Cloud-based universal parameterized model analysis method and design system
EP2833326B1 (en) Lossless compression of a 3D mesh including transforming of the mesh to a image
US20080162090A1 (en) System, methods, and computer readable media, for product design using t-spline deformation
Yi et al. Identifying boundaries of topology optimization results using basic parametric features
CN106875495B (en) Relief grid representation and 3D printing slicing method and system based on concave-convex mapping
JP5218109B2 (en) Visualization data processing device, visualization data processing device control method, and visualization data processing device control program
KR101614065B1 (en) Method and system for reducing 3d modeling data
CN113420358B (en) Method, device and system for converting grid model into parameterized model
JP2005322235A (en) Deformation of computer using design model (cad)
CN104267962A (en) Description-based interface UI control configuration method
US10943037B2 (en) Generating a CAD model from a finite element mesh
CN116485995A (en) Modeling method based on assembled building components, intelligent terminal and storage medium
CN111985014A (en) Modeling method and system based on standard atlas
CN115588079A (en) Method for rapidly generating explosion map by three-dimensional model
CN115564857A (en) Video production method and related equipment
US20220374556A1 (en) Parameterization of digital organic geometries
CN105930561B (en) Method and device for processing data of geometric modeling in computer aided design
CN113297764A (en) Finite element parametric model modeling method, system and storage medium
CN110199280B (en) Method and system for multi-view computer aided design including edit operation propagation across views while ensuring constraint consistency
CN111047666B (en) Unified digital content selection system for vector graphics and grid graphics
JP6888411B2 (en) 3D shape data editing device and 3D shape data editing program
CN115761198A (en) Data model lightweight method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant