A kind of special-shaped workpiece cutting modeling method, electronic equipment, storage medium and systemTechnical field
The present invention relates to work piece cut fields more particularly to a kind of special-shaped workpiece to cut modeling method, electronic equipment, storageMedium and system.
Background technique
Make the too busy to get away design to part model of process of workpiece.Especially in furniture design industry, the cutting of workpieceAnd the design of production modeling also becomes particularly important.
The design of special-shaped workpiece in furniture increasingly becomes the direction of each side's pursuit.Therefore, accurately and efficiently to abnormityWorkpiece carries out the effect that modeling directly affects furniture design.
Traditional special-shaped workpiece modeling is by describing a two-dimensional silhouette figure, then by two-dimensional silhouette figure mostlyThe mode of stretching obtains 3-D abnormal workpiece figure.Current carries out workpiece modeling in a manner of stretching, and it is full to construct partThe workpiece three-dimensional graph of sufficient demand, but for the workpiece of special shape, it can not be constructed if the shaped abnormity of cut-boundaryCome.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide a kind of special-shaped workpieces to cut modeling sideMethod, can solve it is current workpiece modeling is carried out in a manner of stretching, the workpiece three-dimensional graph of part meet demand can be constructed,But for the workpiece of special shape, the problem of can not being built if the shaped abnormity of cut-boundary.
The second object of the present invention is to provide a kind of electronic equipment, can solve and current carries out work in a manner of stretchingPart modeling, can construct the workpiece three-dimensional graph of part meet demand, but for the workpiece of special shape, as cut-boundary is tangibleThe problem of abnormity of shape can not just be built.
The third object of the present invention is to provide a kind of storage medium, can solve and current carries out work in a manner of stretchingPart modeling, can construct the workpiece three-dimensional graph of part meet demand, but for the workpiece of special shape, as cut-boundary is tangibleThe problem of abnormity of shape can not just be built.
The fourth object of the present invention is to provide a kind of special-shaped workpiece cutting modeling, can solve current to stretchMode carry out workpiece modeling, the workpiece three-dimensional graph of part meet demand can be constructed, but for the workpiece of special shape, such asThe problem of shaped abnormity of cut-boundary can not just be built
The present invention provides the first purpose and is implemented with the following technical solutions:
A kind of special-shaped workpiece cutting modeling method, comprising the following steps:
Step S1, special-shaped workpiece dimension information and machining information are obtained, wherein the machining information includes default cutterSection, machining path information, working depth and tool offset type;
Step S2, threedimensional model corresponding with special-shaped workpiece is constructed according to the special-shaped workpiece dimension information;
Step S3, by the default cutter section along the machining path information and the working depth construction path intoRow scans, and obtains cutter model;
Step S4, boolean is carried out to the cutter model using the threedimensional model and subtracts processing, obtain sub- part model;
Step S5, judge the tool offset type whether be in or the working depth whether be less than the threedimensional modelHeight, if so, using the sub- part model as special-shaped workpiece model export, if it is not, the sub- part model quantity isAt least two, then follow the steps S6;
Step S6, the effective sub- work is filtered out in all sub- part models according to the tool offset typePart model exports the special-shaped workpiece model as special-shaped workpiece model.
Further, the special-shaped workpiece dimension information includes that workpiece height information, Workpiece length information and workpiece are wideSpend information, the step S2 specifically: according to the Workpiece length, the width of the workpiece and the workpiece height construction with it is differentThe corresponding threedimensional model of shape workpiece.
Further, the step S6 specifically: according to the tool offset type in the machining path information and instituteSeveral screening points are chosen at the edge for stating the path side of working depth construction, and drawing length from the screening point is preset lengthLine segment gives up the sub- part model with the line segment intersection, using the remaining sub- part model as special-shaped workpiece mouldType.
Further, when the tool offset type is middle, the quantity of the sub- part model is at least one, works as instituteWhen stating height of the working depth less than the threedimensional model, the quantity of the sub- part model is one.
The present invention provides the second purpose and is implemented with the following technical solutions:
A kind of electronic equipment, characterized by comprising: processor;
Memory;And program, wherein described program is stored in the memory, and is configured to by processorIt executes, described program includes a kind of special-shaped workpiece cutting modeling method for the application.
The present invention provides the third purpose and is implemented with the following technical solutions:
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processorA kind of special-shaped workpiece of row the application cuts modeling method.
The present invention provides the fourth purpose and is implemented with the following technical solutions:
A kind of special-shaped workpiece cutting modeling includes:
Module is obtained, the acquisition module is for obtaining special-shaped workpiece dimension information and machining information, wherein described to addWork information includes default cutter section, machining path information, working depth and tool offset type;
Constructing module, the constructing module are used to be constructed according to the special-shaped workpiece dimension information corresponding with special-shaped workpieceThreedimensional model;
Module is scanned, the module of scanning with described for adding the default cutter section along the machining path informationThe path of work depthwise construction is scanned, and cutter model is obtained;
Processing module, the processing module are used to carry out boolean to the cutter model using the threedimensional model to subtract placeReason, obtains sub- part model;
Judgment module, the judgment module for judge the tool offset type whether be in or the working depth beIt is no to be less than workpiece height;
Screening module, the screening module are used for according to the tool offset type and the cutter model in all institutesIt states and filters out the effective sub- part model in sub- part model as special-shaped workpiece model, the special-shaped workpiece model is defeatedOut.
Compared with prior art, the beneficial effects of the present invention are: a kind of special-shaped workpiece of the invention cuts modeling method, packetInclude and obtain special-shaped workpiece dimension information and machining information, the machining information include default cutter section, machining path information,Working depth and tool offset type;According to special-shaped workpiece dimension information construction three-dimensional mould corresponding with special-shaped workpieceType;The default cutter section is scanned along the path that the machining path information is constructed with the working depth, is obtainedCutter model;Boolean is carried out to the cutter model using the threedimensional model and subtracts processing, obtains sub- part model;According to describedTool offset type and the cutter model filter out the effective sub- part model in all sub- part modelsAs special-shaped workpiece model, the special-shaped workpiece model is exported.Met by cutting threedimensional model using cutter modelThe special-shaped workpiece model of demand can satisfy the modeling of the workpiece to different special shapes, applied widely, and result essenceReally.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,And can be implemented in accordance with the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention and the accompanying drawings.A specific embodiment of the invention is shown in detail by following embodiment and its attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hairBright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow diagram that a kind of special-shaped workpiece of the invention cuts modeling method;
Fig. 2 is three-dimensional when scanning and scanning to threedimensional model that a kind of special-shaped workpiece of the invention cuts modeling methodThe structural schematic diagram of model, cutter model and sub- part model;
Fig. 3 is three-dimensional when filtering out effective sub- part model in a kind of special-shaped workpiece cutting modeling method of the inventionThe structural schematic diagram of model, cutter model and sub- workpiece.
In figure: 1, cutter model;2, threedimensional model;3, the first sub- part model;4, the second sub- part model;5, First LineSection;6, second line segment;7, third line segment, 8, path initial position.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that notUnder the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combinationExample.
A kind of special-shaped workpiece as shown in Figure 1 cuts modeling method, and detailed process further includes referring in Fig. 2 and Fig. 3Shown in threedimensional model, cutter model and sub- part model self-test structural schematic diagram, comprising the following steps:
Step S1, special-shaped workpiece dimension information and machining information are obtained, wherein machining information includes working depth and knifeHas offset type;In the present embodiment, special-shaped workpiece dimension information further include Workpiece length information and width of the workpiece information andWorkpiece height information;Machining information includes presetting cutter section, machining path information, working depth and tool offset type,In the present embodiment, it presets cutter section and machining path information is all the special-shaped workpiece that user needs to process according to oneselfWhat type was confirmed, the shape in cutter section can be it is varied, specifically set by user oneself, machining path information is to cutThe routing information cut specifically may include length and the radian of cutting path with etc. information can determine cutting by above- mentioned informationPath.
Step S2, threedimensional model 2 corresponding with special-shaped workpiece is constructed according to special-shaped workpiece dimension information;According to Workpiece lengthInformation, width of the workpiece information and workpiece height information structuring threedimensional model 2 corresponding with special-shaped workpiece.Specific is with abnormityWorkpiece size information information as a comparison makes in the dimension information of the threedimensional model 2 of construction highly not less than workpiece height, widthGreater than the width of the workpiece, length is greater than Workpiece length to get threedimensional model 2 shown in Fig. 2, the three-dimensional enumerated in the present embodiment is arrivedModel 2 is quadrilateral, the height of threedimensional model 2 otherwise be less than workpiece height, the width of threedimensional model 2 is greater than the width of the workpiece, threeThe length of dimension module 2 is greater than Workpiece length;The shape of threedimensional model 2 is chosen for the plate of positive tetrahedron in the present embodiment, toolThe shape of the threedimensional model 2 of body can carry out constructing according to the actual needs.
Step S3, by the default cutter section along the machining path information and the working depth construction path intoRow scans, and obtains cutter model 1;Specifically: three-dimensional is scanned according to default cutter section, machining path information and working depthModel 2 obtains 3D shape corresponding with the path that machining path information and working depth are constituted, using 3D shape as cutterModel 1, this cutter model 1 are the 3D shape in Fig. 2.
Step S4, boolean is carried out to the cutter model using the threedimensional model and subtracts processing, obtain sub- part model, thisIt is to carry out cutting process to threedimensional model that the boolean at place, which subtracts processing,.
Step S5, step S5 may include step S51 and step S52, step S51: judge tool offset type whether beOr whether working depth is less than the height of threedimensional model 2, if so, execute step S52, step S52: then using sub- part model asThe output of special-shaped workpiece model thens follow the steps S6 if it is not, sub- part model quantity is at least two.In the present embodiment, cutterOffset type can be in or left or right, specific criterion be using the initial position of machining path as reference direction, and withThe starting point of machining path as reference point, when residual paths relative to starting path in same straight line, then tool offset typeFor in, do not deviate as;Tool offset type in Fig. 3 is a left side, the starting path position 8 in Fig. 3, if residual paths are originatingWhen the left side of path position 8, then tool offset type is a left side, is as deviated to the left, i.e., as Figure 2-3;If residual paths existWhen originating 8 the right of path position, then tool offset type is the right side, is as deviated to the right.When tool offset type is middle, i.e. knifeThreedimensional model 2 is cut the cutting that do not shift by tool model 1, then obtains two sub- part models, and two sub- part models are equalIt is exported as special-shaped workpiece model.When working depth is less than the height of threedimensional model 2, i.e., cutter model 1 is not by three-dimensional mouldType 2 is cut, and the sub- workpiece of muti-piece will not be obtained when not cutting, can only obtain a sub- workpiece, as threedimensional model 2Body.
Step S6, effective sub- part model is filtered out in all sub- part models according to tool offset type as differentShape part model exports special-shaped workpiece model.Added in the machining path information with described according to the tool offset typeSeveral screening points are chosen at the edge of the path side of work depthwise construction, draw the line segment that length is preset length, house from screening pointThe sub- part model with line segment intersection is abandoned, using remaining sub- part model as special-shaped workpiece model.As shown in Figure 3, cutterThreedimensional model 2 is cut into the first sub- part model 3 and the second sub- part model 4 by model 1, and the cutter section in the present embodiment isDetermining 2-d plane graph is drawn with AutoCAD in advance, it is symmetrical with the Y-axis of AutoCAD two-dimensional coordinate system;In the present embodimentMachining path information and the edge of path side that constitutes of working depth choose several screening points, and a line segment is drawn with screening pointThe first line segment 5, second line segment 6, third line segment 7 in as Fig. 3 illustrate three line segments in Fig. 3, if substantially main lineSection, the first line segment 5, second line segment 6 and third line segment 7 are that the corresponding machining path information and the working depth constructPath one side edge in the corresponding line segment for screening point normal direction and making, in the present embodiment, for the ease of more understanding, andAll the line segment drawn will not needed all to mark in Fig. 3, is with cutter model 1 and cutter in the actual operation processDraw isometric line segment at equal intervals on the edge of the identical side of offset type, if discovery the second sub- part model 4 with it is upperState what any one line segment in the line segment of extraction intersected, then the second sub- part model 4 will be rejected at this time, the first sub- workpieceModel 3 is as special-shaped workpiece model and exports.In the present embodiment, preset length is that the half of 1 width of cutter model adds 1, shouldData are that can obtain by verification experimental verification;Second sub- part model 4 and the first above-mentioned line segment 5 in Fig. 3, second line segment 6 and theThree lines intersect, then give up the second sub- part model 4, retain the first sub- part model 3, and by the first sub- 3 conduct of part modelThe output of special-shaped workpiece model.
This application provides a kind of electronic equipment, comprising: processor;
Memory;And program, wherein program is stored in memory, and is configured to be executed by processor, journeySequence includes cutting modeling method for executing a kind of special-shaped workpiece of the application.
This application provides a kind of computer readable storage mediums, are stored thereon with computer program, it is characterised in that: meterCalculation machine program is executed by processor a kind of special-shaped workpiece cutting modeling method of the application.
Present invention also provides a kind of special-shaped workpieces to cut modeling, comprising: obtains module, obtains module for obtainingSpecial-shaped workpiece dimension information and machining information, machining information include working depth and tool offset type, in the present embodiment,Special-shaped workpiece dimension information further includes Workpiece length information and width of the workpiece information and workpiece height information;Machining information includesDefault cutter section, machining path information, working depth and tool offset type preset cutter section in the present embodimentAnd to be all user need the type for the special-shaped workpiece processed to be confirmed to machining path information according to oneself, the shape in cutter sectionShape can specifically be set by user oneself to be varied, and it specifically may include cutting that machining path information, which is the routing information cut,Cut length and the radian in path with etc. information can determine the path of cutting by above- mentioned information.
Constructing module, constructing module are used for according to special-shaped workpiece dimension information construction three-dimensional mould corresponding with special-shaped workpieceType;Module is scanned, module is scanned and is used for the default cutter section along the machining path information and the working depth structureThe path made is scanned, and cutter model is obtained;Processing module, processing module are used for using the threedimensional model to the cutterModel carries out boolean and subtracts processing, obtains sub- part model, judgment module, judgment module be used to judge tool offset type whether beIn or working depth whether be less than workpiece height.Screening module, screening module are used for according to the tool offset type allThe effective sub- part model is filtered out in the sub- part model as special-shaped workpiece model, by the special-shaped workpiece modelOutput.Specifically are as follows: the cutter section in the present embodiment is to draw determining 2-d plane graph with AutoCAD in advance, withThe Y-axis of AutoCAD two-dimensional coordinate system is symmetrical;With in the present embodiment machining path information and the path side that is constituted of working depthEdge choose several screening points, the line that length is preset length is drawn from the screening point according to the tool offset typeSection, gives up the sub- part model with the line segment intersection, using the remaining sub- part model as special-shaped workpiece model,Normal part weight of the edge for the path side that the line segment and machining path information and working depth are constituted in the screening pointIt closes.
A kind of special-shaped workpiece of the invention cuts modeling method, including obtains special-shaped workpiece dimension information and processing letterBreath, wherein machining information includes default cutter section, machining path information, working depth and tool offset type;According to differentShape workpiece size information structuring threedimensional model 2 corresponding with special-shaped workpiece;By the default cutter section along the machining pathThe path that information is constructed with the working depth is scanned, and cutter model 1 is obtained;Using threedimensional model 2 to cutter model 1 intoRow boolean subtracts processing, obtains sub- part model;It is sieved in all sub- part models according to tool offset type and cutter model 1Effective sub- part model is selected as special-shaped workpiece model, special-shaped workpiece model is exported.By being cut using cutter model 1Threedimensional model 2 obtains the special-shaped workpiece model of meet demand, can satisfy the modeling of the workpiece to different special shapes, is applicable inRange is wide, and result is accurate;And according to the machining path information set, the selection tool offset type that user can be autonomous,To filter out effective plate figure, do not needing manually judgement to be gone to screen.
More than, only presently preferred embodiments of the present invention is not intended to limit the present invention in any form;All current rowsThe those of ordinary skill of industry can be shown in by specification attached drawing and above and swimmingly implement the present invention;But all to be familiar with sheet specialThe technical staff of industry without departing from the scope of the present invention, is made a little using disclosed above technology contentsThe equivalent variations of variation, modification and evolution is equivalent embodiment of the invention;Meanwhile all substantial technologicals according to the present inventionThe variation, modification and evolution etc. of any equivalent variations to the above embodiments, still fall within technical solution of the present inventionWithin protection scope.