CN110232052A - A kind of cutter vector method and device based on DXF file format - Google Patents

A kind of cutter vector method and device based on DXF file format Download PDF

Info

Publication number
CN110232052A
CN110232052A CN201910503849.3A CN201910503849A CN110232052A CN 110232052 A CN110232052 A CN 110232052A CN 201910503849 A CN201910503849 A CN 201910503849A CN 110232052 A CN110232052 A CN 110232052A
Authority
CN
China
Prior art keywords
cutter
line segment
mathematic
representation
section
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
CN201910503849.3A
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.)
Tianjin University
Original Assignee
Tianjin University
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 Tianjin University filed Critical Tianjin University
Priority to CN201910503849.3A priority Critical patent/CN110232052A/en
Publication of CN110232052A publication Critical patent/CN110232052A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The present invention provides a kind of cutter vector method and apparatus based on DXF file format, belong to furniture processing technology field.The cutter vector method based on DXF file format, comprising: obtain the DXF file of the cutter;According to the keyword in the DXF file, the type of every section of line segment in the DXF file is identified;According to the type of every section of line segment, mathematical modeling is carried out to the data of every section of line segment in the DXF file, the mathematic(al) representation and its domain of every section of line segment is parsed, that is, completes the vector quantization of the cutter.The type that the present invention passes through all line segments of keyword recognition in DXF file, mathematical modeling is carried out to different types of segment data, obtain the mathematic(al) representation of every section of line segment of cutter, it can be quick, the data for accurately obtaining all the points on cutter accurately acquire cutter each corresponding radius value of lower deep depth.

Description

