CN110598319A - Rule grammar for space division based on variable parameters - Google Patents

Rule grammar for space division based on variable parameters Download PDF

Info

Publication number
CN110598319A
CN110598319A CN201910858438.6A CN201910858438A CN110598319A CN 110598319 A CN110598319 A CN 110598319A CN 201910858438 A CN201910858438 A CN 201910858438A CN 110598319 A CN110598319 A CN 110598319A
Authority
CN
China
Prior art keywords
grammar
nodes
length
node
allowance
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.)
Pending
Application number
CN201910858438.6A
Other languages
Chinese (zh)
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 Group's Nuclear Information Technology Co Ltd
Original Assignee
Hangzhou Group's Nuclear 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 Group's Nuclear Information Technology Co Ltd filed Critical Hangzhou Group's Nuclear Information Technology Co Ltd
Priority to CN201910858438.6A priority Critical patent/CN110598319A/en
Publication of CN110598319A publication Critical patent/CN110598319A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a rule grammar for space division based on variable parameters, which comprises grammar definition and grammar analysis, wherein the grammar definition is used for setting accurate numerical value nodes, has no mutual influence relation with other nodes and determines the length of the grammar; and (3) relative node: the proportion part is provided, and the lengths except the accurate node are distributed in proportion to other relative nodes; multiples of exact numerical values: after the ratio calculation, the system calculates a value that is an exact numerical multiple less than the total length of the segment. The rule grammar of the space division based on the variable parameters can be realized, a user can rapidly divide and express the parameterization of the region and the space without setting complex parameters and writing according to the grammar mode set by the system, the user's hands difficulty is reduced, and the modeling efficiency is improved.

Description

