Background technology
TOLERANCE ANALYSIS refers to and is meeting under the prerequisite of the requirements such as product function, performance, outward appearance and assembling capacity, the tolerance of reasonable definition and distribution member and product, and optimizing product design, manufactures a product with minimum cost and the highest quality.
TOLERANCE ANALYSIS is as very useful instrument in the product design towards manufacturing and assemble, can help mechanical engineer: realize the tolerance of reasonable setting member to reduce the manufacturing cost of element, the assembling capacity of decision element, whether decision element interferes with the rear product critical size of decision element assembling whether meet the requirements such as outward appearance, quality and function in assembling process.
In the time finding that by TOLERANCE ANALYSIS product design does not meet the demands, generally there are two kinds of methods to solve problem.The first reaches requirement by accurate component tolerances, but this can increase the manufacturing cost of element; It two is that design by optimizing product (for example, increasing assembling and positioning feature) meets product design requirement.
And existing TOLERANCE ANALYSIS is by the relevant drawing of artificial selection and data are inserted in TOLERANCE ANALYSIS table.And utilize the correction of dimension chain (dimensional chain), use and find out adjustable position of components.Dimension chain is one group of interconnected size and form how much closed-loops.It can be the size of multiple elements in multiple position of components or assembling finished product on an element.Please refer to shown in Fig. 1 the sign schematic diagram that it is existing dimension chain.Dimension chain is by each local element (input size) and a closure elements (result size) and form.Local element (A, B, C, D, E, F and G) can be size or the processing defining on drawing, the size of assembling.The size of result entirety, tolerance and limit deviation depend on size and the tolerance of local element.
But in the process that size and tolerance are inserted, size that may generating device gets the wrong sow by the ear or the situation such as dimension chain anisotropy.This will allow dimension chain cannot reach the requirement of sealing, makes to occur while carrying out TOLERANCE ANALYSIS error.
Summary of the invention
In view of above problem, the object of the present invention is to provide a kind of tolerance detection system of computer graphics, be applied to the processing of plotter program Dimension Chain Tolerance of multiple local element in acquisition construction package.
The tolerance detection system of the disclosed computer graphics of the present invention comprises: display unit, input block, storage element and processing unit.Display unit shows visual interface, and visual interface is in order to show local element and selected unique point; Input block receives move, target selection instruction and feature selecting instruction, selects to appoint local element and unique point from display unit; Storage unit stores construction package and TOLERANCE ANALYSIS table; Processing unit is connected in display unit and storage element, processing unit according to target selection instruction in order to select the impact point in the local element in visual interface; Wherein, processing unit determines the dimension chain direction of local element according to the moving direction of move, and processing unit is selected unique point according to feature selecting instruction and in dimension chain direction, and measures the spacing of unique point; Complete after all unique points, processing unit is according to the distance between impact point and unique point and distance computation Dimension Chain Tolerance and Dimension Chain Tolerance is recorded in TOLERANCE ANALYSIS table.
The another tolerance detection method that proposes a kind of computer graphics of the present invention, it comprises the following steps: select local element; Optional impact point from selected local element; Take impact point as benchmark and select dimension chain direction; In local element, select the spacing of unique point calculated characteristics point along dimension chain direction; New unique point and the step of calculating spacing are selected in the final election of laying equal stress on take unique point as benchmark; All unique points and affiliated spacing are recorded in TOLERANCE ANALYSIS table.
Whether the tolerance detection system of computer graphics proposed by the invention and method thereof can be selected the dimension chain of local element and calculate corresponding tolerance to meet required automatically.The present invention can be applied in various computer graphics, and the relative dimensions of local element is brought in TOLERANCE ANALYSIS table, uses the activity duration of simplifying while conversion between different mapping softwares.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Accompanying drawing explanation
Fig. 1 is the sign schematic diagram of existing dimension chain.
Fig. 2 is configuration diagram of the present invention.
Fig. 3 is operation workflow schematic diagram of the present invention.
Fig. 4 A, it is dimension chain detection of the present invention and the schematic diagram that automatically records TOLERANCE ANALYSIS table.
Fig. 4 B, it is dimension chain detection of the present invention and the schematic diagram that automatically records TOLERANCE ANALYSIS table.
Fig. 4 C, it is dimension chain detection of the present invention and the schematic diagram that automatically records TOLERANCE ANALYSIS table.
Fig. 4 D, it is dimension chain detection of the present invention and the schematic diagram that automatically records TOLERANCE ANALYSIS table.
Fig. 4 E, it is dimension chain detection of the present invention and the schematic diagram that automatically records TOLERANCE ANALYSIS table.
Fig. 4 F is that dimension chain of the present invention detects and the schematic diagram that automatically records TOLERANCE ANALYSIS table.
Fig. 5 is the decision flow chart of sealing size chain of the present invention.
[main element symbol description]
Local element A, B, C, D, E, F, G
Tolerance detection system 200
Display unit 210
Input block 220
Storage element 230
Plane pictorial information 231
Three-dimensional icon information 232
TOLERANCE ANALYSIS table 233
Processing unit 240
Impact point 411
First direction 412
Second direction 413
First Characteristic point 421
Second Characteristic point 422
The 3rd unique point 423
Four characteristic points 424
Embodiment
Below in conjunction with accompanying drawing, structural principle of the present invention and principle of work are described in detail:
The present invention is applied among computer drawing software.The present invention is except can, with independently application program realizes, also operating by the mode of plug-in program the computer graphics program of arranging in pairs or groups.And the kind of computer graphics can be but be not defined as the software such as 3D MAX, Pro/E or Auto CAD.
Please refer to shown in Fig. 2, it is configuration diagram of the present invention.The tolerance detection system 200 of computer graphics of the present invention comprises: display unit 210, input block 220, storage element 230 and processing unit 240.Processing unit 240 is electrically connected at display unit 210, input block 220 and storage element 230.Processing unit 240 described herein can be made a general reference the computer installation (computer) for having arithmetic capability.Display unit 210 can show a visual interface (not illustrating), and visual interface is in order to draw local element and selected unique point.Visual interface, except the picture of the aforesaid computer graphics program of can arranging in pairs or groups, can be also another display interface that is independent of described computer graphics program.
The kind of input block 220 can be keyboard, mouse or other locating devices (pointer).User can assign move, target selection instruction and feature selecting instruction to processing unit 240 by input media.Storage element 230 is in order to store plane pictorial information 231(or three-dimensional icon information 232) and TOLERANCE ANALYSIS table 233.Construction package is in the present invention the structure being made up of multiple local element.Plane pictorial information 231 from three-dimensional icon information 232 in order to note down the different displaying contents of construction package.Plane pictorial information 231 is in order to note down the every terms of information of planar configuration of construction package.Three-dimensional pictorial information 232 records the relevant information of the spatial structure of local element.And all corresponding unique point of each local element.
For distinguishing current selected unique point and non-selected unique point, therefore in the present invention selected unique point is defined as to impact point.The major function of move is the vernier in moving-vision interface.The effect of target selection instruction is the impact point of selecting on vernier position.The effect of feature selecting instruction is from existing impact point along next unique point of dimension chain set direction setting.
For clearly demonstrating operation workflow of the present invention, also please refer to shown in Fig. 3, it is operation workflow schematic diagram of the present invention.Tolerance detection method of the present invention comprises the following steps:
Step S310: select plane pictorial information or three-dimensional icon information;
Step S320: choice structure assembly;
Step S330: choose local element and corresponding impact point from selected construction package;
Step S340: take impact point as benchmark and select dimension chain direction;
Step S350: the spacing of selecting unique point calculated characteristics point along dimension chain direction in local element;
Step S360: new unique point and the step of calculating spacing are selected in the final election of laying equal stress on take unique point as benchmark; And
Step S370: all unique points and affiliated spacing are recorded in TOLERANCE ANALYSIS table.
First, user can select plane pictorial information 231 or three-dimensional icon information 232 arbitrary.So and the following mode of plane pictorial information 231 that adopts is for convenience of description illustrated, be not only confined to this.And please coordinate shown in Fig. 4 A~Fig. 4 F, it is to be respectively dimension chain of the present invention to detect and the schematic diagram that automatically records TOLERANCE ANALYSIS table 233.If while there is multiple construction package in plane pictorial information 231, user can select arbitrary construction package from plane pictorial information 231.And be each unique point in component-bar chart 4A~Fig. 4 F, so to the unique point of Fig. 4 B~Fig. 4 F be defined as respectively First Characteristic point, Second Characteristic point, the 3rd unique point, with four characteristic points.
Then, from selected construction package, choose local element and corresponding impact point.The mode of choosing of impact point can determine according to the kind of construction package.And described impact point and unique point form the dimension chain of a sealing.Shown in Fig. 4 A, choosing of impact point can be chosen from the edge of construction package.In Fig. 4 A, choose rightmost local element and as impact point, as shown in the impact point 411 of Fig. 4 A.For the impact point 411 in energy presentation graphs 4A is therefore using this solid stain as signal, other unique points are using hollow stain as representing.But might not be using this as representing in aforesaid mapping software.In this simultaneously, processing unit 240 is recorded in impact point 411 among the first hurdle in TOLERANCE ANALYSIS table 233.Because an impact point 411 only there is no spacing, so the spacing field in TOLERANCE ANALYSIS table 233 is not insert any numerical value.
Complete after the choosing of impact point 411, user can and then determine dimension chain direction according to the composition of construction package.Take Fig. 4 A as example, impact point 411 right-hand do not had other local element.Therefore user can choose from the left of impact point 411 other local element (with unique point).User can assign move to processing unit 240 by input block 220, and vernier is moved to next local element.Impact point 411 to the direction of an inferior unique point is defined as dimension chain direction.Because the position of each local element is all not identical, make the dimension chain direction also can be different.
Because this embodiment of Fig. 4 A is using square section as construction package, so dimension chain direction is only two directions, be defined as first direction 412 and second direction 413 at this.And the angle between first direction 412 and second direction 413 is to be 180 degree.But this angle is only of the present invention illustrating, multiple different directions as shown in Figure 1 in the time of actual operation.To be first direction 412 from the dimension chain direction of the First Characteristic point 421 of impact point 411 to Fig. 4 B.And calculate the spacing of impact point 411 to 421 of First Characteristic points.First Characteristic point 421 is recorded with spacing to TOLERANCE ANALYSIS table 233.And First Characteristic point 421 is to be second direction 413 to the dimension chain direction of Second Characteristic point 422.
Take the First Characteristic point 421 of Fig. 4 B as new starting point, and select Second Characteristic point 422(to please refer to shown in Fig. 4 C).Processing unit 240 will judge dimension chain direction and the spacing of First Characteristic point 421 with Second Characteristic point 422.Processing unit 240 is recorded to dimension chain direction and spacing in TOLERANCE ANALYSIS table 233.Next, repeat aforementioned manner and carry out time dimension chain of bout and the judgement of spacing and measurement take Second Characteristic point 422 as new starting point.Processing unit 240 again by obtained outcome record to TOLERANCE ANALYSIS table 233.Processing unit 240 sequentially obtain dimension chain direction between the 3rd unique point 423 and four characteristic points 424 and the spacing between two unique points, processing unit 240 is recorded to acquired results in TOLERANCE ANALYSIS table 233.Then processing unit 240 sequentially obtain the spacing between dimension chain direction and two unique points between four characteristic points 424 and impact point 411, processing unit 240 is recorded to acquired results in TOLERANCE ANALYSIS table 233.
The definition of the dimension chain for sealing, aforementioned obtained spacing summation should be zero.Therefore the present invention, for self registering every terms of information, can make further statistics (corresponding to step S370) after acquisition completes, and uses the definition that judges whether to meet sealing size chain.Please refer to shown in Fig. 5, it is the decision flow chart for sealing size chain of the present invention.
Step S371: by first direction and second direction be set as respectively on the occasion of with negative value;
Step S372: according to first direction and second direction on the occasion of or negative value spacing is multiplied each other;
Step S373: all spacing are added up, and judge whether the overall result that adds of all spacing is zero;
Step S374: be 1 o'clock if add overall result, spacing be recorded in TOLERANCE ANALYSIS table; And
Step S375: if add overall result when non-vanishing, select another feature point from local element, and the position of selected unique point is different from described characteristic point position.
Due to, the dimension chain direction of this embodiment is to be two contrary directions, the processing therefore can be by its simplified operation time.This by first direction 412 be made as on the occasion of, and second direction 413 is made as negative value.For other embodiment, can utilize vectorial mode to carry out the calculating of sealing size chain.Processing unit 240 is according to dimension chain direction and corresponding spacing, the processing that both are multiplied each other, and then obtain the numerical value with positive/negative number.Processing unit 240 carries out all spacing after above-mentioned processing, and processing unit 240 will add up with the spacing of positive/negative number.
Processing unit 240 judges whether add the long and is zero.Be 1 o'clock if add overall result, the position that represents the local element in this dimension chain is to meet setting, so do not need again to change design.Otherwise, add overall result when non-vanishing, represent that there is problem the position of a certain local element in this design.So tolerance detection system 200 can move to First Characteristic point by vernier, and points out user to re-start the selection of other unique points.
Whether the tolerance detection system 200 of computer graphics proposed by the invention and method thereof can be selected the dimension chain of local element and calculate corresponding tolerance to meet required automatically.The present invention can be applied in various computer graphics, and the relative dimensions of local element is brought in TOLERANCE ANALYSIS table 233, uses the activity duration of simplifying while conversion between different mapping softwares.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.