A kind of cutter vector method and device based on DXF file format
Technical field
The present invention relates to furniture processing technology field more particularly to a kind of cutter vector sides based on DXF file format Method and device.
Background technique
Under the historical background for industry of having furniture made to order, production furniture item is needed by means of CAD and CAM system, according to Converted products moulding provides the parameters such as the lower deep amount, offset, tool path pattern of cutter, and then calculates cutter path, then turns Change G code is transferred to CNC system and is processed.It is corresponding when needing frequently to measure deep under cutter difference when designing tool path pattern Radius value, it is cumbersome, and be easy to cause waste of raw materials there are operating error.
Determine that cutter parameters are to measure by CAD diagram paper or even when actual production, most worker is only by virtue of experience given at present It is larger to operate parameter error lack of standardization and obtaining for process tool parameter out.This method is primarily present following defect: (1) leading to Corresponding radius when crossing deep under traditional measurement tool measurement cutter, error is larger and accuracy is lower;(2) pass through hand dipping knife Have the mode of drawing, cannot easily and quickly provide cutter model parameter, efficiency is lower;It (3) need to be by way of manual record The cutter parameters of every bit are saved, it is complicated for operation, it is difficult to retain for a long time, keep the reusability of measurement data lower.
Summary of the invention
(1) technical problems to be solved
The present invention provides a kind of cutter vector method and apparatus based on DXF file format, at least partly to solve Technical problem set forth above.
(2) technical solution
According to an aspect of the invention, there is provided a kind of cutter vector method based on DXF file format, the side Method includes:
Obtain the DXF file of the cutter;
According to the keyword in the DXF file, the type of every section of line segment in the DXF file is identified;
According to the type of every section of line segment, mathematical modeling, parsing are carried out to the data of every section of line segment in the DXF file The mathematic(al) representation and its domain of every section of line segment out, that is, complete the vector quantization of the cutter.
In some embodiments, according to the type of every section of line segment, to the data of every section of line segment in the DXF file into Row mathematical modeling parses the mathematic(al) representation and its domain of every section of line segment, comprising:
If the type of the line segment is line-type, the starting point coordinate and terminal point coordinate of the straightway are obtained, is parsed The mathematic(al) representation of the straight line out, and using the ordinate of the starting point coordinate of the straightway and terminal point coordinate as the mathematics The domain of expression formula;
If the type of the line segment is circular arc type, the central coordinate of circle, radius, the starting point center of circle of the circular arc line segment are obtained Angle angle, terminal central angle angle, parses the mathematic(al) representation of the circular arc, and the starting point for calculating the circular arc line segment is sat The ordinate of mark and terminal point coordinate, using the ordinate of the starting point coordinate of the circular arc line segment and terminal point coordinate as the mathematical table Up to the domain of formula.
According to another aspect of the present invention, provide it is a kind of based on DXF file format cutter vector makeup set, wrap It includes:
File obtaining unit, for obtaining the DXF file of the cutter;
Line segment type acquiring unit, for identifying in the DXF file every section according to the keyword in the DXF file The type of line segment;
Mathematic(al) representation and its domain acquiring unit, for the type according to every section of line segment, to the DXF file In the data of every section of line segment carry out mathematical modeling, parse the mathematic(al) representation and its domain of every section of line segment, that is, complete The vector quantization of the cutter.
In some embodiments, the mathematic(al) representation and its domain acquiring unit, comprising:
Straight line mathematic(al) representation and its domain obtain subelement, if the type for the line segment is line-type, The starting point coordinate and terminal point coordinate for obtaining the straightway, parse the mathematic(al) representation of the straightway, and by the straight line The domain of the starting point coordinate of section and the ordinate of terminal point coordinate as the mathematic(al) representation;
Circular arc mathematic(al) representation and its domain obtain subelement, if the type for the line segment is circular arc type, The central coordinate of circle, radius, starting point central angle angle of the circular arc line segment are obtained, terminal central angle angle parses the circular arc The mathematic(al) representation of line segment, and the starting point coordinate of the circular arc line segment and the ordinate of terminal point coordinate are calculated, by the circular arc The domain of the starting point coordinate of line segment and the ordinate of terminal point coordinate as the mathematic(al) representation.
According to another aspect of the present invention, it provides a kind of visual based on the cutter section of DXF file format and radius Change method, which comprises
Using the above-mentioned provided cutter vector method based on DXF file format, every section of line of the cutter is obtained The mathematic(al) representation and its domain of section;
According to the mathematic(al) representation and its domain of every section of line segment of the cutter, the sectional view of the cutter is obtained, and Export the sectional view of the cutter;
The lower deep depth for inputting the cutter, according to the mathematic(al) representation and its domain of every section of line segment of the cutter, meter Calculate the corresponding radius value of lower depth depth of the input;
Export the mathematic(al) representation of every section of line segment of the radius value and the cutter;
Save the other information of the mathematic(al) representation of every section of line segment of the cutter, domain and the cutter.
In some embodiments, it according to the mathematic(al) representation and its domain of every section of line segment of the cutter, obtains described The sectional view of cutter, and export the sectional view of the cutter, comprising:
The mathematic(al) representation of every section of line segment of the cutter is ranked up according to domain ascending order;
The domain of the mathematic(al) representation of every section of line segment after sequence is divided according to preset value;
According to all domains for dividing and obtaining, the corresponding codomain of all domains is acquired;
All domains are connected with the point that corresponding codomain forms with straight line, the sectional view of the cutter is obtained;
Export the sectional view of the cutter.
In some embodiments, the lower deep depth for inputting the cutter, according to the mathematical expression of every section of line segment of the cutter Formula and its domain calculate the corresponding radius value of lower depth depth of the input, comprising:
Input the lower deep depth of the cutter;
Determine that domain meets the lower deep depth of the input in the mathematic(al) representation of every section of line segment of the cutter Mathematic(al) representation;
The lower deep depth of the input is substituted into the mathematic(al) representation of the determination, the lower deep depth of the input is acquired Corresponding radius value.
According to another aspect of the present invention, it provides a kind of visual based on the cutter section of DXF file format and radius Change system, comprising:
Vector quantization data acquisition module is set including the above-mentioned provided cutter vector makeup based on DXF file format, is used In the mathematic(al) representation and its domain of every section of line segment for obtaining the cutter;
The sectional view output module of cutter, for according to every section of line segment of the cutter mathematic(al) representation and its definition Domain obtains the sectional view of the cutter, and exports the sectional view of the cutter;
Tool radius value obtains module, for inputting the lower deep depth of the cutter, according to every section of line segment of the cutter Mathematic(al) representation and its domain calculate radius value corresponding to the lower deep depth of the input;
Tool radius value and mathematic(al) representation output module, for exporting every section of line segment of the radius value and the cutter Mathematic(al) representation;
Database module, mathematic(al) representation, domain and the cutter of every section of line segment for saving the cutter Other information.
In some embodiments, the sectional view output module of the cutter, comprising:
Sequencing unit, for the mathematic(al) representation of every section of line segment of the cutter to be ranked up according to domain ascending order;
Domain division unit, the domain of the mathematic(al) representation for every section of line segment after sorting according to preset value into Row divides;
It is corresponding to acquire all domains for dividing obtained all domains according to described for codomain acquiring unit Codomain;
Tool cross-section acquiring unit, for connecting all domains with straight line with the point that corresponding codomain forms It connects, obtains the sectional view of the cutter;
Tool cross-section output unit, for exporting the sectional view of the cutter.
In some embodiments, the tool radius value obtains module, comprising:
Lower depth depth input unit, for inputting the lower deep depth of the cutter;
Mathematic(al) representation acquiring unit, for determining that domain is full in the mathematic(al) representation of every section of line segment of the cutter The mathematic(al) representation of the lower deep depth of the foot input;
Tool radius value acquiring unit substitutes into the mathematic(al) representation of the determination for the lower deep depth by the input In, it acquires the cutter and specifies the corresponding radius value of lower deep depth.
(3) beneficial effect
It can be seen from the above technical proposal that a kind of cutter vector method and dress based on DXF file format of the present invention It sets and at least has the advantages that one of them or in which a part:
(1) the cutter vector method and apparatus provided by the invention based on DXF file format, by DXF file The type of all line segments of keyword recognition carries out mathematical modeling to different types of segment data, obtains every section of line segment of cutter Mathematic(al) representation, can the fast and accurate data for obtaining all the points on cutter;
(2) the cutter section and radius method for visualizing and system provided by the invention based on DXF file format, by adopting The mathematic(al) representation and its domain of cutter are obtained with cutter vector method, deep respective radius under cutter can be obtained automatically Mathematic(al) representation obtains high-precision tool radius value, reduces tool radius and calculates error, and reduces artificial participation, pole Big improves the efficiency for obtaining cutter parameters;
(3) it the present invention is based on the cutter section of DXF file format and radius method for visualizing and system, can will obtain Cutter vector data and the other information of cutter are saved, and cutter vector data are for automatically generating tool sharpening rail The software transfer of mark, it can also be used to generate cutter threedimensional model etc., easy to operate, the data persistence time is long, improves cutter ginseng Several reusabilities.
Detailed description of the invention
Fig. 1 is the cutter vector method flow diagram provided by the invention based on DXF file format;
Fig. 2 is DXF file schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the cutter vector apparatus structure schematic diagram provided by the invention based on DXF file format;
Fig. 4 is the cutter section and radius method for visualizing flow chart provided by the invention based on DXF file format;
Fig. 5 is cutter section and the radius method for visualizing flow chart of DXF file format provided in an embodiment of the present invention;
Fig. 6 is the tool cross-section of the cutter data acquisition in DXF file middle according to fig. 2 provided in an embodiment of the present invention;
Fig. 7 be it is provided in an embodiment of the present invention according to fig. 2 in DXF data, the mathematic(al) representation of the cutter of acquisition and The radius value found out according to lower deep value;
Fig. 8 is the cutter section and radius visualization system structural schematic diagram provided by the invention based on DXF file format.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference Attached drawing, the present invention is described in further detail.
According to an aspect of the invention, there is provided a kind of cutter vector method based on DXF file format, such as Fig. 1 Shown, method includes:
S11 obtains the DXF file of cutter;
S12 identifies the type of every section of line segment in DXF file according to the keyword in DXF file;
S13 carries out mathematical modeling to the data of every section of line segment in DXF file, parses every according to the type of every section of line segment The mathematic(al) representation and its domain of section line segment, that is, complete the vector quantization of cutter.
Cutter vector method provided by the invention based on DXF file format, passes through the keyword recognition in DXF file The type of all line segments carries out mathematical modeling to different types of segment data, obtains the mathematic(al) representation of every section of line segment of cutter, It can the fast and accurate data for obtaining all the points on cutter.
Further, step S13 includes following sub-step:
S131 obtains the starting point coordinate and terminal point coordinate of straightway if the type of line segment is line-type, parses straight The mathematic(al) representation of line, and using the ordinate of the starting point coordinate of straightway and terminal point coordinate as the domain of mathematic(al) representation;
S132 obtains central coordinate of circle, the radius, starting point central angle angle of circular arc line segment if the type of line segment is circular arc type Degree, terminal central angle angle parses the mathematic(al) representation of circular arc, and calculates the starting point coordinate and terminal point coordinate of circular arc line segment Ordinate, using the ordinate of the starting point coordinate of circular arc line segment and terminal point coordinate as the domain of mathematic(al) representation.
In one embodiment, in DXF file as shown in Figure 2 cutter data carry out vector quantization, first with ENTITIES is that bebinning character starts identidication key, and keyword LINE indicates that this line segment is straightway;Then the straight line is obtained The starting point coordinate and terminal point coordinate of section, as shown in Fig. 2, the data below 10 represent the abscissa of the starting point of the straightway, under 20 The data in face represent the ordinate of the starting point of the straightway, and the data below 11 represent the abscissa of the terminal of the straightway, and 21 Following data represent the ordinate of the terminal of the straightway, then the starting point coordinate of the straightway is (25.467,10.036), eventually Point coordinate is (19.545,9.264) (retaining after decimal point 3, round up);It is according to the starting point coordinate of the straightway (25.467,10.036), terminal point coordinate are (19.545,9.264), and the mathematic(al) representation of straightway is solved by linear equation The value range of x=(y-6.717)/0.130304, domain y are (9.264,10.036);
Keyword ARC indicates that the line segment is circular arc;Then central coordinate of circle, the radius, central angle angle of circular arc line segment are obtained; As shown in Figure 2, the data below 10 represent the abscissa in the center of circle of the circular arc, and the data below 20 represent the center of circle of the circular arc Ordinate, the data below 40 represent the radius of the circular arc, the data below 50 and 51 respectively represent the circular arc starting point and The center of circle angle of terminal, then the central coordinate of circle of the circular arc is (19.409, -3.935), and radius 11.754, starting point central angle is 94.363 degree, terminal central angle is 143.866 degree;Using sinusoidal, cosine function calculate circular arc starting point coordinate (18.5151, 7.7847), circular arc terminal point coordinate (9.9162,2.9958);The equation of the circular arc is solved according to central coordinate of circle and radius value
All line segments of cutter in DXF file are all subjected to mathematical modeling according to above-mentioned steps, solve mathematic(al) representation, It realizes cutter vector;
Finally the date expression of obtained all line segments and its domain are saved.
Cutter vector method provided by the invention based on DXF file format, passes through the keyword recognition in DXF file The type of all line segments carries out mathematical modeling to different types of segment data, obtains the mathematic(al) representation of every section of line segment of cutter, It can the fast and accurate data for obtaining all the points on cutter.
According to another aspect of the present invention, provide it is a kind of based on DXF file format cutter vector makeup set, such as scheme Shown in 3, which includes:
File obtaining unit 31, for obtaining the DXF file of cutter;
Line segment type acquiring unit 32, it is every in the DXF file for identifying according to the keyword in the DXF file The type of section line segment;
Mathematic(al) representation and its domain acquiring unit 33, for the type according to every section of line segment, to the DXF text The data of every section of line segment carry out mathematical modeling in part, parse the mathematic(al) representation and its domain of every section of line segment, i.e. completion knife The vector quantization of tool.
Cutter vector makeup provided by the invention based on DXF file format is set, and the keyword recognition in DXF file is passed through The type of all line segments carries out mathematical modeling to different types of segment data, obtains the mathematic(al) representation of every section of line segment of cutter, It can the fast and accurate data for obtaining all the points on cutter.
Further, mathematic(al) representation and its domain acquiring unit 33, including following subelement:
Straight line mathematic(al) representation and its domain obtain subelement 331, if the type for line segment is line-type, obtain The starting point coordinate and terminal point coordinate of straightway, parse the mathematic(al) representation of straightway, and by the starting point coordinate of straightway and end Domain of the ordinate of point coordinate as mathematic(al) representation;
Circular arc mathematic(al) representation and its domain obtain subelement 332, if the type for line segment is line-type, obtain The central coordinate of circle of circular arc line segment, radius, starting point central angle angle, terminal central angle angle, parse the mathematical table of circular arc line segment Up to formula, and the starting point coordinate of circular arc line segment and the ordinate of terminal point coordinate are calculated, by the starting point coordinate and terminal of circular arc line segment Domain of the ordinate of coordinate as mathematic(al) representation.
According to another aspect of the present invention, it provides a kind of visual based on the cutter section of DXF file format and radius Change method, as shown in figure 4, method includes:
S41 obtains every section of line segment of cutter using the cutter vector method based on DXF file format of above-mentioned offer Mathematic(al) representation and its domain;
S42 obtains the sectional view of cutter according to the mathematic(al) representation and its domain of every section of cutter line segment, exports knife The sectional view of tool;
S43, the lower deep depth for inputting cutter calculate defeated according to the mathematic(al) representation and its domain of every section of line segment of cutter The corresponding radius value of lower depth depth entered;
S44, the mathematic(al) representation of every section of line segment of output radius value and cutter;
S45 saves the other information of the mathematic(al) representation of every section of line segment of cutter, domain and cutter.
Cutter section and radius method for visualizing provided by the invention based on DXF file format, is sweared by using cutter Quantization method obtains the mathematic(al) representation and its domain of cutter, can obtain the mathematical expression of deep respective radius under cutter automatically Formula obtains high-precision tool radius value, reduces tool radius and calculates error, and reduce artificial participation, greatly improves Obtain the efficiency of cutter parameters.
Further, step S42 includes following sub-step:
The mathematic(al) representation of every section of line segment of cutter is ranked up by S421 according to domain ascending order;
S422 divides the domain of the mathematic(al) representation of every section of line segment after sequence according to preset value;
S423 acquires the corresponding codomain of all domains according to all domains that division obtains;
All domains are connected with the point that corresponding codomain forms with straight line, obtain the sectional view of cutter by S424;
S425 exports the sectional view of cutter.
Further, step S43 includes following sub-step:
S431 inputs the lower deep depth of cutter;
S432 determines that domain meets the mathematics of given lower deep depth in the mathematic(al) representation of every section of line segment of cutter Expression formula;
S433 substitutes into the lower deep depth of input in determining mathematic(al) representation, and the lower deep depth for acquiring input is corresponding Radius value.
In the present embodiment, cutter is also stored in addition to the mathematic(al) representation and its domain of storing cutter in step S45 Other information, manufacturer, cutter including cutter are using all information relevant to cutter such as quotient, by by the vector quantization of cutter Data, that is, cutter mathematic(al) representation, domain and manufacturer are stored using relevant informations such as quotient into database, in next time When being processed using this cutter, all information of the cutter can be called directly, easy to operate, the data persistence time is long, mentions The high reusability of cutter parameters.
In one embodiment, as shown in figure 5, cutter section and radius method for visualizing based on DXF file format It mainly include that vector quantization, acquisition tool cross-section, data storage and any lower deep value correspondence for obtaining cutter are carried out to cutter Radius value.
The process for carrying out vector quantization to cutter is discussed in detail first, specifically includes:
Open the DXF file of cutter;
The ENTITLES section of the DXF file, search key LINE and ARC are read, and is parsed in keyword LINE and ARC Data, wherein LINE indicate the line segment be straightway, ARC indicate the line segment be circular arc;
The data of all LINE are stored into two-dimensional table line_list, the data of all ARC are stored to two-dimensional table arc_list;
If two-dimensional table line_list is not sky, the starting point coordinate for obtaining all straightways in line_list is recycled And terminal point coordinate, the mathematic(al) representation and domain of all straightways are found out, and be stored in expression formula (expression) list;
If two-dimensional table arc_list is not sky, the central coordinate of circle for obtaining all circular arcs in arc_list, half are recycled Diameter and starting point central angle, find out all circular arcs mathematic(al) representation and domain and be stored in expression formula (expression) column In table.
Then according to the date expression of cutter and its domain, the sectional view of cutter is obtained, is specifically included:
All mathematic(al) representations in expression list are ranked up according to domain ascending order;
All mathematic(al) representations to have sorted and domain value are exported, are shown on interface, for checking;
The domain of all mathematic(al) representations to have sorted is divided according to 0.01mm, finds out corresponding codomain;
The coordinate of division points is obtained according to domain value and codomain, the coordinate of all division points is connected by straight line, The sectional view of cutter is exported, is shown on interface by the sectional view for obtaining cutter.As shown in fig. 6, for according to DXF text in Fig. 2 The data of part, the tool cross-section of acquisition.
It finally carries out data storage and calculates the corresponding radius value of the arbitrarily lower deep value of cutter, specifically include:
By the mathematic(al) representation of cutter obtained above and its domain, the sectional view of cutter, the manufacturer of cutter, cutter Using the information preservations such as quotient into database;
Input the lower deep amount of cutter;
Domain belonging to the lower deep amount is found in expression list;
The lower deep amount is substituted into mathematic(al) representation belonging to domain, finds out the radius value of cutter;
The radius value is exported, which is shown on interface.As shown in fig. 7, being obtained for according to the data of DXF in Fig. 2 The mathematic(al) representation of the cutter obtained and the radius value found out according to lower deep value.
Cutter section and radius method for visualizing provided by the invention based on DXF file format, is sweared by using cutter Quantization method obtains the mathematic(al) representation and its domain of cutter, can obtain the mathematical expression of deep respective radius under cutter automatically Formula obtains high-precision tool radius value, reduces tool radius and calculates error, and reduce artificial participation, greatly improves Obtain the efficiency of cutter parameters.
According to another aspect of the present invention, it provides a kind of visual based on the cutter section of DXF file format and radius Change system, as shown in figure 8, the system includes:
Vector quantization data acquisition module 81 is set including the cutter vector makeup based on DXF file, for obtaining the every of cutter The mathematic(al) representation and its domain of section line segment;
The sectional view output module 82 of cutter, for the mathematic(al) representation and its domain according to every section of line segment of cutter, The sectional view of cutter is obtained, the sectional view of cutter is exported;
Tool radius value obtains module 83, for inputting the lower deep depth of cutter, according to the mathematical table of every section of line segment of cutter Up to formula and its domain, radius value corresponding to the lower deep depth of input is acquired;
Tool radius value and mathematic(al) representation output module 84, the mathematical table for every section of line segment of output radius value and cutter Up to formula;
Database module 85, the mathematic(al) representation of every section of line segment for saving cutter, domain and cutter other Information.
Cutter section and radius visualization system provided by the invention based on DXF file format, is sweared by using cutter Quantization method obtains the mathematic(al) representation and its domain of cutter, can obtain the mathematical expression of deep respective radius under cutter automatically Formula obtains high-precision tool radius value, reduces tool radius and calculates error, and reduce artificial participation, greatly improves Obtain the efficiency of cutter parameters.
Further, the sectional view output module 82 of cutter, comprising:
Sequencing unit 821, for the mathematic(al) representation of every section of line segment of cutter to be ranked up according to domain ascending order;
Domain division unit 822, the domain of the mathematic(al) representation for every section of line segment after sorting is according to default Value is divided;
Codomain acquiring unit 823, all domains for being obtained according to division, acquires the corresponding value of all domains Domain;
Tool cross-section acquiring unit 824, for all domains to be connected with the point that corresponding codomain forms with straight line, Obtain the sectional view of cutter;
Tool cross-section output unit 825, for exporting the sectional view of cutter.
Further, tool radius value and mathematic(al) representation output module 83, comprising:
Lower depth depth input unit 831, for inputting the lower deep depth of cutter;
Mathematic(al) representation acquiring unit 832, for determining that domain is full in the mathematic(al) representation of every section of line segment of cutter The mathematic(al) representation of the lower deep depth inputted enough;
Tool radius value acquiring unit 833, the lower deep depth for that will input are substituted into determining mathematic(al) representation, are acquired The corresponding radius value of depth depth under cutter is specified.
The present invention is based on the cutter section of DXF file format and radius visualization system, the cutter vector that can will be obtained The other information for changing data and cutter is saved, and is called directly when reusing, easy to operate, when data persistence Between it is long, improve the reusability of cutter parameters.
So far, attached drawing is had been combined the present embodiment is described in detail.According to above description, those skilled in the art There should be clear understanding to the present invention.
It should be noted that in attached drawing or specification text, the implementation for not being painted or describing is affiliated technology Form known to a person of ordinary skill in the art, is not described in detail in field.
It should also be noted that, can provide the demonstration of the parameter comprising particular value herein, but these parameters are without definite etc. In corresponding value, but analog value can be similar in acceptable error margin or design constraint.The side mentioned in embodiment It is only the direction with reference to attached drawing, the protection scope being not intended to limit the invention to term.In addition, unless specifically described or must The step of must sequentially occurring, there is no restriction for the sequences of above-mentioned steps in listed above, and can be changed according to required design or again It is new to arrange.And above-described embodiment can be based on the considerations of design and reliability, and the collocation that is mixed with each other uses or and other embodiments Mix and match uses, i.e., the technical characteristic in different embodiments can freely form more embodiments.
It should be noted that running through attached drawing, identical element is indicated by same or similar appended drawing reference.In the above description, Some specific embodiments are used for description purposes only, and should not be construed to the present invention has any restrictions, and only the present invention is real Apply the example of example.When may cause the understanding of the present invention and cause to obscure, conventional structure or construction will be omitted.It should be noted that figure In the shape and size of each component do not reflect actual size and ratio, and only illustrate the content of the embodiment of the present invention.
Above specific embodiment has carried out further specifically the purpose of the present invention, technical scheme and beneficial effects It is bright, it should be understood that be not intended to restrict the invention the above is only specific embodiments of the present invention, it is all in the present invention Spirit and principle within, any modification, equivalent substitution, improvement and etc. done, should be included in protection scope of the present invention it It is interior.

