CN107248192A - Solid figure method for drafting, device, equipment and storage medium - Google Patents

Solid figure method for drafting, device, equipment and storage medium Download PDF

Info

Publication number
CN107248192A
CN107248192A CN201710501302.0A CN201710501302A CN107248192A CN 107248192 A CN107248192 A CN 107248192A CN 201710501302 A CN201710501302 A CN 201710501302A CN 107248192 A CN107248192 A CN 107248192A
Authority
CN
China
Prior art keywords
profile
point
dimensional
standard
point coordinates
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
CN201710501302.0A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710501302.0A priority Critical patent/CN107248192A/en
Priority to PCT/CN2017/104816 priority patent/WO2019000692A1/en
Publication of CN107248192A publication Critical patent/CN107248192A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data

Landscapes

  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of solid figure method for drafting, device, equipment and storage medium, and methods described includes:Obtain the first point coordinates, thirdly the second point coordinates, coordinate;Using first point coordinates and the second point coordinates as treating the center point coordinate of bottom profile and profile point coordinates in drawing three-dimensional graphics, and combine default standard stereo figure bottom profile on each specified profile point and the relation of central point, it is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile bearing of trend, draw shown in stereogram to be drawn other faces profile.The present invention can draw out the solid figure that user expects to draw, and then improve the accuracy of drawing three-dimensional graphics.

Description