Rule grammar for space division based on variable parameters
The technical field is as follows:
the invention relates to the field of home decoration, in particular to a rule grammar for space division based on variable parameters.
Background art:
the parametric modeling is a computer aided design method and is an important process of parametric design. A parameterized model of the real-world object is constructed through a parameterized modeling tool, and the parameterized model is not only consistent with the three-dimensional appearance of the real-world object, but also has a complete information base consistent with the actual object. The information base enables the parameterized model to be applied not only in design, but also in other links of a supply chain such as model production and transportation. For the plate type household industry, parameters are not fixed but change within a certain range, so that the plate type household appliance has multiple purposes, and the efficiency of links such as design and modeling is improved.
The part of the core of the parametric modeling is how to record real-world information in a parametric manner, and allow the parameters to be changed and adjusted within a certain range.
At present, although partial local software and partial cloud software have the capability of realizing partial parameterization, common parameterization software in the market is very complex in size setting and high in setting difficulty, and is not combined with common modeling behaviors at present, so that the modeling efficiency is relatively low.
The invention content is as follows:
the technical problem to be solved by the invention is to provide a simple rule grammar based on space division of variable parameters, which can realize that a user can quickly partition and express parameterization of regions and spaces without setting complex parameters and writing according to a grammar mode set by a system, thereby reducing the user's hands difficulty and improving the modeling efficiency.
The technical solution of the present invention is to provide a rule grammar for variable parameter based spatial partitioning, including grammar definition and grammar parsing, wherein,
the syntax is defined as follows,
the method is used for setting accurate numerical value nodes, wherein the accurate numerical value nodes have no mutual influence relation with other nodes and determine the length of the nodes by self;
and (3) relative node: the proportion part is provided, and the lengths except the accurate node are distributed in proportion to other relative nodes;
multiples of exact numerical values: after the proportion is calculated, the system calculates the value which is smaller than the total length of the segment and is the multiple of the accurate numerical value;
combining nodes: all other nodes are combined by the identifier defined by the system, and the length of the combined node is calculated by the system;
and (4) allowance node: the length is determined by the total length and all other types of nodes;
the order of parsing the above-described syntax is as follows,
step 1, analyzing the whole parameterized statement, finding a part of a reference parameter, preferentially analyzing the parameter part, and analyzing a specific numerical value of the reference parameter;
step 2, expanding the simplified writing method in the grammar, and analyzing the semantics of the original user;
step 3, converting the part marked by the special symbol of the margin node in the grammar into the margin node used in the system calculation;
and 4, analyzing the whole grammar. If the grammar has errors, prompting the user not to carry out the next analysis, and if the grammar is correct, carrying out the step 6;
step 5, finding out all relative nodes and margin nodes and calculating the total length, the total proportion and the total margin multiple;
step 6, calculating the total length outside the accurate length;
step 7, calculating unit length according to the total length and the total proportion outside the accurate length, and setting the unit length for the relative node;
step 8, obtaining the total length of the allowance calculation allowance of all the relative nodes, calculating unit allowance according to the total length of the allowance and the multiple of the total allowance, and setting unit allowance for the allowance nodes;
and 9, calculating the length of each node according to the attributes and calculating the space defined mode.
Compared with the prior art, the invention has the following advantages after adopting the scheme: according to the invention, a complete parameterization grammar set is used, a parameterization scheme for defining the size and the dimension of the space can be rapidly set, and the setting efficiency of the size, the position and the like of the space is improved, so that the modeling efficiency is improved. Besides the first time, the grammar is divided through the simple proportion, so that a novice can quickly carry out parametric modeling, and the technical requirements on workers are reduced
The specific implementation mode is as follows:
the invention is further illustrated with respect to specific embodiments below:
example 1
A rule grammar based on space division of variable parameters includes grammar definition and grammar parsing,
step 1, filling out a sentence by a user according to grammar, wherein the concrete writing method of the grammar is as follows:
a node is identified between two';
taking a basic node as a unit, wherein the basic node supports multiplication and division;
each basic node can be combined into a combined node through "+", "-";
the multiples of the expression accuracy values, such as [32mm ], were identified as [ ]. The multiplication and division of "[ ]" can be placed before and after, such as 2 x 2[32mm ], can express 4[32mm ], 2[32mm ] x 2 can also express 4[32mm ];
parameters set by the system can be filled in the [ ] ", and parameter results in the [ ]" can be analyzed;
a repeated node can be replicated n times by expressing n '{ }';
when no relative node exists in the combined node, the accurate numerical value node in the combined node can be used as an accurate numerical value to be processed; when the combination node has a relative node, the accurate value in the combination node is used as the differential quantity of the relative node;
step 2, the first step is to process the SPEL grammar portion before entering the linear segmentation logic, with nodes identified in "[ ]" and not in "\\ \ d + mm ]" format considered as SPEL nested portions. And (4) analyzing the nested part, and replacing the contents in the brackets and the "[ ]" with analyzed numbers.
For example, W is 500, [ # W ] +50mm [ # W:200] mm:2[32mm ]: x would be treated as 500+50mm:500mm:2[32mm ]: x.
And step 3: and processing the part with simplified grammar. Namely "n { }": the local linear partitioning syntax bracketing "{ }" is copied n times.
Such as: 2 {1:1} will be processed to 1:1:1:1
And 4, step 4: analyzing the character string, and analyzing the residual node x into residual numerical values;
and 5: the logical part of the illegal grammar specification is processed and the user is prompted. Such as: the node can not be empty, the node can not be 0, [ ] the node must contain mm and the rest node.
Step 6: calculating a margin node;
6-1, finding out all relative nodes and margin nodes and calculating the total determined length, the total proportion and the total margin multiple;
6-2, calculating and determining the total length outside the length;
6-3, calculating the unit length according to the total length and the total proportion outside the determined length, and setting the unit length for the relative node;
6-4, obtaining the allowance of all relative nodes to calculate the total allowance length, calculating unit allowance according to the total allowance length and the total allowance multiple, and setting unit allowance for the allowance nodes;
6-5, each node calculates its own length according to the attributes.

Claims (1)

1. A rule grammar for variable parameter based spatial partitioning, characterized by: including grammar definitions and grammar parsing, wherein,
the syntax is defined as follows,
the method is used for setting accurate numerical value nodes, wherein the accurate numerical value nodes have no mutual influence relation with other nodes and determine the length of the nodes by self;
and (3) relative node: the proportion part is provided, and the lengths except the accurate node are distributed in proportion to other relative nodes;
multiples of exact numerical values: after the proportion is calculated, the system calculates the value which is smaller than the total length of the segment and is the multiple of the accurate numerical value;
combining nodes: all other nodes are combined by the identifier defined by the system, and the length of the combined node is calculated by the system;
and (4) allowance node: the length is determined by the total length and all other types of nodes;
the order of parsing the above-described syntax is as follows,
step 1, analyzing the whole parameterized statement, finding a part of a reference parameter, preferentially analyzing the parameter part, and analyzing a specific numerical value of the reference parameter;
step 2, expanding the simplified writing method in the grammar, and analyzing the semantics of the original user;
step 3, converting the part marked by the special symbol of the margin node in the grammar into the margin node used in the system calculation;
and 4, analyzing the whole grammar. If the grammar has errors, prompting the user not to carry out the next analysis, and if the grammar is correct, carrying out the step 6;
step 5, finding out all relative nodes and margin nodes and calculating the total length, the total proportion and the total margin multiple;
step 6, calculating the total length outside the accurate length;
step 7, calculating unit length according to the total length and the total proportion outside the accurate length, and setting the unit length for the relative node;
step 8, obtaining the total length of the allowance calculation allowance of all the relative nodes, calculating unit allowance according to the total length of the allowance and the multiple of the total allowance, and setting unit allowance for the allowance nodes;
and 9, calculating the length of each node according to the attributes and calculating the space defined mode.
CN201910858438.6A 2019-09-11 2019-09-11 Rule grammar for space division based on variable parameters Pending CN110598319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910858438.6A CN110598319A (en) 2019-09-11 2019-09-11 Rule grammar for space division based on variable parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910858438.6A CN110598319A (en) 2019-09-11 2019-09-11 Rule grammar for space division based on variable parameters

Publications (1)

Publication Number Publication Date
CN110598319A true CN110598319A (en) 2019-12-20

Family

ID=68858855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910858438.6A Pending CN110598319A (en) 2019-09-11 2019-09-11 Rule grammar for space division based on variable parameters

Country Status (1)

Country Link
CN (1) CN110598319A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482822A (en) * 2009-01-20 2009-07-15 北京航空航天大学 Three-dimensional object control oriented script language system and control method
WO2011112745A1 (en) * 2010-03-09 2011-09-15 Qualcomm Incorporated Rate adaptation for sdma
CN103077282A (en) * 2013-01-15 2013-05-01 西南交通大学 Rapid modeling method for high-speed railway scene based on basic-element combination and multilevel semantic constraint
CN105550387A (en) * 2015-11-03 2016-05-04 徐工集团工程机械股份有限公司 Method and system for constructing process model on the basis of parameterization
CN106599463A (en) * 2016-12-14 2017-04-26 浙江精工钢结构集团有限公司 Free-form surface-based parametric modeling method of space grid structure
CN106934163A (en) * 2017-03-17 2017-07-07 河南省交通规划设计研究院股份有限公司 Bridge 3 D model construction method based on BIM
CN107526895A (en) * 2017-09-06 2017-12-29 合肥工业大学 A kind of ancient houses group rapid modeling system
CN110210085A (en) * 2019-05-20 2019-09-06 南京理工大学 Indent hexagon negative poisson's ratio lattice structure Parameterized Method for Finite Element method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101482822A (en) * 2009-01-20 2009-07-15 北京航空航天大学 Three-dimensional object control oriented script language system and control method
WO2011112745A1 (en) * 2010-03-09 2011-09-15 Qualcomm Incorporated Rate adaptation for sdma
CN103077282A (en) * 2013-01-15 2013-05-01 西南交通大学 Rapid modeling method for high-speed railway scene based on basic-element combination and multilevel semantic constraint
CN105550387A (en) * 2015-11-03 2016-05-04 徐工集团工程机械股份有限公司 Method and system for constructing process model on the basis of parameterization
CN106599463A (en) * 2016-12-14 2017-04-26 浙江精工钢结构集团有限公司 Free-form surface-based parametric modeling method of space grid structure
CN106934163A (en) * 2017-03-17 2017-07-07 河南省交通规划设计研究院股份有限公司 Bridge 3 D model construction method based on BIM
CN107526895A (en) * 2017-09-06 2017-12-29 合肥工业大学 A kind of ancient houses group rapid modeling system
CN110210085A (en) * 2019-05-20 2019-09-06 南京理工大学 Indent hexagon negative poisson's ratio lattice structure Parameterized Method for Finite Element method

Similar Documents

Publication Publication Date Title
CN1885295B (en) Building integrated circuits using logical units
Lockett et al. Graph-based feature recognition for injection moulding based on a mid-surface approach
CN111708531B (en) Data processing method and device
Paules IV et al. APROS: Algorithmic development methodology for discrete-continuous optimization problems
CN105138769B (en) A kind of temporal model generation method and device for programmable circuit
CN105761303A (en) Creation Of Bounding Boxes On 3d Modeled Assembly
JP6797238B2 (en) 3D graphic annotation with semantic attributes
CN103135446B (en) Motion trail authentication device of multiaxis numerical control machine tool
CN102968539A (en) Method for massively and quickly generating format drawing
Nandavar et al. Interactive Virtual Reality Tool for BIM Based on IFC
CN109725900B (en) SMV (simple message modeling) model construction method of register transmission level Verilog code
CN111339640A (en) Automatic building parking space number creation method based on Revit plug-in Dynamo
CN114741085A (en) Data processing method, device, equipment and storage medium
Kimura et al. Variational geometry based on logical constraints and its applications to product modelling
CN109978994A (en) Later period based on BIM technology roams rendering method
CN107330209B (en) Modeling wall intelligent template implementation method based on parametric design
CN110598319A (en) Rule grammar for space division based on variable parameters
CN105488052B (en) Structural data is switched to the method and system of format formfile
CN111612686B (en) Structure mapping method from EBOM to PBOM
CN103065020A (en) Method for applying CAD (computer-aided design) drawing to precision finger-type milling cutter for involute gears
Scheffler et al. Modelling CAD models: Method for the model driven design of CAD models for deep drawing tools
CN106528916A (en) Collaboration system for adaptive subspace iterative segmentation applied to fusion reactor nuclear analysis
CN114386200B (en) Engineering drawing generation method and equipment based on parameterized template technology
US9841954B1 (en) Method and system for automatic code generation
Yammada et al. Intelligent mold design tool for plastic injection molding

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191220