Claims (10)

1. a kind of cutter vector method based on DXF file format, which is characterized in that the described method includes:
Obtain the DXF file of the cutter;
According to the keyword in the DXF file, the type of every section of line segment in the DXF file is identified;
According to the type of every section of line segment, mathematical modeling is carried out to the data of every section of line segment in the DXF file, parses institute The mathematic(al) representation and its domain for stating every section of line segment, that is, complete the vector quantization of the cutter.
2. the method according to claim 1, wherein according to the type of every section of line segment, to the DXF file In the data of every section of line segment carry out mathematical modeling, parse the mathematic(al) representation and its domain of every section of line segment, comprising:
If the type of the line segment is line-type, the starting point coordinate and terminal point coordinate of the straightway are obtained, institute is parsed The mathematic(al) representation of straight line is stated, and using the ordinate of the starting point coordinate of the straightway and terminal point coordinate as the mathematical expression The domain of formula;
If the type of the line segment is circular arc type, the central coordinate of circle, radius, starting point central angle angle of the circular arc line segment are obtained Degree, terminal central angle angle parses the mathematic(al) representation of the circular arc, and calculate the circular arc line segment starting point coordinate and The ordinate of terminal point coordinate, using the ordinate of the starting point coordinate of the circular arc line segment and terminal point coordinate as the mathematic(al) representation Domain.
3. a kind of cutter vector makeup based on DXF file format is set characterized by comprising
File obtaining unit, for obtaining the DXF file of the cutter;
Line segment type acquiring unit, for identifying every section of line segment in the DXF file according to the keyword in the DXF file Type;
Mathematic(al) representation and its domain acquiring unit, for the type according to every section of line segment, to every in the DXF file The data of section line segment carry out mathematical modeling, parse the mathematic(al) representation and its domain of every section of line segment, i.e., described in completion The vector quantization of cutter.
4. device according to claim 3, which is characterized in that the mathematic(al) representation and its domain acquiring unit, packet It includes:
Straight line mathematic(al) representation and its domain obtain subelement, if the type for the line segment is line-type, obtain The starting point coordinate and terminal point coordinate of the straightway, parse the mathematic(al) representation of the straightway, and by the straightway Domain of the ordinate of starting point coordinate and terminal point coordinate as the mathematic(al) representation;
Circular arc mathematic(al) representation and its domain obtain subelement, if the type for the line segment is circular arc type, obtain The central coordinate of circle of the circular arc line segment, radius, starting point central angle angle, terminal central angle angle parse the circular arc line segment Mathematic(al) representation, and the starting point coordinate of the circular arc line segment and the ordinate of terminal point coordinate are calculated, by the circular arc line segment Starting point coordinate and terminal point coordinate domain of the ordinate as the mathematic(al) representation.
5. a kind of cutter section and radius method for visualizing based on DXF file format, which is characterized in that the described method includes:
Using, based on the cutter vector method of DXF file format, obtaining the knife described in any one of claims 1 to 2 The mathematic(al) representation and its domain of every section of line segment of tool;
According to the mathematic(al) representation and its domain of every section of line segment of the cutter, the sectional view of the cutter is obtained, and export The sectional view of the cutter;
The lower deep depth for inputting the cutter calculates institute according to the mathematic(al) representation and its domain of every section of line segment of the cutter State the corresponding radius value of lower depth depth of input;
Export the mathematic(al) representation of every section of line segment of the radius value and the cutter;
Save the other information of the mathematic(al) representation of every section of line segment of the cutter, domain and the cutter.
6. according to the method described in claim 5, it is characterized in that, according to the mathematic(al) representation of every section of line segment of the cutter and Its domain obtains the sectional view of the cutter, and exports the sectional view of the cutter, comprising:
The mathematic(al) representation of every section of line segment of the cutter is ranked up according to domain ascending order;
The domain of the mathematic(al) representation of every section of line segment after sequence is divided according to preset value;
According to all domains for dividing and obtaining, the corresponding codomain of all domains is acquired;
All domains are connected with the point that corresponding codomain forms with straight line, the sectional view of the cutter is obtained;
Export the sectional view of the cutter.
7. according to the method described in claim 5, it is characterized in that, the lower deep depth of the cutter is inputted, according to the cutter The mathematic(al) representation and its domain of every section of line segment calculate the corresponding radius value of lower depth depth of the input, comprising:
Input the lower deep depth of the cutter;
Determine that domain meets the mathematics of the lower deep depth of the input in the mathematic(al) representation of every section of line segment of the cutter Expression formula;
The lower deep depth of the input is substituted into the mathematic(al) representation of the determination, the lower deep depth for acquiring the input is corresponding Radius value.
8. a kind of cutter section and radius visualization system based on DXF file format characterized by comprising
Vector quantization data acquisition module, including the cutter arrow described in any one of claim 3 to 4 based on DXF file format Quantization device, the mathematic(al) representation and its domain of every section of line segment for obtaining the cutter;
The sectional view output module of cutter is obtained for the mathematic(al) representation and its domain according to every section of line segment of the cutter To the sectional view of the cutter, and export the sectional view of the cutter;
Tool radius value obtains module, for inputting the lower deep depth of the cutter, according to the mathematics of every section of line segment of the cutter Expression formula and its domain calculate radius value corresponding to the lower deep depth of the input;
Tool radius value and mathematic(al) representation output module, for exporting the mathematics of every section of line segment of the radius value and the cutter Expression formula;
Database module, the mathematic(al) representation of every section of line segment for saving the cutter, domain and the cutter its His information.
9. system according to claim 8, which is characterized in that the sectional view output module of the cutter, comprising:
Sequencing unit, for the mathematic(al) representation of every section of line segment of the cutter to be ranked up according to domain ascending order;
Domain division unit, for being drawn the domain of the mathematic(al) representation of every section of line segment after sequence according to preset value Point;
Codomain acquiring unit acquires the corresponding value of all domains for dividing obtained all domains according to described Domain;
Tool cross-section acquiring unit is obtained for connecting all domains with straight line with the point that corresponding codomain forms To the sectional view of the cutter;
Tool cross-section output unit, for exporting the sectional view of the cutter.
10. system according to claim 8, which is characterized in that the tool radius value obtains module, comprising:
Lower depth depth input unit, for inputting the lower deep depth of the cutter;
Mathematic(al) representation acquiring unit, for determining that domain meets institute in the mathematic(al) representation of every section of line segment of the cutter State the mathematic(al) representation of the lower deep depth of input;
Tool radius value acquiring unit is asked for substituting into the lower deep depth of the input in the mathematic(al) representation of the determination It obtains the cutter and specifies the corresponding radius value of lower deep depth.
CN201910503849.3A 2019-06-11 2019-06-11 A kind of cutter vector method and device based on DXF file format Pending CN110232052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910503849.3A CN110232052A (en) 2019-06-11 2019-06-11 A kind of cutter vector method and device based on DXF file format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910503849.3A CN110232052A (en) 2019-06-11 2019-06-11 A kind of cutter vector method and device based on DXF file format

