Summary of the invention
The technical problem to be solved is provide a kind of three-dimensional furniture Product Assembly modeling method and be
System, it is possible to build furniture item threedimensional model efficiently and accurately.
In order to solve above-mentioned technical problem, embodiments provide a kind of three-dimensional furniture Product Assembly modeling
Method, described method includes:
The certain point of selected product is assembling basic point, and with the initial point of absolute-coordinate three-dimensional system define selected by dress
Aglucon point;
It is several elementary cells by described Disassembling Products, and according to each elementary cell and product design outline
Corresponding position relationship, defines Geometrical Parameter and location parameter;Wherein, described Geometrical Parameter includes using
In describing the overall Geometrical Parameter of three direction feature dimensions of length of product appearance body and being used for retouching
State the local Geometrical Parameter of three direction feature dimensions of length of each elementary cell outward appearance body;Institute
State location parameter and include X, Y, the Z for describing each elementary cell modeling basic point and Product Assembly intercardinal
The global position parameter of three direction position dimensions and be used for describing each elementary cell body relative to product shape
Body is in the local location parameter of front, back, left, right, up Yu lower six direction position dimension;
According to the body characteristics of each elementary cell, each elementary cell is selected the modeling of its correspondence respectively
Basic point, and with described absolute-coordinate three-dimensional system as references object, the modeling basic point of each elementary cell divides
Do not construct the coordinate system corresponding with the described absolute-coordinate three-dimensional system three-dimensional modeling as each elementary cell
Coordinate system;
Before obtaining the modeling of each elementary cell, key point corresponding respectively and each key point corresponding three-dimensional are definitely sat
The coordinate figure of mark system, and the three-dimensional modeling coordinate system built respectively according to each elementary cell, by accessed
The coordinate figure of reference point of each elementary cell be all converted into the modeling coordinate figure of its correspondence, and root further
According to Geometrical Parameter and the location parameter of described definition, the modeling coordinate figure of each elementary cell converted is entered
Row association, obtains the modeler model after Product Assembly.
Wherein, described each elementary cell is the cellular construction part constituting product, and described cellular construction part
It is a part or the parts being made up of several parts.
Wherein, the three-dimensional modeling coordinate system of described each elementary cell is passed through by described absolute-coordinate three-dimensional system
Translation and/or the mode rotated realize.
The embodiment of the present invention additionally provides a kind of three-dimensional furniture Product Assembly modeling, and described three-dimensional furniture is produced
Product Assembled modeling system includes:
Product Assembly basic point definition unit, is assembling basic point for selecting the certain point of product, and with three-dimensional exhausted
Assembling basic point selected by the initial point of coordinate system is defined;
Disassembling Products unit, for being several elementary cells by described Disassembling Products, and according to each substantially
The position relationship that unit is corresponding with product design outline, defines Geometrical Parameter and location parameter;Wherein,
Described Geometrical Parameter includes the complete of three the direction feature dimensions of length for describing product appearance body
Office's Geometrical Parameter and for describing three direction feature dimensions of length of each elementary cell outward appearance body
Local Geometrical Parameter;Described location parameter includes for describing each elementary cell modeling basic point and product dress
Join the global position parameter of tri-direction position dimensions of X, Y, Z of intercardinal and each the most single for describing
Unit's body relative to product shape in the position, local of front, back, left, right, up Yu lower six direction position dimension
Put parameter;
Three-dimensional modeling coordinate transformation unit, for according to the body characteristics of each elementary cell, each substantially
The modeling basic point of its correspondence is selected respectively on unit, and with described absolute-coordinate three-dimensional system as references object,
The coordinate system corresponding with described absolute-coordinate three-dimensional system is constructed respectively on the modeling basic point of each elementary cell
Three-dimensional modeling coordinate system as each elementary cell;
Threedimensional model modeling unit, respectively corresponding reference point and every before obtaining the modeling of each elementary cell
The coordinate figure of one reference point correspondence absolute-coordinate three-dimensional system, and the three-dimensional built respectively according to each elementary cell
Modeling coordinate system, is all converted into its correspondence by the coordinate figure of the reference point of accessed each elementary cell
Modeling coordinate figure, and further according to Geometrical Parameter and the location parameter of described definition, each by converted
The modeling coordinate figure of elementary cell is associated, and obtains the modeler model after Product Assembly.
Wherein, described each elementary cell is the cellular construction part constituting product, and described cellular construction part
It is a part or the parts being made up of several parts.
Wherein, the three-dimensional modeling coordinate system of described each elementary cell is passed through by described absolute-coordinate three-dimensional system
Translation and/or the mode rotated realize.
Implement the embodiment of the present invention, have the advantages that
In embodiments of the present invention, due to can by call each elementary cell of Disassembling Products and input right
The parameter value answered, obtains meeting the elementary cell that design requires, and the body characteristics of elementary cell with and
Relative position in product entirety and relating to parameters, do not exist between elementary cell and elementary cell and mutually close chain,
Therefore facilitate the later stage to delete, the edit operation such as replacement;Simultaneously as elementary cell has in like product
Versatility, the most repeatable calls, and is substantially reduced the error rate of furniture item three-dimensional modeling, improves modeling
Efficiency and accuracy rate, shorten the research and development of products cycle, promotes economic benefit.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
As it is shown in figure 1, be in the embodiment of the present invention, a kind of three-dimensional furniture Product Assembly modeling method of proposition,
Described method includes:
Step S101, the certain point of selected product are assembling basic point, and fixed with the initial point of absolute-coordinate three-dimensional system
Assembling basic point selected by justice;
Detailed process is, according to the design drawing of product, comprehensive its body characteristics of analysis, selected certain point is
The assembling basic point of product, and define this point with the initial point of absolute coordinate system, thereby determine that each point on product shape
Space coordinates.
Step S102, it is several elementary cells by described Disassembling Products, and according to each elementary cell and product
The position relationship that product profile outline is corresponding, defines Geometrical Parameter and location parameter;Wherein, described body
Parameter includes the overall body ginseng of three the direction feature dimensions of length for describing product appearance body
Count and for describing the local shape of three direction feature dimensions of length of each elementary cell outward appearance body
Body parameter;Described location parameter includes for describing each elementary cell modeling basic point and Product Assembly intercardinal
The global position parameter of tri-direction position dimensions of X, Y, Z and be used for describing each elementary cell body phase
For the product shape local location parameter in front, back, left, right, up Yu lower six direction position dimension;
Detailed process is, according to the parts constitutive characteristic of product, is several elementary cells by Disassembling Products,
In conjunction with the position relationship of elementary cell Yu product design profile, define its Geometrical Parameter and location parameter, with this
Determine the three-dimensional coordinate of each point in absolute coordinate three dimensions.Wherein, each elementary cell is composition product
The cellular construction part of product, and cellular construction part can be a part, it is also possible to it is made up of several parts
Parts.
In embodiments of the present invention, for the ease of computing and management, parameter palpus simplification also follows following principle:
I () preferentially uses the function expression of overall situation Geometrical Parameter to express local Geometrical Parameter;
(ii) the preferential function expression using overall situation Geometrical Parameter expresses global position parameter;
(iii) function expression of local location parameter is used to express global position parameter as far as possible;
(iv) function expression of overall situation Geometrical Parameter and global position parameter is used to express local as far as possible
Geometrical Parameter;
V () uses the overall situation Geometrical Parameter, global position parameter, the function table of local location parameter as far as possible
Reach formula and express local Geometrical Parameter;
(vi) locally the expression of Geometrical Parameter, in the case of cannot following principle (i), is the most preferentially abided by
Follow principle (iv), be finally only principle (v);
(vii) expression of global position parameter is in the case of cannot following principle (ii), it then follows principle (iii)
Step S103, body characteristics according to each elementary cell, select it in each elementary cell respectively
Corresponding modeling basic point, and with described absolute-coordinate three-dimensional system as references object, building of each elementary cell
The coordinate system corresponding with described absolute-coordinate three-dimensional system is constructed respectively as each elementary cell on mould basic point
Three-dimensional modeling coordinate system;
Detailed process is, according to the design drawing of product, the comprehensive body characteristics analyzing elementary cell, at base
Selected some conduct modeling basic point on this unit, with absolute coordinate system as references object, by translation and/or rotation
The method turned sets up relative coordinate system on modeling basic point, and is defined as modeling coordinate system, the most each the most single
The three-dimensional modeling coordinate system of unit is realized by the way of translation and/or rotation by absolute-coordinate three-dimensional system.
In embodiments of the present invention, absolute-coordinate three-dimensional system can be realized by formula 1. three-dimensional modeling coordinate system,
Formula is the most specific as follows:
Wherein, x, y, z are certain point P coordinate figure in absolute coordinate system, and x ', y ', z ' are this P
Coordinate figure in modeling coordinate system, dx, dy, dz are modeling coordinate origin seat in absolute coordinate system
Scale value, andThen for modeling coordinate system relative to absolute coordinate system successively around X-axis, Y-axis, the edge of Z axis
The anticlockwise anglec of rotation.
According to elementary cell position relation in absolute coordinate system,Value mainly have following three kinds of feelings
Condition:
(i)Take 90 °, 0 °, 0 ° respectively, i.e. in absolute coordinate system, modeling coordinate system
O ' x ' y ' plane is horizontal frontal plane, is suitable for the elementary cell in upright direction;
(ii)Take 0 °, 270 °, 0 ° respectively, i.e. in absolute coordinate system, modeling coordinate system
O ' x ' y ' plane is side plane, is suitable for the elementary cell in edge-on direction;
(iii)Take 0 °, 0 °, 0 ° respectively, i.e. in absolute coordinate system, the o ' x ' y ' of modeling coordinate system
Plane is horizontal plane, is suitable for the elementary cell of horizontal direction.
Step S104, the reference point obtaining the front correspondence respectively of each elementary cell modeling and each reference point are corresponding
The coordinate figure of absolute-coordinate three-dimensional system, and the three-dimensional modeling coordinate system built respectively according to each elementary cell,
The coordinate figure of the reference point of accessed each elementary cell is all converted into the modeling coordinate figure of its correspondence,
And further according to Geometrical Parameter and the location parameter of described definition, by building of each elementary cell converted
Mould coordinate figure is associated, and obtains the modeler model after Product Assembly.
Detailed process is, according to formula 1., by reference point each in each elementary cell in absolute coordinate system
Coordinate figure, is converted into the coordinate figure in modeling coordinate system, determines the modeling coordinate points of elementary cell, go forward side by side one
Walk in modeling coordinate system, connect each reference point, set up the threedimensional model of elementary cell, complete elementary cell
Modeling, simultaneously according to Geometrical Parameter and location parameter, the modeling coordinate of each elementary cell that will be converted
Value is associated, and obtains the modeler model after Product Assembly.
Assembling base it is understood that according to product design demand, with the initial point of absolute coordinate system as product
Point, by calling selected basic zone model (can select all of) and inputting corresponding parameter,
Generating required elementary cell, unification is positioned to assemble basic point, thus assembling obtains product model so that modeling
More flexible.
As shown in Fig. 2 to Fig. 8, answering the three-dimensional furniture Product Assembly modeling method in the embodiment of the present invention
It is described further by scene:
With the cabinet in Fig. 2 as embodiment, it is carried out three-dimensional modeling.Comprise the following steps:
(1) the assembling basic point of cabinet products is defined
According to the design drawing of cabinet, comprehensive its body characteristics of analyzing, selected left front lower angle point is this cabinet
Assembling basic point, and define this point with the initial point O of absolute coordinate system O-XYZ 6, determine on cabinet with this
The three dimensional space coordinate of each point.
(2) modeling parameters of elementary cell is defined
Part constitutive characteristic according to this cabinet products, can be broken down into five elementary cells, is respectively a left side
Side plate 1, top board 2, backboard 3, right plate 4 and base plate 5, on this basis, arrange the shape of cabinet products
Body parameter and location parameter, as shown in Figure 3.
Wherein, overall situation Geometrical Parameter W, D, H is the overall length of cabinet, aggregate depth and total high parameter;Locally body
Parameter l, d, t1 are the length of base plate 5, width and thickness parameter;Locally Geometrical Parameter h, t2 is backboard
The height of 3 and thickness parameter, the length parameter of backboard 3 is identical with base plate 5;Left plate 1, right plate 4,
The thickness parameter of top board 2 is identical with base plate 5, is t1.
Wherein, local location parameter pr, pl, pf, pb, pd be the left side of base plate 5, right side, front side,
Rear side and the location parameter of bottom, pr, pl, t1 three is equal in the present embodiment;The rear side position of backboard 3
Put parameter identical with the rearward position parameter of base plate 5, be pd.Global position parameter dx, dy, dz are for building
The initial point O ' of mould coordinate system O '-X ' Y ' Z ' 7 X-axis in absolute coordinate system O-XYZ6, Y-axis, Z axis
Coordinate, as shown in Figure 5;Global position parameter dx ", dy ", dz " for modeling coordinate system O "-X " Y " Z " 7
The initial point O ' X-axis in absolute coordinate system O-XYZ6, Y-axis, the coordinate of Z axis, as shown in Figure 7.
Arrange according to above parameter, Geometrical Parameter is carried out parameter predigesting by following principle: determine on base plate 5
Each angle point p9 on each angle point p1, p2, p3, p4, p5, p6, p7, p8 and backboard 3, p10, p11, p12,
P13, p14, p15, p16 coordinate figure in absolute coordinate system O-XYZ6, as shown in Figure 4 and Figure 6.
(3) the modeling coordinate system of elementary cell is defined
The comprehensive body characteristics analyzing elementary cell base plate 5, choosing its left front lower angle point is modeling basic point, with
Absolute coordinate system O-XYZ6 is references object, by the method for translation, sets up absolute coordinate on modeling basic point
It is the relative coordinate system of O-XYZ6, and is defined as modeling coordinate system O '-X ' Y ' Z ' 7, as it is shown in figure 5, then
0 ' some coordinate figure in absolute coordinate system O-XYZ6 is (dx, dy, dz).Can obtain through analyzing:
Dx=pr=pl is 2.
Dy=pf is 3.
Dz=pd is 4.
The comprehensive body characteristics analyzing elementary cell backboard 3, choosing its left front lower angle point is modeling basic point, with
Absolute coordinate system O-XYZ6 is references object, by translation, the method for rotation, sets up absolutely on modeling basic point
Relative coordinate system to coordinate system O-XYZ6, and be defined as modeling coordinate system O "-X " Y " Z " 8, as it is shown in fig. 7,
Then O " some coordinate figure in absolute coordinate system O-XYZ6 be (dx ", dy ", dz ").Can obtain through analyzing:
"=pr=pl is 5. for dx
"=D-pd-t2 is 6. for dy
Dz=H-t1-h is 7.
(4) coordinate points of the elementary cell that converts
According to step (3) Suo Shu, the modeling coordinate system O '-X ' Y ' Z ' 7 of base plate 5 is absolute coordinate system O-XYZ6
Translation obtains, therefore itsEqual 0 °.
Therefore by formula 2., 3., 4. andSubstitute into formula 1., can obtain:
Therefore 8. the coordinate of p1, p2, p3, p4, p5, p6, p7, p8 is substituted into formula, can obtain p1 ', p2 ',
P3 ', p4 ', p5 ', p6 ', p7 ', p8 ', as shown in Figure 5.
According to step (3) Suo Shu, the modeling coordinate system O "-X " Y " Z " 8 of backboard 3 is absolute coordinate system O-XYZ6
Translation, rotation obtain, wherein:
ω=90 ° are 9.
K=0 ° 10.
Therefore by formula 5., 6., 7., 9., 10. withSubstitute into formula 1., can obtain:
Therefore the coordinate of p9, p10, p11, p12, p13, p14, p15, p16 is substituted into formulaCan obtain p9 ',
P10 ', p11 ', p12 ', p13 ', p14 ', p15 ', p16 ', as shown in Figure 7.
(5) modeling of elementary cell is completed
It is connected each angle point in modeling coordinate system O "-X " Y " Z " 8 respectively at modeling coordinate system O '-X ' Y ' Z ' 7,
Complete the shape planning of elementary cell base plate 5 and backboard 3.
Repeat (3), (4) complete elementary cell left plate 1, top board 2, the shape planning of right plate 4.
(6) call basic zone model, assemble cabinet modeling
According to the design requirement of cabinet, the assembling basic point with the initial point O of absolute coordinate system O-XYZ6 as cabinet,
By the basic zone model described in invocation step (5), and input corresponding parameter value, generate and meet design
The elementary cell required, unified being positioned is assembled basic point, assembles and obtain cabinet model, completes modeling, finally
Model is as shown in Figure 8.
Sum it up, according to the modeling method in the present invention, by calling elementary cell, according to design requirement,
Input parameter value, obtains meeting the elementary cell that design requires, on the one hand, the body characteristics of elementary cell with
And the relative position in product entirety is only and relating to parameters, there is not phase between elementary cell with elementary cell
Close chain mutually, facilitate the later stage to delete, the edit operation such as replacement;On the other hand, elementary cell is built at like product
In mould, repeatable call, it is not necessary to build the most again, therefore comprehensive above 2 points, furniture item three can be substantially reduced
The error rate of dimension modeling, improves modeling efficiency and accuracy rate, shortens the research and development of products cycle.
As it is shown in figure 9, be in the embodiment of the present invention, it is provided that a kind of three-dimensional furniture Product Assembly modeling,
Described three-dimensional furniture Product Assembly modeling includes:
Product Assembly basic point definition unit 210, is assembling basic point for selecting the certain point of product, and with three-dimensional
The assembling basic point selected by initial point definition of absolute coordinate system;
Disassembling Products unit 220, being used for described Disassembling Products is several elementary cells, and according to each base
The position relationship that this unit is corresponding with product design outline, defines Geometrical Parameter and location parameter;Wherein,
Described Geometrical Parameter includes the complete of three the direction feature dimensions of length for describing product appearance body
Office's Geometrical Parameter and for describing three direction feature dimensions of length of each elementary cell outward appearance body
Local Geometrical Parameter;Described location parameter includes for describing each elementary cell modeling basic point and product dress
Join three direction position dimensions of length of intercardinal global position parameter and for describe each substantially
Unit body relative to product shape in the local of front, back, left, right, up Yu lower six direction position dimension
Location parameter;
Three-dimensional modeling coordinate transformation unit 230, for the body characteristics according to each elementary cell, at each base
The modeling basic point of its correspondence is selected respectively on this unit, and with described absolute-coordinate three-dimensional system as references object,
The modeling basic point of each elementary cell constructs the coordinate corresponding with described absolute-coordinate three-dimensional system respectively
It it is the three-dimensional modeling coordinate system as each elementary cell;
Threedimensional model modeling unit 240, before obtaining the modeling of each elementary cell respectively corresponding reference point and
The coordinate figure of each reference point correspondence absolute-coordinate three-dimensional system, and three built respectively according to each elementary cell
Dimension modeling coordinate system, is all converted into it corresponding by the coordinate figure of the reference point of accessed each elementary cell
Modeling coordinate figure, and further according to Geometrical Parameter and the location parameter of described definition, every by converted
The modeling coordinate figure of one elementary cell is associated, and obtains the modeler model after Product Assembly.
Wherein, described each elementary cell is the versatility cellular construction part constituting product, and described unit
Structural member is a part or the parts being made up of several parts.
Wherein, the three-dimensional modeling coordinate system of described each elementary cell is passed through by described absolute-coordinate three-dimensional system
Translation and/or the mode rotated realize.
Implement the embodiment of the present invention, have the advantages that
In embodiments of the present invention, due to can by call each elementary cell of Disassembling Products and input right
The parameter value answered, obtains meeting the elementary cell that design requires, and the body characteristics of elementary cell with and
Relative position in product entirety and relating to parameters, do not exist between elementary cell and elementary cell and mutually close chain,
Therefore facilitate the later stage to delete, the edit operation such as replacement;Simultaneously as elementary cell has in like product
Versatility, therefore can be substantially reduced the error rate of furniture item three-dimensional modeling, improves modeling efficiency with accurate
Rate, shortens the research and development of products cycle.
It should be noted that in said system embodiment, each included system unit is according to function
Logic carries out dividing, but is not limited to above-mentioned division, as long as being capable of corresponding function;
It addition, the specific name of each functional unit is also only to facilitate mutually distinguish, it is not limited to the present invention
Protection domain.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is
Can instruct relevant hardware by program to complete, described program can be stored in a computer-readable
Taking in storage medium, described storage medium, such as ROM/RAM, disk, CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention
Protection domain within.