Solid figure method for drafting, device, equipment and storage medium
Technical field
The present invention relates to drawing technique field, more particularly to solid figure method for drafting, device, equipment and storage medium.
Background technology
At present, in the scenes such as teaching, drawing, often it is related to drawing three-dimensional graphics.Solid figure can be understood as by Said three-dimensional body is projected to the figure formed on two dimensional surface by specified projection condition, it is understood that be with spy on two dimensional surface The figure determined visual angle displaying said three-dimensional body and drawn.Wherein, said three-dimensional body can be that cylinder, cone, two bottom surfaces are just polygon Parallel cylinder of shape and bottom surface etc..
In correlation technique, can prestore solid figure sample in mapping software, soft from drawing according to user operation instruction Solid figure sample is hauled out in the toolbar of part and carries out position and size adjustment, so as to obtain solid figure.And for example, it can use Two-point method drawing three-dimensional graphics, as shown in figure 1, Fig. 1 is the schematic diagram for drawing cylinder volume graphic in correlation technique using two-point method. Determine two points in the planes according to user operation instruction:P1 and P2, using two coordinate points as to angular vertex, and based on default Rule, determines other two apex coordinates, obtains the rectangle P1P4P2P3 for limiting cylinder feature size to be drawn.According to Identified rectangle is counter to push away a cylinder volume graphic, and cylinder volume graphic is in rectangle P1P4P2P3, so as to realize cylinder volume graphic Drafting.
It can be seen that, the above method is poor to the response effect of operational order, the solid figure and use drawn out according to operational order The solid figure that family is expected to draw out has gap, causes the solid figure degree of accuracy drawn out low.
The content of the invention
Based on this, the invention provides solid figure method for drafting, device, equipment and storage medium, to solve to operation The response effect of instruction is poor, the defect for causing the solid figure degree of accuracy drawn out low.
First aspect according to embodiments of the present invention includes there is provided a kind of solid figure method for drafting, methods described:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate;
Using first point coordinates and the second point coordinates as the central point for treating bottom profile in drawing three-dimensional graphics The pass of each specified profile point and central point on coordinate and profile point coordinates, and the bottom profile of the default standard stereo figure of combination System, it is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension Direction, draws the profile in other faces in shown stereogram to be drawn.
In an optional implementation, the standard stereo figure is with default visual angle displaying mark on two dimensional surface The figure of quasi- said three-dimensional body, the standard three-dimensional body includes cylinder, cone or two bottom surfaces are parallel and two bottom surfaces are identical just many The cylinder of side shape, if the standard three-dimensional body is cylinder or cone, the side profile is profile bus;If the standard Said three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, and the side profile is side crest line.
In an optional implementation, each specified profile point in the bottom profile of the default standard stereo figure Include with the relation of central point:The corresponding relation of sample length and sample angle, during the sample length is standard stereo figure Profile point and the length of the line segment of central point composition are specified, the sample angle is the folder of the line segment and default line of reference Angle.
In an optional implementation, the determination step bag of the corresponding relation of sample length and the sample angle Include:
The bottom profile of the standard three-dimensional body is subjected to decile, at least two Along ents are obtained;
Based on the corresponding projection matrix in default visual angle, determine the Along ent in the projection plane corresponding to default visual angle Subpoint and standard three-dimensional body bottom center are in the subpoint for presetting the projection plane corresponding to visual angle, by the Along ent pair The subpoint answered is defined as the specified profile point, and the corresponding subpoint in center is defined as into the central point;
Based on identified specified profile point and central point, determine to specify profile point and center described in standard stereo figure The sample angle of the sample length and the line segment and the line of reference of the line segment that point is constituted.
It is described using first point coordinates and the second point coordinates as waiting to draw in an optional implementation The center point coordinate of bottom profile and profile point coordinates in solid figure, and combine the bottom profile of default standard stereo figure The relation of upper each specified profile point and central point, it is determined that treating the bottom profile of drawing three-dimensional graphics relative to standard stereo figure First scaling of bottom profile, including:
Calculate the target length and the score for the target segment that first point coordinates and the second point coordinates are constituted Section and the target angle of the line of reference;
From the sample angle, the sample angle minimum with the target angle gap is filtered out;
By the target length compared with the sample length corresponding to the sample angle filtered out, stereogram to be drawn is obtained First scaling of the bottom profile of shape relative to the bottom profile of standard stereo figure.
In an optional implementation, each specified profile point in the bottom profile of the default standard stereo figure Also include with the relation of central point:Draw the drafting information needed for bottom profile in the standard stereo figure;If the standard Said three-dimensional body be cylinder or cone, the drafting information include the standard stereo figure in bottom profile greatest radius with And the length and bearing of trend of most short radius;If the standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are identical regular polygon Cylinder, the drafting information includes length and side of the central point to each summit of bottom profile in the standard stereo figure To;
It is described based on first scaling draw described in treat the bottom profiles of drawing three-dimensional graphics, including:
The length in the drafting information is zoomed in and out based on first scaling;
Using the direction in the length and drafting information of scaling acquisition, the bottom surface wheel of drawing three-dimensional graphics is treated described in drafting It is wide.
In an optional implementation, if the standard three-dimensional body is cylinder or two bottom surfaces are parallel and two bottom surfaces are The determination step of the bearing of trend of side profile includes in the cylinder of identical regular polygon, the standard stereo figure:
Upper bottom surface profile middle finger based on the standard stereo figure determines the coordinate and bottom facial contour middle finger of profile point Determine the coordinate of profile point, determine the bearing of trend of side profile in standard stereo figure.
In an optional implementation, if the standard three-dimensional body is cone, side in the standard stereo figure The determination step of the bearing of trend of facial contour includes:
The coordinate and the standard stereo figure of profile point are determined based on bottom profile middle finger in the standard stereo figure Apex coordinate, determine the bearing of trend of profile bus in standard stereo figure.
In an optional implementation, methods described also includes:
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile length And bearing of trend, it is determined that treating the second scaling of side profile of the side profile relative to standard stereo figure of drawing three-dimensional graphics Ratio;
Obtain and utilize three-dimensional parameter required during standard stereo figure described in three-dimensional drawing Engine draws;
Based on first scaling and second scaling, the three-dimensional parameter is zoomed in and out;
The three-dimensional parameter input three-dimensional drawing engine obtained will be scaled.
In an optional implementation, methods described also includes:
Based on the three-dimensional drawing engine, drawing three-dimensional graphics are treated described in the three-dimensional parameter drafting obtained using scaling;
Receive and the rotation process for treating drawing three-dimensional graphics is instructed;
The display view angle of said three-dimensional body corresponding to treating drawing three-dimensional graphics according to the rotation process instruction map;
Draw solid figure of the said three-dimensional body under the display view angle.
Second aspect according to embodiments of the present invention includes there is provided a kind of solid figure drawing apparatus, described device:
Coordinate obtaining module, for obtaining the first point coordinates, thirdly the second point coordinates, coordinate;
Ratio-dependent module, for using first point coordinates and the second point coordinates as treating in drawing three-dimensional graphics Each specified wheel on the center point coordinate and profile point coordinates of bottom profile, and the bottom profile of the default standard stereo figure of combination Relation of the exterior feature point with central point, it is determined that treat bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics First scaling;
Graphic plotting module, for based on the bottom surface wheel that drawing three-dimensional graphics are treated described in first scaling drafting It is wide;According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile bearing of trend, The profile in other faces in stereogram to be drawn shown in drawing.
The third aspect according to embodiments of the present invention there is provided a kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate;
Using first point coordinates and the second point coordinates as the central point for treating bottom profile in drawing three-dimensional graphics The pass of each specified profile point and central point on coordinate and profile point coordinates, and the bottom profile of the default standard stereo figure of combination System, it is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension Direction, draws the profile in other faces in shown stereogram to be drawn.
In an optional implementation, the electronic equipment is Intelligent flat.
Fourth aspect according to embodiments of the present invention is stored in the storage medium there is provided a kind of computer-readable storage medium There is programmed instruction, described program instruction includes:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate;
Using first point coordinates and the second point coordinates as the central point for treating bottom profile in drawing three-dimensional graphics The pass of each specified profile point and central point on coordinate and profile point coordinates, and the bottom profile of the default standard stereo figure of combination System, it is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension Direction, draws the profile in other faces in shown stereogram to be drawn.
Using scheme of the embodiment of the present invention, by a bottom profile of two point-rendering solid figures, and by thirdly Other facial contours of drawing three-dimensional graphics, so that the drafting of solid figure is realized, because user can be three-dimensional by 2 points of controls Bottom profile size in figure, controls other facial contours in solid figure, therefore can be drawn with active response by the 3rd point Instruction, draws out the solid figure that user expects to draw, and then improve the accuracy of drawing three-dimensional graphics.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is the schematic diagram for drawing cylinder volume graphic in correlation technique using two-point method.
Fig. 2A is a kind of flow chart of solid figure method for drafting of the present invention according to an exemplary embodiment.
Fig. 2 B are a kind of cylinder graphic plotting schematic diagram of the present invention according to an exemplary embodiment.
Fig. 2 C are a kind of cone graphic plotting schematic diagram of the present invention according to an exemplary embodiment.
Fig. 3 A are the flow charts that a kind of sample data group of the present invention according to an exemplary embodiment determines method.
Fig. 3 B are that a kind of specified profile point of the present invention according to an exemplary embodiment determines schematic diagram.
Fig. 3 C are a kind of cylinder volume graphic control schematic diagram of the present invention according to an exemplary embodiment.
Fig. 4 is the flow chart of another solid figure method for drafting of the present invention according to an exemplary embodiment.
Fig. 5 is one of computer equipment where solid figure drawing apparatus of the present invention according to an exemplary embodiment Plant hardware structure diagram.
Fig. 6 is a kind of block diagram of solid figure drawing apparatus of the present invention according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, and is not intended to be limiting the present invention. " one kind ", " described " and "the" of singulative used in the present invention and appended claims are also intended to including majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the scope of the invention, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
It is often flat using two dimension on two dimensional surface by the way of puppet 3D in order to adapt to the demand of the application scenarios such as teaching Face figure displaying said three-dimensional body, can be referred to as solid figure by the figure of this on two dimensional surface.Often painted in correlation technique using two-point method Solid figure processed, as shown in figure 1, P1 points and P2 points are determined in screen according to user operation instruction, using two coordinate points as A pair pairs of angular vertexs, and based on preset rules, other two apex coordinate P3 points and P4 points are determined, obtain and wait to draw for limiting The rectangle P1P4P2P3 of cylinder feature size.Pushed away according to identified rectangle is counter in a cylinder volume graphic, cylinder volume graphic Certain profile point and bus in upper bottom surface is on rectangle P1P4P2P3 side, so as to realize the drafting of cylinder volume graphic.Can See, after user specifies P1 and P2 points, user can just see the cylinder volume graphic drawn and obtained, and user can not pass through control well Two point-renderings of system go out desired cylinder volume graphic, other solid figures similarly, therefore the stereogram drawn out using two-point method The solid figure that shape is expected to draw out with user has gap, causes the solid figure degree of accuracy drawn out low.When gap is larger When, user needs to repaint after deleting, so as to cause drafting efficiency low.
Based on this, in order to avoid the low defect of the solid figure degree of accuracy drawn out, the present invention provides solid figure and drawn Method, can be by a bottom profile of two point-rendering solid figures, and other faces for passing through thirdly drawing three-dimensional graphics Profile, so that the drafting of solid figure is realized, because user can be led to by bottom profile size in 2 points of control solid figures Other facial contours in the 3rd point control solid figure are crossed, therefore can be drawn out user with active response drawing for order and expect to paint The solid figure of system, and then improve the accuracy of drawing three-dimensional graphics.Next the present invention program is carried out with reference to accompanying drawing detailed Explanation.
As shown in Figure 2 A, Fig. 2A is a kind of solid figure method for drafting of the present invention according to an exemplary embodiment Flow chart, may comprise steps of 201 to step 204:
In step 201, the first point coordinates, thirdly the second point coordinates, coordinate are obtained.
In step 202., using first point coordinates and the second point coordinates as treating bottom surface in drawing three-dimensional graphics Each specified profile point on the center point coordinate and profile point coordinates of profile, and the bottom profile of the default standard stereo figure of combination With the relation of central point, it is determined that treating the first of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics Scaling.
In step 203, based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting.
In step 204, the side in the distance of coordinate and the standard stereo figure according to the second point coordinates and thirdly The bearing of trend of facial contour, draws the profile in other faces in shown stereogram to be drawn.
The embodiment of the present invention can be applied in smart machine, and smart machine can be Intelligent flat, smart mobile phone, intelligence Learning machine, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant) or PC (Personal Computer, personal computer) etc. have drawing function electronic equipment.User can be using finger or stylus etc. in intelligence Graphic plotting is carried out on the touch-screen of equipment, figure can also be carried out using the cursor in mouse control screen of intelligent device and painted System, smart machine can produce according to user's operation and draw instruction, and determine three point coordinates according to instruction is drawn, and then be stood Volume graphic is drawn.In addition, user can also operate the associate device bound with smart machine, the associate device is passed instruction is drawn Smart machine is delivered to, passes through smart machine drawing three-dimensional graphics etc..
Wherein, solid figure can be understood as said three-dimensional body projecting to what is formed on two dimensional surface by specified projection condition Figure, it is understood that show the figure that said three-dimensional body is drawn to preset visual angle on two dimensional surface.With different projection conditions The solid figure that projection or different visual angles displaying said three-dimensional body are obtained may be different.Placed angle of the projection condition including said three-dimensional body, Said three-dimensional body and the distance of projector equipment, projecting direction and projection pattern etc..Projector equipment can be the equipment such as camera.Projection side The formula mode such as including rectangular projection.Projecting direction includes being projected, being projected and direction towards XOZ faces towards XOY faces YOZ faces are projected etc., are not limited herein.Specify projection condition corresponding with default visual angle, projected to by specified projection condition The figure formed on two dimensional surface, can be expressed as the figure drawn on two dimensional surface with specified view angle displaying said three-dimensional body Shape.
Further, can be according to every in solid figure in order to embody more real said three-dimensional body in two dimensional surface The observability of bar contour line, it will be seen that contour line and invisible contour line distinguish display.
For example, distinguishing display can be:Aobvious is distinguished to visual object line and invisible contour line with solid line and dotted line respectively Show;Or, respectively with different transparencies to visual object line and the differentiation display of invisible contour line;Or, respectively with different gray scales pair Visual object line is distinguished with invisible contour line and shown, wherein, above-mentioned gray scale can be that the different gray scales of same color can also It is the different gray scales of different colours;Or, respectively with different colours to visual object line and the differentiation display of invisible contour line;Or, Visual object line and invisible contour line are distinguished with the different thicknesses of lines respectively and shown.
It can be seen that, according to the observability of every contour line in solid figure, it will be seen that contour line and invisible contour line are distinguished It has been shown that, can make the solid figure drawn out more life-like, visual enjoyment is brought to user.
In the embodiment of the present invention, the standard stereo figure is with default visual angle displaying standard three-dimensional body on two dimensional surface Figure, corresponding standard stereo figure may be different during different visual angles displaying standard three-dimensional body.
In an optional implementation, the standard three-dimensional body can be cylinder or cone, may be used also To be that two bottom surfaces are parallel and cylinder of identical regular polygon etc. is in two bottom surfaces.
If standard three-dimensional body is cylinder, side profile is profile bus, and it is to wait to draw circle to treat drawing three-dimensional graphics Cylinder figure.Drawing when cylinder volume graphic is drawn, can be according to above two point-renderings, one bottom profile, then basis 3rd point-rendering profile bus and another bottom profile.It can be seen that, cylinder volume graphic can be realized by the present invention program Draw.
If standard three-dimensional body is cone, side profile is profile bus, and it is to wait to draw circle to treat drawing three-dimensional graphics Cone figure.Drawing when circular cone volume graphic is drawn, can be according to above two point-rendering bottom profiles, then according to the 3rd Individual point-rendering profile bus.It can be seen that, the drafting of circular cone volume graphic can be realized by the present invention program.
If standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, such as square, two bottoms Face is parallel and two bottom surfaces are cylinder of identical regular hexagon etc., then side profile is side crest line, treats that drawing three-dimensional graphics are Cylinder figure to be drawn.Drawing when cylinder figure is drawn, can be according to above two point-rendering bottom surface polygonal profiles, so Afterwards according to the 3rd point-rendering side crest line.It can be seen that, the drafting of particular column figure can be realized by the present invention program.
On coordinate points obtain with the order of graphic plotting, can get the first point coordinates, the second point coordinates and Thirdly after coordinate, then carry out the drafting in all faces of solid figure;The first point coordinates and the second point coordinates can also obtained Afterwards, first carry out a bottom surface in solid figure to draw, then obtain thirdly coordinate, and carry out painting for other faces of solid figure System.
On the determination of point coordinates, in one example, three point coordinates can pass through the click corresponding to click commands Position is determined.Wherein, click commands can be on smart machine or the associate device bound with smart machine:Mouse, which is clicked on, to be referred to Make, finger click commands or felt pen click commands etc..If click commands are on associate device, associate device will can be carried The drafting instruction of three point coordinates is sent to smart machine etc..User can click on three discrete points, equipment according to Three discrete points are identified as, second point, thirdly at first point by click order.For example, being referred to according to first click Order, obtains the first point coordinates, according to second click commands, obtains the second point coordinates, according to the 3rd click commands, obtains the Three point coordinates.
Although aforesaid way can determine solid figure by three points, in drawing process, the first point coordinates, second Point coordinates and thirdly coordinate are directly determined by clicking operation, and are determined in the first point coordinates and the second point coordinates Afterwards, then the size of bottom profile in solid figure can not be changed, after the determination of thirdly coordinate, then solid figure can not be changed Other facial contours, in order to overcome this defect, the embodiment of the present invention also provides another implementation, can dynamically adjust second Point coordinates,, will now when receiving second point confirmation instruction to realize the size of bottom profile in dynamic adjustment solid figure Coordinate as the second final point coordinates, to realize the final confirmation of bottom profile.Furthermore it is also possible to which dynamic adjustment is thirdly Coordinate, to realize other facial contours in dynamic adjustment solid figure, when receiving thirdly confirmation instruction, by coordinate now As final thirdly coordinate, to realize the final confirmation of the facial contour of other in solid figure.
In this implementation, can by way of pulling (traction, slide, mobile) drawing three-dimensional graphics.Drawing Cheng Zhong, user is triggered first o'clock as first point, so as to obtain the first point coordinates.Enter line slip using first point as starting point, Arbitrfary point in the sliding trace can be used as second point.Carry out the drafting of bottom profile at first point according to and current second point, As the second point coordinates is continually changing, bottom profile also changes therewith, by adjusting the coordinate of second point, can draw out user Desired bottom profile.When receiving second point confirmation instruction, using coordinate now as the second final point coordinates, with reality The final confirmation of existing bottom profile.Second point confirm instruction can be mouse click commands, finger/felt pen click commands or Person's pressing instruction etc..Similarly, line slip can be entered by starting point of second point, the arbitrfary point in the sliding trace can be used as 3 points.The drafting in other faces according to bottom profile and is thirdly carried out, as thirdly coordinate is continually changing, other faces are also therewith Change, by the coordinate of adjustment thirdly, can draw out the desired height of user, so as to obtain desired solid figure.
It is pointed out that when determining thirdly, line slip can not also be entered by starting point of second point, and by lift pen/ The modes such as lift hand/release mouse reselect a point and enter line slip for starting point, and the arbitrfary point in the sliding trace can be made For thirdly.For example, selection bottom profile central point (P1 points), which is starting point, enters line slip.
Understand for convenience, the embodiment of the present invention is illustrated with two specific embodiments.As shown in Figure 2 B, Fig. 2 B are these A kind of cylinder graphic plotting schematic diagram of the invention according to an exemplary embodiment.First point (P1 points) arrives final second Point (P2 points), and final second point, to final thirdly (P3 points), the figure shown is presented dynamic effect, often changed The coordinate of second point can repaint bottom profile, and the coordinate often changed thirdly can repaint other facial contours. Determine after bottom profile, by movement thirdly, distance according to second point and thirdly can be showed by standard cylinder The bearing of trend of side profile draws the dynamic effect of other facial contours in cylinder volume graphic to be drawn in figure.
In order to illustrate conveniently, Fig. 2 B only enumerate six states in drawing process and illustrated.In drawing course, use The first o'clock of family click is dragged as first point (P1 points) using P1 points as starting point, and any point is in dragging track Second point, corresponding bottom profile is dynamically drawn for each second point, and Fig. 2 B are shown by dragging in track exemplified by P2 ' points Example explanation, according to P1 and P2 ' draw the bottom profile obtained as shown in state two in Fig. 2 B.When dragging to P2 points, if connect Confirmation instruction is received, then the point is defined as final second point, and draw state in the final bottom profile of acquisition, such as Fig. 2 B Shown in three.Then, dragged using P1 points as starting point, dragging track in any point be thirdly, for it is each thirdly Dynamic draws other facial contours of corresponding cylinder volume graphic, and Fig. 2 B are illustrated by dragging in track exemplified by P3 ' points, Bottom profile and P3 ' point-renderings according to state three obtain the cylinder volume graphic as shown in state four in Fig. 2 B.Work as dragging During to P3 points, bottom profile and P3 point-renderings according to state three obtain the cylinder figure as shown in state five in Fig. 2 B Shape.If receiving confirmation instruction in P3 points, by the point be defined as it is final thirdly, and draw and obtain final cylinder Figure, as shown in state six in Fig. 2 B.
As shown in Figure 2 C, Fig. 2 C are a kind of cone graphic plotting signal of the present invention according to an exemplary embodiment Figure.First point (P1 points) arrives final second point (P2 points), and final second point to final thirdly (P3 points), shows Dynamic effect is presented in figure out, often changes the coordinate of second point and can repaint bottom profile, often changes seat thirdly Mark can repaint other facial contours.It is determined that after bottom profile, by it is mobile thirdly, it may be determined that circular cone volume graphic Height, and show distance according to second point and thirdly and drawn by the bearing of trend of side profile in standard cone figure and treat Draw the dynamic effect of other facial contours in circular cone volume graphic.
Next step 202 to step 204 is introduced.
The embodiment of the present invention is taken turns by the bottom surface of the first point coordinates and the second point coordinates and default standard stereo figure Each specified profile point and the relation of central point on exterior feature, it is determined that treating the bottom profile of drawing three-dimensional graphics relative to standard stereo figure Bottom profile the first scaling, realize to draw using the first scaling and treat the bottom profiles of drawing three-dimensional graphics, and According to the second point coordinates and thirdly in the distance of coordinate and standard stereo figure side profile bearing of trend, drafting treats Draw the profile in other faces in stereogram.
First, to each specified profile point in the bottom profile of default standard stereo figure and central point relation and The bearing of trend of side profile is introduced in standard stereo figure.
Sat using the first point coordinates and the second point coordinates as the central point for treating bottom profile in drawing three-dimensional graphics When mark and profile point coordinates, there is specifying for similar reference relation in standard stereo figure to the second point coordinates in order to deduce Profile point, can obtain in advance in standard stereo figure each specified profile point in bottom profile to central point sample length, with And sample reference relation of the line segment relative to default object of reference that specified profile point is constituted with central point.For each specified profile Point can be provided with corresponding parameter group (sample length, sample reference relation).
Wherein, specified profile point is the profile point in the bottom profile of standard stereo figure, specifies the quantity of profile point can To set according to demand.Specify the quantity of profile point to determine the spacing of specified profile point, and then determine specified profile point Density, specifies the quantity of profile point bigger, thus it is speculated that going out specified profile point corresponding with second point coordinate and the second point coordinates has Reference relation it is more similar.Therefore, in the case where considering that the factors such as smart machine process performance allow, the number of profile point is specified Amount is as far as possible big, so that the sample reference relation more approximate with reference relation can be found by realizing, and then draws more accurate Solid figure.
Central point is the central point of bottom profile in standard stereo figure, for example, standard three-dimensional body is cylinder or circular cone During body, i.e., standard stereo figure is standard cylinder figure or standard cone figure, then central point is the oval center in bottom surface, I.e. standard cylinder or the standard round facies basialis pyramidis center of circle are in the subpoint for presetting the projection plane corresponding to visual angle.Standard three-dimensional body For when two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, central point for regular polygon center in default visual angle institute The subpoint of corresponding projection plane.
After the first point coordinates and the second point coordinates is obtained, it may be determined that what the first point coordinates and the second point coordinates were constituted The target length of target segment and the target segment and the reference relation of default object of reference;From default sample length and In sample reference relation, filter out with the approximately uniform sample reference relation of the reference relation, and based on the length and The corresponding sample length of reference relation filtered out, it is determined that treating the bottom profile of drawing three-dimensional graphics relative to standard stereo figure Bottom profile the first scaling.
As seen from the above-described embodiment, by reference to same default object of reference, standard stereo figure and can be set up at first point Relation between coordinate and the second point coordinates, and then determine the bottom profile for treating drawing three-dimensional graphics relative to standard stereo figure Bottom profile the first scaling.
In one example, each specified profile point and central point in the bottom profile of the default standard stereo figure Relation includes:The corresponding relation of sample length and sample angle, the sample length is that standard stereo figure middle finger determines profile point The length of the line segment constituted with central point, the sample angle is the angle of the line segment and line of reference.
In this embodiment, treat that the first two-dimensional coordinate system used in drawing three-dimensional graphics is used with standard stereo figure The second two-dimensional coordinate system between meet specified relationship.So-called specified relationship, can be the X-axis and second of the first two-dimensional coordinate system The X-axis of two-dimensional coordinate system is overlapped or parallel, and the Y-axis of the first two-dimensional coordinate system is overlapped or parallel with the Y-axis of the second two-dimensional coordinate system.
Default object of reference can be line of reference, can be a certain reference axis in two-dimensional coordinate system for example, referring to line.Reference Relation can be that standard stereo figure middle finger determines profile point and the line segment of central point composition and the sample angle of line of reference.
In consideration of it, after the first point coordinates and the second point coordinates is obtained, first point coordinates and second point can be calculated The target length and the target segment of the target segment that coordinate is constituted and the target angle of the line of reference;From the sample In this angle, the sample angle minimum with the target angle gap is filtered out;Sample by the target length, with filtering out Sample length corresponding to angle is compared, and obtains bottom surface of the bottom profile relative to standard stereo figure for treating drawing three-dimensional graphics First scaling of profile.
In the present embodiment, if target angle and the gap of sample angle are minimum, it is considered that the sample angle filtered out Corresponding subpoint, be and the immediate point of the second coordinate points relation.The subpoint corresponding to sample angle filtered out with Line segment and the first point coordinates that central point is constituted and the line segment that the second point coordinates is constituted have incidence relation, therefore, it can mesh Length is marked compared with the sample length corresponding to the sample angle filtered out, so as to obtain the bottom profile for treating drawing three-dimensional graphics Relative to the first scaling of the bottom profile of standard stereo figure.
Further, in order to improve the accuracy of judgement, in Screening Samples angle, it can be screened from sample angle Go out the sample angle in default angle with target angle gap minimum and gap.
As seen from the above-described embodiment, standard stereo figure and the first point coordinates are set up by way of angle and second point is sat Relation between mark, and then determine to treat the of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics One scaling, can improve the confirmation efficiency of ratio.
Due to the first pantograph ratio of bottom profile of the bottom profile relative to standard stereo figure for the treatment of drawing three-dimensional graphics Example determines, and using the first point coordinates and the second point coordinates as the center point coordinate for treating bottom profile in drawing three-dimensional graphics With profile point coordinates, then it can draw according to standard stereo figure bottom profile and the first scaling and wait to draw three-dimensional The bottom profile of figure.
In an optional implementation, each specified profile point in the bottom profile of the default standard stereo figure Also include with the relation of central point:Draw the drafting information needed for bottom profile in the standard stereo figure.
In consideration of it, when drawing bottom profile, can be based on first scaling to the length in the drafting information Degree is zoomed in and out;Using the direction in the length and drafting information of scaling acquisition, the bottom of drawing three-dimensional graphics is treated described in drafting Facial contour.
If for example, the standard three-dimensional body is cylinder or cone, the drafting information includes the standard stereo figure The length and bearing of trend of the greatest radius of bottom profile and the length and bearing of trend of most short radius in shape, then based on institute State the first scaling to zoom in and out the length of most short radius and the length of greatest radius in the drafting information, contracted Most short radius length and greatest radius length after putting;Based on most short by half in the most short radius length after scaling and drafting information The bearing of trend of greatest radius, draws institute in greatest radius length and drafting information after the bearing of trend and scaling in footpath State the bottom profile for treating drawing three-dimensional graphics.
Wherein, most short radius can be the central point of bottom profile in standard stereo figure to the distance of nearest profile point, The bearing of trend of most short radius can be in most short radius certain end point to the direction of another end points.Greatest radius can be standard The central point of bottom profile is to the distance of farthest profile point in solid figure, and the bearing of trend of greatest radius can be greatest radius In certain end point to the direction of another end points.
And for example, it is described to paint if the standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon Information processed includes length and direction of the central point of bottom profile in the standard stereo figure to each summit.Wherein, bottom surface is taken turns Wide summit can be the intersection point of adjacent edge in bottom profile.In consideration of it, based on the first scaling in the drafting information Length is zoomed in and out;Using the direction in the length and drafting information of scaling acquisition, drawing three-dimensional graphics are treated described in drafting Bottom profile.
Side profile in drawing three-dimensional graphics is treated in order to draw out, side profile in standard stereo figure can be obtained in advance Bearing of trend.The bearing of trend of side profile can be in side profile any end points to the direction of another end points.Due to In the case where projection condition (default visual angle) determines, the bearing of trend of side profile is fixed in standard stereo figure, therefore, no Whether pipe second point is consistent with bearing of trend to direction thirdly, in drawing three-dimensional graphics during side profile, according to mark The bearing of trend of side profile is drawn in quasi- solid figure.
Specifically, according to the second point coordinates and thirdly projector distance of the coordinate on the bearing of trend of side profile, can To determine the side profile length of stereogram to be drawn, side profile length based on the bottom profile and determination drawn and Bearing of trend, draws the profile in other faces in stereogram to be drawn.
Next, each specified profile point and central point in bottom profile to how to determine default standard stereo figure The bearing of trend of side profile is introduced in relation and standard stereo figure.
Can prestore the sample data group at least one projection condition (default visual angle) in the present embodiment, sample data group bag The pass of each specified profile point and central point in the bottom profile for the standard stereo figure for including same projection condition (default visual angle) The bearing of trend of side profile in system and standard stereo figure.
Wherein, the projection matrix corresponding to different projection conditions (default visual angle) may be different.Projection matrix is to be used to incite somebody to action Three-dimensional coordinate is converted to the matrix of two-dimensional coordinate.
In an optional implementation, a kind of sample data group of projection condition of fixed storage (default visual angle), often During secondary progress graphic plotting, drawn using the parameter in the sample data group.
In another optional implementation, a variety of projection conditions (default visual angle) corresponding sample data can be stored Group.Before drawing three-dimensional graphics, sample data group is determined.For example, setting interface based on projection condition (default visual angle), receive and throw Shadow stripe part (default visual angle) sets instruction, sets instruction to determine that projection condition is (default according to the projection condition (default visual angle) Visual angle), and then corresponding sample data group is determined, solid figure drafting is then carried out according to the sample data group of determination.Set Projection condition (default visual angle) directly can be described in interface in the way of word, can also every kind of projection condition (default visual angle) Corresponding standard stereo figure is pointed out, and is easy to user to check the bandwagon effect at every kind of projection condition (default visual angle), from And quickly carry out projection condition (default visual angle) setting.
The embodiment of the present invention also provides a kind of sample data group and determines method.As shown in Figure 3A, Fig. 3 A are bases of the present invention A kind of sample data group shown in one exemplary embodiment determines the flow chart of method, and methods described includes step 301 to 304:
In step 301, the bottom profile of the standard three-dimensional body is subjected to decile, obtains at least two Along ents.
In this step, the bottom profile of standard three-dimensional body can be subjected to N deciles, obtains N number of Along ent.Decile quantity The density of setting of Along ent is determined, in the case where considering equipment process performance, decile quantity can be as far as possible big.
In step 302, based on the corresponding projection matrix in default visual angle, determine the Along ent corresponding to default visual angle Projection plane subpoint and standard three-dimensional body bottom center the projection plane corresponding to default visual angle subpoint, The corresponding subpoint of the Along ent is defined as the specified profile point, the corresponding subpoint in center is defined as the center Point.
Without real standard three-dimensional body is projected into two dimensional surface (projection screen) in practical application, it is possible to use specify Projection matrix corresponding to projection condition (default visual angle), the three-dimensional coordinate of three-dimensional drawing engine Plays said three-dimensional body is converted to Two-dimensional coordinate, and then the two-dimensional coordinate obtained based on conversion, draw standard stereo figure in two dimensional surface.
If standard three-dimensional body is cylinder or cone, the central point is cylinder or the cone bottom surface center of circle default The subpoint of projection plane corresponding to visual angle.If the standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are identical just polygon The cylinder of shape, the central point is subpoint of the cylinder bottom center in the projection plane corresponding to default visual angle.Cylinder bottom surface Center, can be that to the equal point of each vertex distance of bottom surface, i.e. the distance on the center of bottom surface to each summit of bottom surface is equal.By It is regular polygon in bottom surface, bottom center is the geometric center of regular polygon.
, can be corresponding by the Along ent in order to distinguish the corresponding subpoint of Along ent and the corresponding subpoint of central point Subpoint is defined as the specified profile point, and the corresponding subpoint in center is defined as into the central point.
In step 303, based on identified specified profile point and central point, determine to specify described in standard stereo figure Sample angle, the Yi Jihui of the sample length and the line segment and the line of reference of the line segment that profile point is constituted with central point Make the drafting information needed for bottom profile in the standard stereo figure.
Wherein, if the standard three-dimensional body is cylinder or cone, the drafting information can include the standard and stand The length and bearing of trend of the greatest radius of bottom profile and the length and bearing of trend of most short radius in volume graphic.If described Standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, and the drafting information can include the mark Length and direction of the central point of bottom profile to each summit in quasi- solid figure.
In step 304, the extension side of side profile in standard stereo figure is determined based on identified specified profile point To.
Wherein, if the standard three-dimensional body be cylinder or two bottom surfaces are parallel and two bottom surfaces be identical regular polygon post Body, the upper bottom surface profile middle finger based on the standard stereo figure determines the coordinate and bottom facial contour middle finger fixed wheel of profile point The coordinate of exterior feature point, determines the bearing of trend of side profile in standard stereo figure.
If the standard three-dimensional body is cone, profile point is determined based on bottom profile middle finger in the standard stereo figure The apex coordinate of coordinate and the standard stereo figure, determines the bearing of trend of profile bus in standard stereo figure.
In this embodiment, standard three-dimensional body is the said three-dimensional body as benchmark pre-set, in one example, with three Body is tieed up for exemplified by cylinder, the radius of cylinder can be R0=1, be highly H0=2.Due to default visual angle, it is known that then can be with Obtaining three dimensions under default visual angle, can be according to formula P based on the projection matrix to the projection matrix Mp of two dimensional surfaceProjection= PIt is three-dimensional* Mp calculates projection point coordinates of any profile point coordinates of standard three-dimensional body in two dimensional surface.For example, can be regarded based on default The corresponding projection matrix in angle, determines that Along ent (in order to distinguish, can claim in the subpoint of the projection plane corresponding to default visual angle To specify profile point), specifically, determination etc. point point coordinates (refers in the projection point coordinates of the projection screen corresponding to default visual angle Fixed wheel exterior feature point coordinates).And for example, it can determine that the said three-dimensional body bottom surface center of circle is regarded default based on the default corresponding projection matrix in visual angle The subpoint (in order to distinguish, being properly termed as central point) of projection plane corresponding to angle.And for example, can be based on default visual angle correspondence Projection matrix, determine that standard three-dimensional body projects to the projection point coordinates of projection plane and the projection point coordinates is drafting standard Coordinate needed for solid figure, and then standard stereo figure is drawn according to the coordinate of determination.
As shown in Figure 3 B, Fig. 3 B are that a kind of specified profile point of the present invention according to an exemplary embodiment determines signal Figure.(for convenience of description, in Fig. 3 B only the bottom profile of standard cylinder is divided into N parts by the schematic diagram by taking cylinder as an example Specify profile point in the part for listing cylinder bottom profile), and by Along ent in the projection plane corresponding to default visual angle Subpoint is defined as specifying profile point, checks for convenience, specified profile point is highlighted using round dot.SiFor cylinder volume graphic The middle one of Along ent of upper bottom surface profile, Si' it is the bottom one of Along ent of facial contour in cylinder volume graphic, O is cylinder The central point of upper bottom surface profile in volume graphic.
In the present embodiment, standard stereo figure can be determined according to the coordinate and the coordinate of central point of specified profile point Described in specify sample length, the sample angle of the line segment and the line of reference of line segment that profile point and central point constitute. To specify profile point SiExemplified by, specify profile point SiParameter include line segment OSiLengthAnd line segment OSiWith the angle of X-axis θi, Ke YiyongRepresent the parameter, 0≤i≤N.
Wherein, the coordinate of profile point is specified to pass through formula PProjection=PIt is three-dimensional* Mp, which is calculated, obtains, MpRepresent default visual angle pair The projection matrix answered, PProjectionRepresent the coordinate of specified profile point, PIt is three-dimensionalExpression etc. point point coordinates.
Sample angle is properly termed as projection angle again, it can be seen from vector product formula:
OSiOX=| OSi||OX|·cosθ
It is hereby achieved that line segment OSiWith the sample angle theta of X-axisi
It can be seen that, the parameter of each Along ent can be obtainedWherein, X coordinate can be using value as (1,0).
Further, each specified profile point and the relation of central point are also wrapped in the bottom profile of default standard stereo figure Include:Draw the drafting information needed for bottom profile in standard stereo figure.If standard three-dimensional body is cylinder or cone, draw Information can include the greatest radius and the length and bearing of trend of most short radius of bottom profile in standard stereo figure.If mark Quasi- said three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, and standard stereo figure can be included by drawing information Length and direction of the central point of middle bottom profile to each summit.
, can also be according to the coordinate and the relation of the coordinate of central point for specifying profile point, it is determined that most short by taking cylinder as an example Radius Min (Ri) and greatest radius Max (Ri).As shown in Figure 3 C.
As a kind of preferred embodiment, the second two-dimensional coordinate system used in standard stereo figure is expired with standard stereo figure Foot:A wherein coordinate overlapping of axles in greatest radius and the second two-dimensional coordinate system, most short radius with it is another in the second two-dimensional coordinate system Coordinate overlapping of axles, the central point of bottom profile is overlapped with the second two-dimensional coordinate system origin, then can greatly reduce amount of calculation, is saved The calculating time.Wherein, if greatest radius and most short radius just respectively with coordinate overlapping of axles, most short radius is properly termed as again Minor axis radius, greatest radius are properly termed as major axis radius again.
If standard three-dimensional body is cylinder or two bottom surfaces are parallel and two bottom surfaces be identical regular polygon cylinder, can be based on The coordinate and bottom facial contour middle finger that the upper bottom surface profile middle finger of the standard stereo figure determines profile point determine the seat of profile point Mark, determines the bearing of trend of side profile in standard stereo figure.
Because the upper bottom surface profile and bottom surface profile parallel, therefore, certain in upper bottom surface profile of standard stereo figure are specified Profile point specifies profile point and bottom surface with other in respective profile point is constituted in the facial contour of bottom line segment and upper bottom surface profile In profile respective profile point constitute line segment it is parallel, therefore any line segment bearing of trend with being taken turns sideways in standard stereo figure Wide bearing of trend is identical.For example according to SiAnd Si' coordinate can determine the extension side of side profile in standard stereo figure To.As shown in Figure 3 B, bearing of trend is the positive direction or negative direction of Y-axis.
If standard three-dimensional body is cone, can be based in standard stereo figure in bottom profile projection point coordinates and The apex coordinate of standard stereo figure, determines the bearing of trend of the profile bus of standard stereo figure.
Then, understand for convenience, the embodiment of the present invention is introduced in drawing course with a concrete application example and how painted System treats drawing three-dimensional graphics.As shown in Figure 3 C, Fig. 3 C are a kind of cylinder figure of the present invention according to an exemplary embodiment Shape compares schematic diagram.In the schematic diagram, the first two-dimensional coordinate system and standard cylinder used in cylinder volume graphic to be drawn The second two-dimensional coordinate system meets specified relationship used in figure.
In mouse drag drawing process, P1 point coordinates and P2 point coordinates are obtained, P1 point coordinates and P2 point coordinates are distinguished As the center point coordinate of bottom profile and profile point coordinates in drawing three-dimensional graphics is treated, then P1 point coordinates corresponds to standard cylinder O points in volume graphic, in order to find out specified profile point corresponding with P2 points in standard cylinder figure, can calculate line segment P2P1 With OX angle ∠ P2P1X, and the sample angle minimum with ∠ P2P1X gaps is filtered out from sample angle.Remember α=∠ P2P1X, then { Δ i=θ i- α, 0≤i≤N }, i-th of subpoint when Δ i obtains minimum value are throw corresponding with P2 points Shadow point Si, and then determine sample length corresponding with line segment P2P1
So far, the first scaling k1 can be determined according to below equation:
Then, the most short radius and greatest radius drawn in information are zoomed in and out based on the first scaling, obtains mesh Mark short radius k1*Min (Ri) and target major radius k1*Max (Ri);And utilize the short radius k1*Min (R of targeti) and target Major radius k1*Max (Ri) bottom profile of cylinder volume graphic to be drawn is drawn, with reference to P3 point coordinates and standard cylinder figure The bearing of trend of middle side profile, draws other facial contours.
In correlation technique, non-rotatable solid figure is drawn often through two-dimensional graphic engine, for example with two-point method Draw;Can also be by the rotary solid figure of three-dimensional drawing Engine draws, for example, user is manually entered solid figure Three-dimensional parameter, three-dimensional drawing engine can draw out corresponding solid figure.It is understood that two-dimensional graphic engine and three-dimensional The figure that drawing engine draws go out is 2 d plane picture.What two-dimensional graphic engine was drawn out is fixed projection condition (default visual angle) Solid figure, thus it is not rotatable.And in three-dimensional drawing engine, three-dimensional drawing engine can be instructed according to rotation process and drawn The solid figure gone out under different display view angles.
However, two-dimensional graphic engine and three-dimensional drawing engine are all independently operated, and can not realize and painted using two-dimensional graphic engine Make after solid figure, utilize the solid figure under the different display view angles of three-dimensional drawing engine exhibits.User can only be utilized respectively Two-dimensional graphic engine and three-dimensional drawing engine are drawn, and drawing efficiency is low, and poor user experience.
Therefore, the embodiment of the present invention also provides a kind of method for determining three-dimensional parameter, methods described:
S1:According to the second point coordinates and thirdly side profile in the distance of coordinate and the standard stereo figure Length and bearing of trend, it is determined that treating the second of side profile of the side profile relative to standard stereo figure of drawing three-dimensional graphics Scaling.
Wherein it is possible to the second point coordinates and the thirdly projector distance of coordinate in the direction of extension be determined, by projector distance Compared with the length of side profile in standard stereo figure, the side profile for treating drawing three-dimensional graphics can be obtained relative to standard Second scaling of the side profile of solid figure.
S2:Obtain and utilize three-dimensional parameter required during standard stereo figure described in three-dimensional drawing Engine draws.
Wherein, if standard three-dimensional body is cylinder or cone, standard stereo described in three-dimensional drawing Engine draws is utilized Required three-dimensional parameter includes the height of cylinder or cone bottom surface radius of circle and cylinder or cone during figure.If standard Said three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, then utilizes standard described in three-dimensional drawing Engine draws It can be crest line length that required three-dimensional parameter, which includes cylinder, during solid figure.For example, it is square post that cylinder, which is bottom surface, During body, three-dimensional parameter can be the bottom surface length of side and height.
S3:Based on first scaling and second scaling, the three-dimensional parameter is zoomed in and out.
Wherein it is possible to be zoomed in and out using the first scaling to the bottom surface three-dimensional parameter of said three-dimensional body, the second scaling is utilized Ratio is zoomed in and out to the height of said three-dimensional body.
By taking cylinder as an example, it is assumed that the bottom surface radius of standard cylinder is R0, a height of H0, the first scaling isSecond scaling isThen cylinder corresponding to cylinder volume graphic to be drawn Three-dimensional parameter:Bottom surface radius is R=R0*k1, a height of H=H0*k2.
S4:The three-dimensional parameter input three-dimensional drawing engine obtained will be scaled.
In consideration of it, three-dimensional drawing engine can treat drawing three-dimensional graphics according to being drawn the three-dimensional parameter that scaling is obtained; Receive and the rotation process for treating drawing three-dimensional graphics is instructed;Wait to draw three-dimensional according to the rotation process instruction map The display view angle of said three-dimensional body corresponding to figure;Draw solid figure of the said three-dimensional body under the display view angle.
It can be seen that, the embodiment of the present invention is according to the change of display view angle, the stereogram after real-time rendering change under display view angle Shape, the display to solid figure is more directly perceived, better user experience.
Various technical characteristics in above example can be arbitrarily combined, as long as punching is not present in the combination between feature Prominent or contradiction, but as space is limited, do not described one by one, therefore the various technical characteristics in above-mentioned embodiment arbitrarily enter Row combination falls within the scope of this disclosure.
As shown in figure 4, Fig. 4 is another solid figure method for drafting of the present invention according to an exemplary embodiment Flow chart, this method comprises the following steps:
In step 401, the first point coordinates and the second point coordinates are obtained.
In step 402, calculate the target segment that first point coordinates and the second point coordinates are constituted target length, with And the target segment and the target angle of default line of reference.
In step 403, from default corresponding relation, the sample angle minimum with the target angle gap is filtered out.
Wherein, the corresponding relation of sample length and sample angle is provided with advance, the sample length is standard stereo figure Specify the length for the line segment that profile point and central point constitute in shape in bottom profile, the sample angle be the line segment with it is described The angle of line of reference.
In step 404, by the target length compared with the sample length corresponding to the sample angle filtered out, obtain Treat the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics.
In step 405, wait to paint according to being drawn the first point coordinates, the second point coordinates and first scaling The bottom profile of solid figure processed.
In a step 406, thirdly coordinate is obtained.
In one example, after execution of step 406, step 407 can be performed, step 408 can also be performed.Step There is no priority execution sequence between 407 and step 408, step 407 can be first carried out, it is rear to perform step 408;It can also first carry out Step 408, it is rear to perform step 407, it is not limited herein.In one example, step 406 can be performed step 407 and hold The trigger condition of row step 408.In another example, step 407 can perform trigger condition of step 408 etc..
In step 407, the side in the distance of coordinate and the standard stereo figure according to the second point coordinates and thirdly The bearing of trend of facial contour, draws the profile in other faces in shown stereogram to be drawn.
In a step 408, the side in the distance of coordinate and the standard stereo figure according to the second point coordinates and thirdly The length and bearing of trend of facial contour, it is determined that treating that the side profile of drawing three-dimensional graphics is taken turns relative to the side of standard stereo figure The second wide scaling.
In step 409, obtain and utilize three-dimensional parameter required during standard stereo figure described in three-dimensional drawing Engine draws.
Wherein, step 409 can not be limited with step 407 and 408 execution sequence.In one example, can be by Step 407 is drawing wait after the profile in other faces in drawing stereogram as the trigger condition of step 409, is performing step 409;In another example, can using step 408 as step 409 trigger condition, i.e., it is determined that after the second scaling, Step 409 etc. is performed, can also be numerous to list herein using other conditions as the trigger condition for performing step 409.
In step 410, based on first scaling and second scaling, the three-dimensional parameter is carried out Scaling.
Wherein, treat that step 404 obtains the first scaling, step 408 obtains the second scaling, and step 409 obtains three When tieing up parameter, step 410 can be performed.
In step 411, the three-dimensional parameter for scaling acquisition is inputted into three-dimensional drawing engine.
Wherein, step 401 is identical with the correlation technique of abovementioned steps 201 to 204 and 301 to 304 to step 411, herein No longer repeat one by one.
As seen from the above-described embodiment, the present embodiment is by a bottom profile of two point-rendering solid figures, and passes through Other facial contours of three point-rendering solid figures, so that the drafting of solid figure is realized, because user can pass through 2 points of controls Bottom profile size in solid figure, other facial contours in solid figure are controlled by the 3rd point, therefore can be with active response Drawing for order, draws out the solid figure that user expects to draw, and then improve the accuracy of drawing three-dimensional graphics.Also, according to The cube figure of drafting can obtain the three-dimensional dimension of corresponding said three-dimensional body, and three-dimensional dimension is transmitted to three-dimensional drawing engine, By three-dimensional drawing Engine draws said three-dimensional body solid figure under various visual angles, realize that two-dimensional graphicses instrument and three-dimensional drawing draw The combination held up.
Embodiment with foregoing solid figure method for drafting is corresponding, present invention also offers solid figure drawing apparatus, Electronic equipment and the embodiment of computer storage media that device is applied.
The embodiment of solid figure drawing apparatus of the present invention can be applied in computer equipment.Device embodiment can pass through Software is realized, can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, anticipated as a logic Device in justice is the processor drawn by solid figure where it by corresponding computer program in nonvolatile memory Instruction reads what operation in internal memory was formed.For hardware view, as shown in figure 5, being solid figure drawing apparatus of the present invention A kind of hardware structure diagram of place computer equipment, except the processor 510 shown in Fig. 5, internal memory 530, network interface 520, with And outside nonvolatile memory 540, reality of the computer equipment at the place of device 531 generally according to the server in embodiment Function, can also include other hardware, this is repeated no more.
As shown in fig. 6, Fig. 6 is a kind of frame of solid figure drawing apparatus of the present invention according to an exemplary embodiment Figure, described device includes:Coordinate obtaining module 610, ratio-dependent module 620 and graphic plotting module 630.
Wherein, coordinate obtaining module 610, for obtaining the first point coordinates, thirdly the second point coordinates, coordinate.
Ratio-dependent module 620, for using first point coordinates and the second point coordinates as stereogram to be drawn Respectively refer on the center point coordinate of bottom profile and profile point coordinates in shape, and the bottom profile of the default standard stereo figure of combination Profile point and the relation of central point are determined, it is determined that treating that the bottom profile of drawing three-dimensional graphics is taken turns relative to the bottom surface of standard stereo figure The first wide scaling.
Graphic plotting module 630, for based on the bottom surface that drawing three-dimensional graphics are treated described in first scaling drafting Profile;According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension side To the profile in other faces in stereogram to be drawn shown in drafting.
In an optional implementation, the standard stereo figure is with default visual angle displaying mark on two dimensional surface The figure of quasi- said three-dimensional body, the standard three-dimensional body includes cylinder, cone or two bottom surfaces are parallel and two bottom surfaces are identical just many The cylinder of side shape, if the standard three-dimensional body is cylinder or cone, the side profile is profile bus;If the standard Said three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, and the side profile is side crest line.
In an optional implementation, each specified profile point in the bottom profile of the default standard stereo figure Include with the relation of central point:The corresponding relation of sample length and sample angle, during the sample length is standard stereo figure Profile point and the length of the line segment of central point composition are specified, the sample angle is the folder of the line segment and default line of reference Angle.
In an optional implementation, described device also includes relationship determination module (Fig. 6 is not shown), the relation Determining module is used for:
The bottom profile of the standard three-dimensional body is subjected to decile, at least two Along ents are obtained.
Based on the corresponding projection matrix in default visual angle, determine the Along ent in the projection plane corresponding to default visual angle Subpoint and standard three-dimensional body bottom center are in the subpoint for presetting the projection plane corresponding to visual angle, by the Along ent pair The subpoint answered is defined as the specified profile point, and the corresponding subpoint in center is defined as into the central point.
Based on identified specified profile point and central point, determine to specify profile point and center described in standard stereo figure The sample angle of the sample length and the line segment and the line of reference of the line segment that point is constituted.
In an optional implementation, the ratio-dependent module 620 includes:
Information calculating sub module, the target for calculating the target segment that first point coordinates and the second point coordinates are constituted Length and the target segment and the target angle of the line of reference.
Angle screens submodule, for from the sample angle, filtering out the sample minimum with the target angle gap This angle.
Ratio-dependent submodule, for by the target length and the sample length phase corresponding to the sample angle that filters out Than obtaining the first scaling of bottom profile of the bottom profile relative to standard stereo figure for treating drawing three-dimensional graphics.
In an optional implementation, each specified profile point in the bottom profile of the default standard stereo figure Also include with the relation of central point:Draw the drafting information needed for bottom profile in the standard stereo figure;If the standard Said three-dimensional body be cylinder or cone, the drafting information include the standard stereo figure in bottom profile greatest radius with And the length and bearing of trend of most short radius;If the standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are identical regular polygon Cylinder, the drafting information includes length and side of the central point to each summit of bottom profile in the standard stereo figure To.
The graphic plotting module specifically for:The length in the drafting information is entered based on first scaling Row scaling.Using the direction in the length and drafting information of scaling acquisition, the bottom surface wheel of drawing three-dimensional graphics is treated described in drafting It is wide.
In an optional implementation, if the standard three-dimensional body is cylinder or two bottom surfaces are parallel and two bottom surfaces are The cylinder of identical regular polygon, described device also includes first direction determining module (Fig. 6 is not shown), is used for:Based on the mark The coordinate and bottom facial contour middle finger that the upper bottom surface profile middle finger of quasi- solid figure determines profile point determine the coordinate of profile point, really Calibrate the bearing of trend of side profile in quasi- solid figure.
In an optional implementation, if the standard three-dimensional body is cone, described device also includes second party To determining module (Fig. 6 is not shown), it is used for:Based on bottom profile middle finger in the standard stereo figure determine profile point coordinate, And the apex coordinate of the standard stereo figure, determine the bearing of trend of profile bus in standard stereo figure.
In an optional implementation, described device also includes parameter acquisition module, parameter Zoom module and parameter Transport module (Fig. 6 is not shown).
Wherein, the ratio-dependent module, is additionally operable to according to the second point coordinates and the thirdly distance of coordinate and described The length and bearing of trend of side profile in standard stereo figure, it is determined that treating the side profile of drawing three-dimensional graphics relative to standard Second scaling of the side profile of solid figure.
Parameter acquisition module, three-dimensional required during standard stereo figure described in three-dimensional drawing Engine draws is utilized for obtaining Parameter.
Parameter Zoom module, for based on first scaling and second scaling, to the three-dimensional ginseng Number is zoomed in and out.
Parameter transport module, three-dimensional drawing engine is inputted for will scale the three-dimensional parameter obtained.
In an optional implementation, described device also includes:
Drafting module, for based on the three-dimensional drawing engine, waiting to paint described in the three-dimensional parameter drafting obtained using scaling Solid figure processed.
Command reception module, for receiving to the rotation process instruction for treating drawing three-dimensional graphics.
Visual angle determining module, for three corresponding to treating drawing three-dimensional graphics according to the rotation process instruction map Tie up the display view angle of body.
The drafting module, is additionally operable to draw solid figure of the said three-dimensional body under the display view angle.
Accordingly, the present invention also provides a kind of electronic equipment, and described device includes processor;Can for storing processor The memory of execute instruction;Wherein, the processor is configured as:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate.
Using first point coordinates and the second point coordinates as the central point for treating bottom profile in drawing three-dimensional graphics The pass of each specified profile point and central point on coordinate and profile point coordinates, and the bottom profile of the default standard stereo figure of combination System, it is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics.
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting.
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension Direction, draws the profile in other faces in shown stereogram to be drawn.
Further, electronic equipment can be Intelligent flat, for example, wish fertile interactive intelligent tablet computer.
Accordingly, the embodiment of the present invention is also provided has program stored therein in a kind of computer-readable storage medium, the storage medium Instruction, described program instruction includes:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate.
Using first point coordinates and the second point coordinates as the central point for treating bottom profile in drawing three-dimensional graphics The pass of each specified profile point and central point on coordinate and profile point coordinates, and the bottom profile of the default standard stereo figure of combination System, it is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics.
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting.
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension Direction, draws the profile in other faces in shown stereogram to be drawn.
The embodiment of the present invention can use the storage medium for wherein including program code one or more (including but not limit In magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer can use storage Medium includes permanent and non-permanent, removable and non-removable media, can realize information by any method or technique Storage.Information can be computer-readable instruction, data structure, the module of program or other data.The storage medium of computer Example include but is not limited to:Phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus or any other non-pass Defeated medium, the information that can be accessed by a computing device available for storage.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component The module of explanation can be or may not be physically separate, and the part shown as module can be or can also It is not physical module, you can with positioned at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.Can be according to reality Selection some or all of module therein is needed to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
Those skilled in the art will readily occur to its of the present invention after the invention that specification and practice are applied here is considered Its embodiment.It is contemplated that cover the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and the common knowledge in the art do not applied including the present invention Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (13)

1. a kind of solid figure method for drafting, it is characterised in that methods described includes:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate;
Using first point coordinates and the second point coordinates as the center point coordinate for treating bottom profile in drawing three-dimensional graphics With profile point coordinates, and combine default standard stereo figure bottom profile on each specified profile point and the relation of central point, It is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension side To the profile in other faces in stereogram to be drawn shown in drafting.
2. according to the method described in claim 1, it is characterised in that the standard stereo figure is with default on two dimensional surface Visual angle shows the figure of standard three-dimensional body, and the standard three-dimensional body includes cylinder, cone or two bottom surfaces are parallel and two bottom surfaces For the cylinder of identical regular polygon, if the standard three-dimensional body is cylinder or cone, the side profile is profile bus; If the standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are the cylinder of identical regular polygon, the side profile is side rib Line.
3. method according to claim 2, it is characterised in that each in the bottom profile of the default standard stereo figure Specifying the relation of profile point and central point includes:The corresponding relation of sample length and sample angle, the sample length is standard Solid figure middle finger determines the length for the line segment that profile point is constituted with central point, and the sample angle is the line segment and default ginseng According to the angle of line.
4. method according to claim 3, it is characterised in that the corresponding relation of sample length and the sample angle is really Determining step includes:
The bottom profile of the standard three-dimensional body is subjected to decile, at least two Along ents are obtained;
Based on the corresponding projection matrix in default visual angle, projection of the Along ent in the projection plane corresponding to default visual angle is determined Point and standard three-dimensional body bottom center the projection plane corresponding to default visual angle subpoint, the Along ent is corresponding Subpoint is defined as the specified profile point, and the corresponding subpoint in center is defined as into the central point;
Based on identified specified profile point and central point, determine to specify profile point and central point structure described in standard stereo figure Into line segment sample length and the sample angle of the line segment and the line of reference.
5. method according to claim 3, it is characterised in that described to distinguish first point coordinates and the second point coordinates As treating the center point coordinate of bottom profile and profile point coordinates in drawing three-dimensional graphics, and combine default standard stereo figure Bottom profile on each specified profile point and the relation of central point, it is determined that treating the bottom profile of drawing three-dimensional graphics relative to standard First scaling of the bottom profile of solid figure, including:
Calculate the target length and the target segment of the target segment that first point coordinates and the second point coordinates are constituted with The target angle of the line of reference;
From the sample angle, the sample angle minimum with the target angle gap is filtered out;
By the target length compared with the sample length corresponding to the sample angle filtered out, drawing three-dimensional graphics are treated in acquisition First scaling of the bottom profile relative to the bottom profile of standard stereo figure.
6. method according to claim 3, it is characterised in that each in the bottom profile of the default standard stereo figure Specifying the relation of profile point and central point also includes:Draw the drafting information needed for bottom profile in the standard stereo figure; If the standard three-dimensional body is cylinder or cone, the drafting information includes bottom profile in the standard stereo figure The length and bearing of trend of greatest radius and most short radius;If the standard three-dimensional body is that two bottom surfaces are parallel and two bottom surfaces are phase With the cylinder of regular polygon, central point of the drafting information including bottom profile in the standard stereo figure to each summit Length and direction;
It is described based on first scaling draw described in treat the bottom profiles of drawing three-dimensional graphics, including:
The length in the drafting information is zoomed in and out based on first scaling;
Using the direction in the length and drafting information of scaling acquisition, the bottom profile of drawing three-dimensional graphics is treated described in drafting.
7. method according to claim 2, it is characterised in that if the standard three-dimensional body is that cylinder or two bottom surfaces are parallel And two bottom surface be identical regular polygon cylinder, the determination step bag of the bearing of trend of side profile in the standard stereo figure Include:
Upper bottom surface profile middle finger based on the standard stereo figure determines the coordinate and bottom facial contour middle finger fixed wheel of profile point The coordinate of exterior feature point, determines the bearing of trend of side profile in standard stereo figure;
If the standard three-dimensional body is cone, the determination step bag of the bearing of trend of side profile in the standard stereo figure Include:
The coordinate of profile point and the top of the standard stereo figure are determined based on bottom profile middle finger in the standard stereo figure Point coordinates, determines the bearing of trend of profile bus in standard stereo figure.
8. the method according to any one of claim 1 to 7, it is characterised in that methods described also includes:
According to the second point coordinates and thirdly the length of side profile and prolong in the distance of coordinate and the standard stereo figure Direction is stretched, it is determined that treating the second pantograph ratio of side profile of the side profile relative to standard stereo figure of drawing three-dimensional graphics Example;
Obtain and utilize three-dimensional parameter required during standard stereo figure described in three-dimensional drawing Engine draws;
Based on first scaling and second scaling, the three-dimensional parameter is zoomed in and out;
The three-dimensional parameter input three-dimensional drawing engine obtained will be scaled.
9. method according to claim 8, it is characterised in that methods described also includes:
Based on the three-dimensional drawing engine, drawing three-dimensional graphics are treated described in the three-dimensional parameter drafting obtained using scaling;
Receive and the rotation process for treating drawing three-dimensional graphics is instructed;
The display view angle of said three-dimensional body corresponding to treating drawing three-dimensional graphics according to the rotation process instruction map;
Draw solid figure of the said three-dimensional body under the display view angle.
10. a kind of solid figure drawing apparatus, it is characterised in that described device includes:
Coordinate obtaining module, for obtaining the first point coordinates, thirdly the second point coordinates, coordinate;
Ratio-dependent module, for using first point coordinates and the second point coordinates as treating bottom surface in drawing three-dimensional graphics Each specified profile point on the center point coordinate and profile point coordinates of profile, and the bottom profile of the default standard stereo figure of combination With the relation of central point, it is determined that treating the first of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics Scaling;
Graphic plotting module, for based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;Root According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile bearing of trend, draw The profile in other faces in shown stereogram to be drawn.
11. a kind of electronic equipment, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate;
Using first point coordinates and the second point coordinates as the center point coordinate for treating bottom profile in drawing three-dimensional graphics With profile point coordinates, and combine default standard stereo figure bottom profile on each specified profile point and the relation of central point, It is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension side To the profile in other faces in stereogram to be drawn shown in drafting.
12. electronic equipment according to claim 11, it is characterised in that the electronic equipment is Intelligent flat.
13. a kind of computer-readable storage medium, it is characterised in that have program stored therein instruction in the storage medium, described program refers to Order includes:
Obtain the first point coordinates, thirdly the second point coordinates, coordinate;
Using first point coordinates and the second point coordinates as the center point coordinate for treating bottom profile in drawing three-dimensional graphics With profile point coordinates, and combine default standard stereo figure bottom profile on each specified profile point and the relation of central point, It is determined that treating the first scaling of bottom profile of the bottom profile relative to standard stereo figure of drawing three-dimensional graphics;
Based on the bottom profile that drawing three-dimensional graphics are treated described in first scaling drafting;
According to the second point coordinates and thirdly in the distance of coordinate and the standard stereo figure side profile extension side To the profile in other faces in stereogram to be drawn shown in drafting.
CN201710501302.0A 2017-06-27 2017-06-27 Solid figure method for drafting, device, equipment and storage medium Pending CN107248192A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710501302.0A CN107248192A (en) 2017-06-27 2017-06-27 Solid figure method for drafting, device, equipment and storage medium
PCT/CN2017/104816 WO2019000692A1 (en) 2017-06-27 2017-09-30 Three-dimensional graphic rendering method, apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710501302.0A CN107248192A (en) 2017-06-27 2017-06-27 Solid figure method for drafting, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107248192A true CN107248192A (en) 2017-10-13

Family

ID=60013694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710501302.0A Pending CN107248192A (en) 2017-06-27 2017-06-27 Solid figure method for drafting, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN107248192A (en)
WO (1) WO2019000692A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785434A (en) * 2017-11-14 2019-05-21 上海谦问万答吧云计算科技有限公司 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure
CN109933264A (en) * 2019-03-19 2019-06-25 深圳市元征科技股份有限公司 Graph data display methods and device
CN109976614A (en) * 2019-03-28 2019-07-05 广州视源电子科技股份有限公司 A kind of mask method of solid figure, device, equipment and medium
CN110378841A (en) * 2019-07-24 2019-10-25 百度在线网络技术(北京)有限公司 Display processing method and device
CN110489693A (en) * 2019-07-23 2019-11-22 北京字节跳动网络技术有限公司 A kind of method, apparatus of drawing 3 D graphics, medium and electronic equipment
CN110647236A (en) * 2018-06-27 2020-01-03 深圳市掌网科技股份有限公司 Virtual brush and drawing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773555A (en) * 2005-10-26 2006-05-17 浙江大学 Sparse grid-oriented three-dimensional foot type fast acquiring method based on standard foot deformation
CN104915986A (en) * 2015-06-26 2015-09-16 北京航空航天大学 Physical three-dimensional model automatic modeling method
CN105069226A (en) * 2015-08-03 2015-11-18 常州赞云软件科技有限公司 Three-dimensional modeling method based on template
CN105809734A (en) * 2016-03-10 2016-07-27 杭州师范大学 Mechanical model 3D modeling method based on multiple view interaction
CN106003025A (en) * 2016-05-31 2016-10-12 上海未来伙伴机器人有限公司 Method and device for creating three-dimensional robot model

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2384784B1 (en) * 2010-05-05 2012-09-26 Sorin CRM SAS Assembly for endocavitary stimulation/defibrillation of the left ventricle
CN104238921A (en) * 2013-06-21 2014-12-24 苏州精易会信息技术有限公司 Custom polygon drawing method and device
CN104154452A (en) * 2014-08-26 2014-11-19 区其富 LED bulb

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773555A (en) * 2005-10-26 2006-05-17 浙江大学 Sparse grid-oriented three-dimensional foot type fast acquiring method based on standard foot deformation
CN104915986A (en) * 2015-06-26 2015-09-16 北京航空航天大学 Physical three-dimensional model automatic modeling method
CN105069226A (en) * 2015-08-03 2015-11-18 常州赞云软件科技有限公司 Three-dimensional modeling method based on template
CN105809734A (en) * 2016-03-10 2016-07-27 杭州师范大学 Mechanical model 3D modeling method based on multiple view interaction
CN106003025A (en) * 2016-05-31 2016-10-12 上海未来伙伴机器人有限公司 Method and device for creating three-dimensional robot model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王以功,刘家友: "《土木工程CAD》", 28 February 2016, 中国矿业大学出版社 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785434A (en) * 2017-11-14 2019-05-21 上海谦问万答吧云计算科技有限公司 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure
CN110647236A (en) * 2018-06-27 2020-01-03 深圳市掌网科技股份有限公司 Virtual brush and drawing method
CN109933264A (en) * 2019-03-19 2019-06-25 深圳市元征科技股份有限公司 Graph data display methods and device
CN109933264B (en) * 2019-03-19 2022-01-04 深圳市元征科技股份有限公司 Graphic data display method and device
CN109976614A (en) * 2019-03-28 2019-07-05 广州视源电子科技股份有限公司 A kind of mask method of solid figure, device, equipment and medium
CN110489693A (en) * 2019-07-23 2019-11-22 北京字节跳动网络技术有限公司 A kind of method, apparatus of drawing 3 D graphics, medium and electronic equipment
CN110378841A (en) * 2019-07-24 2019-10-25 百度在线网络技术(北京)有限公司 Display processing method and device

Also Published As

Publication number Publication date
WO2019000692A1 (en) 2019-01-03

Similar Documents

Publication Publication Date Title
CN107248192A (en) Solid figure method for drafting, device, equipment and storage medium
CN108520247A (en) To the recognition methods of the Object node in image, device, terminal and readable medium
CN106797458B (en) The virtual change of real object
CN109377467A (en) Generation method, object detection method and the device of training sample
TWI693531B (en) Saccadic redirection for virtual reality locomotion
CN109710056A (en) The display methods and device of virtual reality interactive device
CN106502667B (en) A kind of rendering method and device
CN109961064A (en) Identity card text positioning method, device, computer equipment and storage medium
CN107943365A (en) Rendering method, device, electronic equipment and the storage medium of lines person's handwriting
WO2018205493A1 (en) Graphic drawing method, apparatus and device
US9013485B2 (en) Systems and methods for synthesizing high fidelity stroke data for lower dimension input strokes
WO2008016532A2 (en) Image dominant line determination and use
CN106530379B (en) Method and apparatus for performing path delineation
CN106444846A (en) Unmanned aerial vehicle and method and device for positioning and controlling mobile terminal
CN107895048A (en) It is a kind of that drawing method is quickly gone out based on outdoor scene three-dimensional
CN109460770A (en) Characteristics of image descriptor extracting method, device, computer equipment and storage medium
CN103399629A (en) Method and device for capturing gesture displaying coordinates
DE102019108733A1 (en) Fast multi-scale point cloud registration with a hierarchical Gaussian mix
CN113590000B (en) Handwriting processing method, handwriting processing device and storage medium
CN110471607B (en) Handwriting display method, handwriting reading equipment and computer storage medium
CN109240561B (en) Method and device for selecting rotary element adsorption element, and rotary adsorption method
US10573033B2 (en) Selective editing of brushstrokes in a digital graphical image based on direction
CN102999930A (en) Method and device for drawing electronic writing lines
CN111079535A (en) Human skeleton action recognition method and device and terminal
CN110308785A (en) E-book implementation method based on AR technology

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171013