Publications (1)

Publication Number Publication Date
CN110232052A true CN110232052A (en) 2019-09-13

Family

ID=67859635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910503849.3A Pending CN110232052A (en) 2019-06-11 2019-06-11 A kind of cutter vector method and device based on DXF file format

Country Status (1)

Country Link
CN (1) CN110232052A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5584016A (en) * 1994-02-14 1996-12-10 Andersen Corporation Waterjet cutting tool interface apparatus and method
CN1740932A (en) * 2005-09-14 2006-03-01 山东大学 Intelligent control system for digital control machine tool and control method thereof
CN1862432A (en) * 2006-06-07 2006-11-15 东南大学 Control method of carbon fiber high-precise numerically controlled milling machine
CN106796426A (en) * 2014-09-30 2017-05-31 株式会社牧野铣床制作所 The control device of lathe
CN107627152A (en) * 2017-10-19 2018-01-26 电子科技大学 Numerical control machining chip control method based on BP neural network
CN108000731A (en) * 2017-11-16 2018-05-08 华侨大学 A kind of circular arc of circular saw cutting stone material and the method for elliptic contour

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5584016A (en) * 1994-02-14 1996-12-10 Andersen Corporation Waterjet cutting tool interface apparatus and method
CN1740932A (en) * 2005-09-14 2006-03-01 山东大学 Intelligent control system for digital control machine tool and control method thereof
CN1862432A (en) * 2006-06-07 2006-11-15 东南大学 Control method of carbon fiber high-precise numerically controlled milling machine
CN106796426A (en) * 2014-09-30 2017-05-31 株式会社牧野铣床制作所 The control device of lathe
CN107627152A (en) * 2017-10-19 2018-01-26 电子科技大学 Numerical control machining chip control method based on BP neural network
CN108000731A (en) * 2017-11-16 2018-05-08 华侨大学 A kind of circular arc of circular saw cutting stone material and the method for elliptic contour

Similar Documents

Publication Publication Date Title
Chen et al. Characterizing text difficulty with word frequencies
Tjalve et al. Engineering graphic modelling: a workbook for design engineers
CN103077255B (en) Identification method and system for 3D (three-dimensional) model of nuclear power station
CN110232052A (en) A kind of cutter vector method and device based on DXF file format
CN115422628A (en) Electromechanical drawing method and system based on contribution drawing
CN108509538B (en) Surveying and mapping result quality examination and points-scoring system
Roschlaub et al. An INSPIRE-konform 3D building model of Bavaria using cadastre information, lidar and image matching
CN112733234B (en) Device for automatically calculating and generating three-dimensional bridge based on cable information transmission
CN103064993A (en) Processing system and method of size number information
US7865330B2 (en) System and method for measuring a curve of an object
CN106934598A (en) The anti-duplicate detection method and device of Power Project
US20050043916A1 (en) Point cloud data importing system and method
CN112287005B (en) Data processing method, device, server and medium
CN114741474A (en) Data processing method applied to project declaration system
CN107861725B (en) iOS data reverse automatic analysis strategy
CN110110407A (en) A kind of technique information mark and report form generation method based on threedimensional model
CN111858717A (en) Real-time intelligent recommendation method for material creation
CN110502766B (en) Universal method for rapidly modeling uniform-section component
CN104570942A (en) CNC (computer numerical control) processing capability verification system and method
CN109783775A (en) Method and system for marking content of user corpus
CN117725766B (en) Verification method, device and equipment of geometric modeling model
CN117556507B (en) Modulus combining method based on fbx format modulus-first and modulus-last
Elderfield A renormalisation group approach to the entropy of a single polymer
CN117556482A (en) Method for rapidly generating dimension marking model by two-dimensional CAD drawing
Wang et al. A Design and Application for 3D printer based on Virtual instrument

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

Application publication date: 20190913

WD01 Invention patent application deemed withdrawn after publication