CN109785434A - A kind of method, apparatus and storage medium of drawing three-dimensional solid figure - Google Patents

A kind of method, apparatus and storage medium of drawing three-dimensional solid figure Download PDF

Info

Publication number
CN109785434A
CN109785434A CN201711120253.2A CN201711120253A CN109785434A CN 109785434 A CN109785434 A CN 109785434A CN 201711120253 A CN201711120253 A CN 201711120253A CN 109785434 A CN109785434 A CN 109785434A
Authority
CN
China
Prior art keywords
description information
dimensional graph
dimensional
diagram parameter
graph
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
CN201711120253.2A
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.)
Suzhou Qianwen Wandaba Education Technology Co ltd
Original Assignee
Shanghai Qian Wan Answer Cloud Computing Technology 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 Shanghai Qian Wan Answer Cloud Computing Technology Co Ltd filed Critical Shanghai Qian Wan Answer Cloud Computing Technology Co Ltd
Priority to CN201711120253.2A priority Critical patent/CN109785434A/en
Publication of CN109785434A publication Critical patent/CN109785434A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses the method, apparatus and storage medium of a kind of drawing three-dimensional solid figure, the method comprise the steps that obtaining the description information of the three-dimensional graph of user's input;Wherein, the description information includes: character description information and picture description information;The three-dimensional graph is drawn according to the description information of the three-dimensional graph.The present invention is after the description information for obtaining three-dimensional graph, without user's hand drawn three-dimensional graph corresponding with the description information of the three-dimensional graph, the three-dimensional graph can be drawn automatically according to the character description information and picture description information of three-dimensional graph, save manpower when three-dimensional graph is drawn and time.

Description

A kind of method, apparatus and storage medium of drawing three-dimensional solid figure
Technical field
The present invention relates to educational outfit technical field more particularly to a kind of method, apparatus of drawing three-dimensional solid figure and Storage medium.
Background technique
In teaching field, key points and difficulties of the solid geometry as middle-school mathematics teaching, drawing course is teacher's Teaching and the study of student bring difficulty.
During the solid geometry teaching that traditional blackboard is manually mapped, the most of the time of teacher is forced to be engaged in a large amount of The work of the Hand drawing of low-level and repeatability.With the progress and Computerized three-dimensional display technology of Compute Graphics Theory Development, many effects preferably can be used to carry out mapping software to three-dimensional graph and game 3D engine emerges in large numbers, these Mapping software requires user that must grasp certain programming language and professional drawing grounding in basic skills.
Traditional blackboard is manually mapped and the mapping of professional drawing software all needs to carry out drawing three-dimensional three-dimensional geometrical figure manually, and The solid geometry teaching efficiency that traditional blackboard is manually mapped is lower, program capability and drawing function of the professional mapping software to teacher Bottom is more demanding, waste of manpower and time.
Summary of the invention
The embodiment of the invention provides the method, apparatus and storage medium of a kind of drawing three-dimensional solid figure, to realize root Automatic Drafting is carried out according to the description information of the three-dimensional graph of user's input.
In a first aspect, the embodiment of the invention provides a kind of methods of drawing three-dimensional solid figure, which comprises
Obtain the description information of the three-dimensional graph of user's input;Wherein, the description information includes: verbal description letter Breath and picture description information;
The three-dimensional graph is drawn according to the description information of the three-dimensional graph.
Second aspect, the embodiment of the invention provides a kind of device of drawing three-dimensional solid figure, described device includes: to obtain Take unit and drawing unit;Wherein,
The acquiring unit, the description information of the three-dimensional graph for obtaining user's input;Wherein, the description letter Breath includes: character description information and picture description information;
The drawing unit, for drawing the three-dimensional graph according to the description information of the three-dimensional graph.
The third aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the method for drawing three-dimensional solid figure described in any embodiment of that present invention when the program is executed by processor.
The embodiment of the present invention proposes the method, apparatus and storage medium of a kind of drawing three-dimensional solid figure, obtains first The description information of the three-dimensional graph of user's input;Wherein, the description information includes: character description information and picture description Information;The three-dimensional graph is finally drawn according to the description information of the three-dimensional graph.Therefore with prior art phase Than the method, apparatus and storage medium of the drawing three-dimensional solid figure that the embodiment of the present invention proposes can be according to 3 dimensional drawings The character description information and picture description information of shape draw the three-dimensional graph automatically.
Detailed description of the invention
Fig. 1 is a kind of flow chart for drawing three-dimensional solid figure method that the embodiment of the present invention one provides;
Fig. 2 is the exemplary diagram for the picture description information that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow chart of drawing three-dimensional solid figure method provided by Embodiment 2 of the present invention;
Fig. 4 is the exemplary diagram that exclusion provided by Embodiment 2 of the present invention solves situation more;
Fig. 5 is another exemplary diagram for excluding more solution situations provided by Embodiment 2 of the present invention;
Fig. 6 is a kind of flow chart for drawing three-dimensional solid figure method that the embodiment of the present invention three provides;
Fig. 7 is a kind of user interaction flow figure for drawing three-dimensional solid figure method that the embodiment of the present invention four provides;
Fig. 8 is that the figure after user's interaction that the embodiment of the present invention four provides shows exemplary diagram;
Fig. 9 is that the figure after another user interaction that the embodiment of the present invention four provides shows exemplary diagram;
Figure 10 is a kind of structural schematic diagram for drawing three-dimensional solid figure device that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for drawing three-dimensional solid figure method that the embodiment of the present invention one provides, and the present embodiment can The case where suitable for three-dimensional graph automatic Drafting, this method can be executed by a kind of device of drawing three-dimensional solid figure. This method specifically comprises the following steps:
Step 110, the description information for obtaining the three-dimensional graph that user inputs;Wherein, the description information includes: text Word description information and picture description information.
In a specific embodiment of the present invention, drawing three-dimensional solid figure device obtains the three-dimensional graph of user's input Description information;Wherein, the description information includes: character description information and picture description information.In general, the 3 D stereo The description information of figure can be passage description information, i.e., to a completely known three-dimensional graph only with text come It is described, that is to say, that required known diagram parameter when in this section of text comprising all draftings three-dimensional graph, Requirement without needing to obtain the unknown diagram parameter to be drawn by calculating, and without corresponding additional pictures description letter Breath.For example, the character description information obtained are as follows: the bottom surface radius of a circular cone is 2cm, a height of 6cm.Then circular cone, bottom surface radius With the high foundation for as drawing the circular cone.
Alternatively, the description information of the three-dimensional graph may be one section of verbal description for having unknown diagram parameter Information only describes known diagram parameter therein and unknown diagram parameter to a three-dimensional graph with text, and needs The unknown diagram parameter to be drawn is obtained by calculating according to known diagram parameter.For example, the character description information obtained Are as follows: the bottom surface radius of a circular cone is 2cm, a height of 6cm, wherein have the inscribed cylinder of an a height of x cm, the circle when why x is worth The lateral area of column is maximum.At this point, circular cone, bottom surface radius and a height of foundation for drawing the circular cone, and drawn according to known to circular cone To cylinder qualifications in graph parameter information and verbal description, the unknown diagram parameter x for meeting qualifications is calculated.Finally, The height x of " inscribed " word and calculated cylinder in character description information is the foundation for drawing the cylinder.
In addition, the description information of the three-dimensional graph can be a secondary or several secondary picture description informations, i.e., it is described The chamfered shape of three-dimensional graph is depicted in picture, and the specific number of each known diagram parameter can also be marked in the picture Value information.For example, the picture description information obtained are as follows: a cone.At this point it is possible to by carrying out image recognition to picture, Know that this three-dimensional graph is cone, and identify the relative position of each diagram parameter in picture, specifies each diagram parameter Location information, in this, as the foundation of drawing three-dimensional solid figure.For another example the picture description information obtained are as follows: a circular cone Body, it is 2cm, a height of 6cm that its bottom surface radius is marked in figure.As shown in Fig. 2, Fig. 2 is that the picture that the embodiment of the present invention one provides is retouched State the exemplary diagram of information.At this point it is possible to know that this three-dimensional graph is cone by carrying out image recognition to picture, and The specific value information for identifying each diagram parameter in picture, as the foundation for drawing the three-dimensional graph.
The description information of three-dimensional graph in the present embodiment can be above-mentioned character description information or picture description letter The combination of one or both of breath.Wherein, the character description information of three-dimensional graph is manually entered for user, the text Word description information can be customized three-dimensional graph character description information, or teaching books or paper in The stem information of solid geometry examination question is learned, or meets the character description information etc. of three-dimensional graph requirement for all.For The picture description information of three-dimensional graph, user can be by the three-dimensionals on the three-dimensional graphs material such as papery or webpage Solid figure is taken pictures or the operations such as screenshot, obtains the figure of the three-dimensional graph for the regular picture format that can be transmitted Piece, and the picture is uploaded in being integrated in the device of drawing three-dimensional solid figure method described in the embodiment of the present invention, with This obtains the picture description information of the three-dimensional graph of user's input.The picture description information can be user in papery material The three-dimensional graph of acquisition or hand drawn in material, or the three-dimensional graph shown on webpage or electronic equipment Deng.
Step 120 draws the three-dimensional graph according to the description information of the three-dimensional graph.
In a specific embodiment of the present invention, drawing three-dimensional solid figure device is according to the description of the three-dimensional graph Information draws the three-dimensional graph.Wherein, the description information of the three-dimensional graph includes in character description information Known diagram parameter information and/or unknown diagram parameter information are described by the diagram parameter information and picture being calculated The chamfered shape information of three-dimensional graph in information, the relative position information of each diagram parameter and/or specific ginseng of drawing Number numerical information etc..On the basis of the diagram parameter information of acquisition, automatically the three-dimensional graph is drawn.Its In, three-dimensional graph can be drawn using different types of line segment, such as solid line or dotted line etc., to distinguish with difference Described in view when three-dimensional graph the three-dimensional graph part of blocking and be blocked, be presented to the effect of 3D User;Three-dimensional graph can be drawn using the line segment of different colours simultaneously, such as red or green etc., to distinguish It is right in the different three-dimensional graphs for including in the three-dimensional graph or important and unessential part, such as above-mentioned example Circular cone and its inscribed cylinder are drawn out with different colors.
The technical solution of the present embodiment, after obtaining the description information of three-dimensional graph of user's input, wherein described Description information includes character description information and picture description information, according to the drafting of the description information of the three-dimensional graph Three-dimensional graph.In the technical solution that the embodiment of the present invention proposes, after the description information for obtaining three-dimensional graph, nothing User's hand drawn three-dimensional graph corresponding with the description information of the three-dimensional graph is needed, the embodiment of the present invention proposes Drawing three-dimensional solid figure method, apparatus and storage medium, can according to the character description information of three-dimensional graph and Picture description information draws the three-dimensional graph automatically, saves manpower when three-dimensional graph is drawn and time.
Embodiment two
On the basis of the above embodiment 1, one for providing a kind of drawing three-dimensional solid figure method is excellent for the present embodiment Embodiment is selected, semantic analysis can be carried out to the character description information of the three-dimensional graph, accurate determine all is drawn The space coordinate of element simultaneously draws the three-dimensional graph.Fig. 3 is that a kind of drawing three-dimensional provided by Embodiment 2 of the present invention is vertical The flow chart of volume graphic method, as shown in figure 3, this method comprising the following specific steps
Step 310, the character description information for obtaining the three-dimensional graph that user inputs.
The character description information of the three-dimensional graph is character description information described in the embodiment of the present invention one.
The character description information of the three-dimensional graph is carried out morphological analysis and syntactic analysis by step 320.
The character description information includes known diagram parameter information and/or unknown parameter information and qualifications, institute Unknown diagram parameter information needs are stated to be calculated according to known diagram parameter information and qualifications.Wherein, described known to draw Graph parameter information, the unknown parameter information and the qualifications need to obtain by analysis, to the 3 dimensional drawing The character description information of shape carries out morphological analysis and syntactic analysis, by the verbal description of the three-dimensional graph of natural language description Information is converted into the geometric proposition for the standardization that computer is understood that.It is, for example, possible to use natural language understanding engine analysis The character description information.
In order to correct understanding character description information, needs to carry out morphological analysis to character description information, text is retouched It states the sentence in information and splits into several words, remove the redundancy section in natural language, and convert meter for mathematic sign The expression way that calculation machine is understood that, such as text " angle " is converted by angle symbol " ∠ ", text is converted by vertical symbol " ⊥ " Word " vertical ".By morphological analysis, de-redundant deposits essence, obtains the key message in character description information, such as geometric element, element Attribute, element relation and numerical parameter etc..On the basis of morphological analysis, sentence is carried out by depositing the key message after essence to de-redundant Key message, is reassembled into the geometric proposition simplified by method analysis.For example, character description information are as follows: the bottom surface of a circular cone Radius is 2cm, a height of 6cm.After morphological analysis and syntactic analysis, available key message includes circular cone, bottom surface radius 2cm and high 6cm.
Step 330 judges whether the character description information of the three-dimensional graph meets default drawing condition, if so, Execute step 340;Otherwise, step 350 is executed.
Wherein, the default drawing condition contains all drafting institutes for the character description information of the three-dimensional graph Known diagram parameter required when three-dimensional graph is stated, without needing to obtain the unknown drawing to be drawn ginseng by calculating Several requirements.Therefore, when meeting default drawing condition, that is, woth no need to the unknown diagram parameter of calculating, after can carrying out Continuous plot step;Otherwise, when being unsatisfactory for default drawing condition, that is, exist and wanted to what unknown diagram parameter was calculated It asks, it is necessary to can just carry out subsequent plot step after carrying out solution calculating to unknown diagram parameter.
Step 340 obtains known diagram parameter in the character description information.
When meeting default drawing condition, that is, woth no need to the unknown diagram parameter of calculating, can from morphological analysis and Known diagram parameter is obtained in the result of syntactic analysis.For example, character description information are as follows: the bottom surface radius of a circular cone is 2cm, A height of 6cm.Its known diagram parameter are as follows: circular cone, bottom surface radius 2cm and high 6cm.
Step 350 obtains known diagram parameter in the character description information, is calculated according to diagram parameter known to whole The corresponding unknown diagram parameter of the three-dimensional graph.
When being unsatisfactory for default drawing condition, that is, there is the requirement calculated unknown diagram parameter, needs first Known diagram parameter and qualifications are obtained from the result of morphological analysis and syntactic analysis, secondly according to known diagram parameter With qualifications unknown diagram parameter is calculated, all diagram parameters needed for drawing three-dimensional solid figure are obtained with this.For example, Character description information are as follows: the bottom surface radius of a circular cone is 2cm, a height of 6cm, wherein have the inscribed cylinder of an a height of x cm, When why x is worth, the lateral area of cylinder is maximum.Its known diagram parameter are as follows: circular cone, conical bottom radius surface 2cm, the high 6cm of circular cone with And cylinder.Its unknown diagram parameter are as follows: the high x cm of cylinder.Its qualifications are as follows: the lateral area of inscribed cylinder and cylinder is maximum.
Preferably, the expression formula that can be calculated, function or equation group can be converted by the character description information, and asked The expression formula, function or equation group are solved, the corresponding unknown diagram parameter of the three-dimensional graph is calculated.
Illustratively, character description information are as follows: the bottom surface radius of a circular cone is 2cm, a height of 6cm, wherein there is a height For the inscribed cylinder of x cm, when why x is worth, the lateral area of cylinder is maximum.The character description information can be converted to secondary FunctionAccording to qualifications: the lateral area of inscribed cylinder and cylinder is maximum, calculates the secondary letter Number solves so that SCylindrical sideThe value of maximum x, i.e. x=3, after unknown diagram parameter solves are as follows: the high 3cm of cylinder.To obtain text The unknown parameter that known diagram parameter and calculating in description information are got can carry out the drafting step of subsequent three-dimensional graph Suddenly.
Step 360 determines the three-dimensional graph according to the known diagram parameter and/or the unknown diagram parameter The space coordinate of middle whole drawing element.
Wherein, the drawing element includes but is not limited to: vertex, straight line, curve, plane or curved surface.
Preferably, in the three-dimensional graph drawing element key point wherein established for coordinate origin it is three-dimensional Coordinate system, when the key point is with certain visual angle drawing three-dimensional solid figure, for being wired to the three-dimensional graph Vertex or node.
Illustratively, common three-dimensional graph includes regular or incomplete square, cuboid, circular cone, cylinder And sphere etc..It, can be with one of its 8 vertex for coordinate origin for square and cuboid.For circular cone and circle , can be using the center of circle of its bottom surface circle as coordinate origin for column, or key node when using certain view is coordinate Origin.For example, being rendered as an isosceles triangle when observing circular cone with front view, two endpoints on bottom edge being considered as crucial section Point can be using the key node in left side as coordinate origin according to routine, to carry out the cone of drawing three-dimensional, cylindrical body is similarly It can draw.It, can be using its centre of sphere as coordinate origin for sphere.
Preferably, according to coordinate origin and known diagram parameter and/or unknown diagram parameter, the 3 D stereo is determined The space coordinate for element of all drawing in figure.
Illustratively, a regular circular cone, bottom surface radius are 2cm, a height of 6cm, then are to sit with the center of circle of its bottom surface circle Mark origin establishes three-dimensional system of coordinate, circular cone bottom surface and x-axis and y-axis in the same plane, and plane where x-axis and y-axis is horizontal plane, Using the line of the bottom surface center of circle and conical tip as z-axis, z-axis is perpendicular to horizontal plane, and z-axis is positive direction vertically upward.Then bottom surface The coordinate in the round center of circle is (0,0,0);When observing circular cone with front view, it is rendered as an isosceles triangle, by two of bottom edge Endpoint is considered as key node, and the coordinate of two key nodes is respectively (- 1,0,0) and (1,0,0);The apex coordinate of circular cone is (0,0,6)。
Preferably, when there is the case where more solutions in the function of the solution or solution of equations, according to described three-dimensional vertical The space coordinate for element of all drawing in volume graphic identifies the relative position of whole drawing elements, excludes the function or side Multiplicity results in the solution of journey group.
Illustratively, Fig. 4 is the exemplary diagram that exclusion provided by Embodiment 2 of the present invention solves situation more.Under certain qualifications The height of a circular cone is sought, as shown in figure 4, establishing three-dimensional system of coordinate, circular cone bottom surface and x-axis by origin of the bottom surface center of circle of the circular cone In the same plane with y-axis, x-axis and y-axis place plane are horizontal plane, using the line of the bottom surface center of circle and conical tip as z-axis, z Axis is perpendicular to horizontal plane, and z-axis is positive direction vertically upward.After acquiring the height of a circular cone, the seat of two circular cones can be obtained Mark, i.e., there are a corresponding conical tip coordinates, z-axis opposite direction to equally exist a corresponding conical tip for z-axis positive direction Coordinate.Therefore, according to the known circular cone bottom surface center of circle and each key node coordinate in the solution that acquires conical tip coordinate it is opposite Position is accustomed to according to the mapping of normal job specification and people, and default takes the conical tip coordinate in z-axis positive direction, and Exclude the conical tip coordinate on z-axis opposite direction.
Illustratively, Fig. 5 is another exemplary diagram for excluding more solution situations provided by Embodiment 2 of the present invention.Seek a circular cone Inside meet the cylinder height of certain qualifications, as shown in figure 5, circular cone bottom surface is overlapped with cylinder bottom surface, the circular cone bottom surface center of circle with The cylinder bottom surface center of circle is overlapped, and cylinder upper bottom surface edge is on conical side surface.Equally, it is established by origin of the bottom surface center of circle of circular cone In the same plane, plane is horizontal plane where x-axis and y-axis, with the bottom surface center of circle for three-dimensional system of coordinate, circular cone bottom surface and x-axis and y-axis Line with conical tip is z-axis, and z-axis is perpendicular to horizontal plane, and z-axis is positive direction vertically upward.After acquiring cylinder height, The coordinate of two cylinder height z can be obtained, i.e. for z-axis positive direction there are a corresponding cylinder height coordinate, z-axis opposite direction is same There are a corresponding cylinder height coordinates.Therefore, according to the known bottom cylindrical face center of circle and each key node coordinate with acquire The relative position of cylinder height coordinate in solution should take inside circular cone positioned at z-axis according to cylinder known to character description information Cylinder height coordinate in positive direction excludes the cylinder height coordinate of z-axis opposite direction.
Step 370 draws the three-dimensional graph according to the space coordinate of whole drawing elements.
On the basis of the diagram parameter information of acquisition, the space for element of all drawing in the three-dimensional graph is determined Coordinate automatically draws the three-dimensional graph.Wherein it is possible to using different types of line segment to 3 dimensional drawing Shape is drawn, such as solid line or dotted line etc., and the three-dimensional is vertical when observing the three-dimensional graph to distinguish with different perspectives The part of blocking and be blocked of volume graphic, is presented to user with the effect of 3D, as shown in Figure 5;It can also be using different colours Line segment draws three-dimensional graph, such as red or green etc., in the three-dimensional graph includes not to distinguish With three-dimensional graph or it is important with unessential part, such as above-mentioned example in circular cone and its inscribed cylinder with different Color is drawn out.
The technical solution of the present embodiment, the first character description information of the three-dimensional graph of acquisition user input, secondly Morphological analysis and syntactic analysis are carried out to the character description information of the three-dimensional graph, obtain known diagram parameter therein Information, and when the character description information of the three-dimensional graph is unsatisfactory for preset drawing condition, that is, exist and need When the unknown diagram parameter calculated, the character description information is converted to expression formula, function or the equation group that can be calculated, with this Solve the unknown diagram parameter.Finally described three are determined according to the known diagram parameter and/or the unknown diagram parameter The space coordinate for element of all drawing in dimension solid figure, and draw the three-dimensional graph.What the embodiment of the present invention proposed The method, apparatus and storage medium of drawing three-dimensional solid figure can be solved by semantic analysis, condition judgement, unknown parameter And drawing essential factors space coordinate accurately determine etc. means, drawn automatically according to the character description information of three-dimensional graph described in Three-dimensional graph saves manpower when three-dimensional graph is drawn and time.
Embodiment three
On the basis of the above embodiment 1, one for providing a kind of drawing three-dimensional solid figure method is excellent for the present embodiment Embodiment is selected, image recognition can be carried out to the picture description information of the three-dimensional graph, accurate determine all is drawn The space coordinate of element simultaneously draws the three-dimensional graph.Fig. 6 is that a kind of drawing three-dimensional that the embodiment of the present invention three provides is vertical The flow chart of volume graphic method, as shown in fig. 6, this method comprising the following specific steps
Step 610, the picture description information for obtaining the three-dimensional graph that user inputs.
The character description information of the three-dimensional graph is picture description information described in the embodiment of the present invention one.
Step 620, the space that element of all drawing in the three-dimensional graph is determined according to the picture description information Coordinate.
Wherein, the drawing element includes but is not limited to: vertex, straight line, curve, plane or curved surface.
Preferably, the picture description information can be identified by image recognition technology.
Illustratively, image recognition is carried out to picture description information, obtains the wheel of the three-dimensional graph in the picture Profile shape, and identify the relative position of each diagram parameter in the picture specifies the location information of each diagram parameter, determine described in The space coordinate for element of all drawing in three-dimensional graph.For example, the picture description information obtained are as follows: a cone.This When, it can know that this three-dimensional graph is cone, and identify ginseng of respectively drawing in picture by carrying out image recognition to picture The location information of each diagram parameter is specified in several relative positions, in this, as the foundation of drawing three-dimensional solid figure.For another example The picture description information of acquisition an are as follows: cone, it is 2cm, a height of 6cm that its bottom surface radius is marked in figure.At this point it is possible to pass through Image recognition is carried out to the picture, knows that this three-dimensional graph is cone, and identify each diagram parameter in the picture Specific value information, i.e. bottom surface radius 2cm and high 6cm, as the foundation for drawing the three-dimensional graph.
Preferably, can first in the three-dimensional graph drawing element key point wherein for coordinate origin Three-dimensional system of coordinate is established, when the key point is with certain visual angle drawing three-dimensional solid figure, for being wired to the three-dimensional The vertex of solid figure or node.Secondly according to the relative position of diagram parameter each in coordinate origin and picture, determine described in The space coordinate for element of all drawing in three-dimensional graph.
Illustratively, the picture description information of acquisition an are as follows: cone.At this point, using the bottom surface center of circle of circular cone as coordinate Origin establishes three-dimensional system of coordinate, copy picture completely in certain proportion in three-dimensional graph.Alternatively, the picture obtained is retouched State information are as follows: a cone, it is 2cm, a height of 6cm that its bottom surface radius is marked in figure.At this point, being to sit with the bottom surface center of circle of circular cone Mark origin establishes three-dimensional system of coordinate, then the coordinate in the center of circle of bottom surface circle is (0,0,0);When observing circular cone with front view, present For an isosceles triangle, two endpoints on bottom edge are considered as key node, the coordinate of two key nodes is respectively (- 1,0,0) (1,0,0);The apex coordinate of circular cone is (0,0,6).
Step 630 draws the three-dimensional graph according to the space coordinate of whole drawing elements.
On the basis of the diagram parameter information of acquisition, the space for element of all drawing in the three-dimensional graph is determined Coordinate automatically draws the three-dimensional graph.Wherein it is possible to using different types of line segment to 3 dimensional drawing Shape is drawn, such as solid line or dotted line etc., and the three-dimensional is vertical when observing the three-dimensional graph to distinguish with different perspectives The part of blocking and be blocked of volume graphic, is presented to user with the effect of 3D;It can also be using the line segment of different colours to three-dimensional Solid figure is drawn, such as red or green etc., to distinguish the different 3 D stereos for including in the three-dimensional graph Figure or important and unessential part.
In addition, when the specific value information for not marking rendering parameter in the picture description information of the three-dimensional graph When, it is preferred that it can be using depth detection technology to farther out and being blocked in the three-dimensional graph apart from observed value Graphical information is detected.When due to drawing three-dimensional solid figure, in the case where not using depth detection technology, if first drawn In three-dimensional graph processed apart from observed value more directly it can be observed that part, then draw apart from observed value i.e. quilt farther out The part sheltered from, the then farther away part of the distance drawn afterwards can be aliasing in the part being closer, in addition can override away from From closer part, it is unfavorable for the observation to three-dimensional graph.Therefore, it is carried out in the picture to no rendering parameter specific value When duplication is drawn, it is particularly important that depth detection is carried out to picture.
Depth is that certain in picture is put in three-dimensional world apart from the distance of video camera, is indicated with depth value.It establishes three-dimensional Coordinate system, if plane is horizontal plane where x-axis and y-axis, x-axis is positive direction horizontally to the right, and y-axis is perpendicular to x-axis, and level rushes at The direction of observer is positive direction, and z-axis is perpendicular to horizontal plane, and z-axis is positive direction vertically upward.In the three-dimensional system of coordinate In, if the depth value of certain point is bigger, that is, the negative value of the point y value is bigger, then it represents that the point is remoter apart from video camera.
Illustratively, the picture description information of three-dimensional graph is a cuboid, due to the length of rib each in cuboid Degree is not necessarily identical, and the coordinate on 8 vertex is not readily ascertained, it is therefore desirable to carry out depth detection to cuboid.Obtain the figure Piece description information carries out depth detection and image recognition to the picture, obtain 8 vertex of the cuboid depth value and Relative position can be maximum using depth value and be located below with the vertex in left side as coordinate origin according to mapping convention, is established Three-dimensional system of coordinate;According to the metric or scale bar of system default, according to the relative position on each vertex, remaining 7 tops are specified The coordinate value of point.Finally, drawing the cuboid according to the coordinate on 8 vertex.
The technical solution of the present embodiment, the first picture description information of the three-dimensional graph of acquisition user input, secondly Image recognition is carried out to the picture description information of the three-dimensional graph, obtains diagram parameter information therein, last basis The diagram parameter determines the space coordinate for element of all drawing in the three-dimensional graph, and draws the 3 dimensional drawing Shape.The embodiment of the present invention propose drawing three-dimensional solid figure method, apparatus and storage medium, can by image recognition with And drawing essential factors space coordinate accurately determine etc. means, draw described three automatically according to the picture description information of three-dimensional graph Solid figure is tieed up, manpower when three-dimensional graph is drawn and time are saved.
Example IV
Fig. 7 is a kind of user interaction flow figure for drawing three-dimensional solid figure method that the embodiment of the present invention four provides, this Embodiment is applicable to the case where three-dimensional graph automatic Drafting, and this method can be by a kind of device of drawing three-dimensional solid figure To execute.This method specifically comprises the following steps:
Step 710 shows the three-dimensional graph, provides customer interaction information input interface and options menu.
When the coordinate for element of all drawing in the clear three-dimensional graph of description information according to the three-dimensional graph, It completes after three-dimensional graph, can show that the three-dimensional completed is vertical on the browsing device net page on insertion terminal platform Volume graphic can also be shown on the interface of software for collecting drawing three-dimensional solid figure method described in all embodiments of cost approach The three-dimensional graph completed.
Meanwhile it can be on the side for showing three-dimensional graph, such as left or right side etc., display interactive information input circle Face, for providing a user the channel interacted with three-dimensional graph.It is also possible in the side for showing three-dimensional graph, Such as upside or downside etc., it shows options menu, the permission of customized three-dimensional graph is shown for providing a user.
Step 720, the interactive information inputted according to the interactive information input interface, acquisition user;And/or according to described Options menu obtains the option information of user setting.
User can be on the basis of the character description information of current three-dimensional graph, by inputting in interactive information Interface inputs new condition or parameter, is further observed or is solved with this.Equally, user can be arranged in options menu Coordinate position, background color and three-view diagram such as show at the options, according to their own needs and habit so as to user, further observe Three-dimensional graph.
The option information of step 730, the interactive information and/or the user setting that are inputted according to the user, is repaired automatically Change the three-dimensional graph.
When user by interactive interface in character description information condition or parameter modify after, the embodiment of the present invention The three-dimensional graph drawn is modified automatically according to new condition or parameter;Equally, when user passes through options menu After new option is arranged, the embodiment of the present invention corresponds to the three-dimensional graph of form according to new setting options automatic Display.
Step 740, obtain user execute the three-dimensional graph is rotated and/or zoom operations, according to institute The scale of rotation and/or scaling is stated, at different angles and/or size shows the three-dimensional graph.
Mouse pointer can be placed on three-dimensional graph by user, pass through long-pressing left mouse button and mobile mouse position come Rotated three dimensional solid figure, and then the different angle of three-dimensional graph can be observed.User can also pass through double-click Left mouse button or the operations such as roll mouse idler wheel or manipulation keyboard scale three-dimensional graph, the three-dimensional more complex for structure Solid figure can be observed by adjusting the size of figure.
Illustratively, on the basis of Fig. 5, by the top view of setting display Fig. 5 to options menu, then interface is shown According to command information adjust automatically geometric figure position, and image recognition and depth detection are carried out to it, it can be to wherein blocking Cylinder drawn out using dotted line, and then show Fig. 5 top view, as shown in figure 8, Fig. 8 be the embodiment of the present invention four provide User's interaction after figure show exemplary diagram, the i.e. top view of Fig. 5.Equally on the basis of Fig. 5, it will be justified by interactive interface The embedded cylindrical body of cone is revised as cuboid, and two surfaces up and down of cuboid are square, four vertex of upper surface On the side of cone.And then cause shown three-dimensional graph different.Therefore the embodiment of the present invention repairs condition 3 D stereo after changing is modified and is shown automatically, as shown in figure 9, Fig. 9 is another use that the embodiment of the present invention four provides Figure after the interaction of family shows exemplary diagram, i.e., the cylindrical body modification that cone in Fig. 5 embeds is plotted as two surfaces up and down and is The cuboid of square.
The technical solution of the present embodiment is supplied to user and three-dimensional graph after three-dimensional graph of completing The channel interacted.First according to the interactive information input interface, the interactive information of user's input is obtained;And/or according to The options menu obtains the option information of user setting;Secondly the interactive information and/or the use inputted according to the user The option information of family setting, modifies the three-dimensional graph and its exhibition method automatically.It simultaneously can also be to the 3 D stereo Figure carries out rotation and/or zoom operations;According to the rotation and/or the scale of scaling, at different angles and/or size exhibition Show the three-dimensional graph.Solve conventional three-dimensional solid figure manually map in modify figure condition or exhibition method after want Significantly modify three-dimensional graph the problem of, and solve can not by Spatial distributions change carry out multi-angle show and The problem of observation, realizes the flexibly character description information of modification three-dimensional graph and obtains answering and corresponding three accordingly Solid figure is tieed up, and the flexibly effect of observation three-dimensional graph.
Embodiment five
Figure 10 is a kind of structural schematic diagram for drawing three-dimensional solid figure device that the embodiment of the present invention five provides, this implementation Example is applicable to the case where three-dimensional graph is drawn, which can realize that drawing three-dimensional described in any embodiment of that present invention is vertical The method of volume graphic.The device specifically includes: acquiring unit 1001 and drawing unit 1002;Wherein,
The acquiring unit 1001, the description information of the three-dimensional graph for obtaining user's input;Wherein, described to retouch Stating information includes: character description information and picture description information;
The drawing unit 1002, for drawing the 3 dimensional drawing according to the description information of the three-dimensional graph Shape.
Further, the drawing unit 1002 includes: analysis subelement 1003 and drafting subelement 1004;Wherein,
The analysis subelement 1003, for by the character description information of the three-dimensional graph carry out morphological analysis and Syntactic analysis;
The drafting subelement 1004, for drawing the three-dimensional graph based on the analysis results.
Further, the analysis subelement 1003, specifically for judging that the verbal description of the three-dimensional graph is believed Whether breath meets default drawing condition;When the character description information of the three-dimensional graph meets default drawing condition, Known diagram parameter is obtained in the character description information;When the character description information of the three-dimensional graph is unsatisfactory for presetting When condition, known diagram parameter is obtained in the character description information, and the three-dimensional is calculated according to diagram parameter known to whole The corresponding unknown diagram parameter of solid figure.
Further, the drafting subelement 1004, specifically for according to the known diagram parameter and described unknown drawing Graph parameter determines the space coordinate for element of all drawing in the three-dimensional graph;Wherein, the drawing element includes but not It is limited to: vertex, straight line, curve, plane or curved surface;The 3 dimensional drawing is drawn according to the space coordinate of whole drawing elements Shape.
Further, the drawing unit 1002 is also used to determine the 3 D stereo according to the picture description information The space coordinate for element of all drawing in figure;Wherein, the drawing element includes but is not limited to: vertex, curve, is put down at straight line Face or curved surface;The three-dimensional graph is drawn according to the space coordinate of whole drawing elements.
The technical solution of the present embodiment realizes by the mutual cooperation between modules and is obtaining the three of user's input After the description information for tieing up solid figure, wherein the description information includes character description information and picture description information, according to institute The description information for stating three-dimensional graph draws the three-dimensional graph.In the technical solution that the embodiment of the present invention proposes, Description information pair after the description information for obtaining three-dimensional graph, without user's hand drawn and the three-dimensional graph The three-dimensional graph answered, the method, apparatus and storage medium of the drawing three-dimensional solid figure that the embodiment of the present invention proposes, can The three-dimensional graph is drawn automatically according to the character description information of three-dimensional graph and picture description information, saves three Tie up manpower when solid figure is drawn and time.
Embodiment six
The embodiment of the present invention six also provides a kind of computer readable storage medium, be stored thereon with computer program (or For computer executable instructions), a kind of method when which is executed by processor for executing drawing three-dimensional solid figure should Method includes:
Obtain the description information of the three-dimensional graph of user's input;Wherein, the description information includes: verbal description letter Breath and picture description information;
The three-dimensional graph is drawn according to the description information of the three-dimensional graph.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, computer executable instructions are not It is limited to method operation as described above, drawing three-dimensional solid figure method provided by any embodiment of the invention can also be performed In relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.It is worth It is noted that included each unit and module are only drawn according to function logic in the embodiment of above-mentioned searcher Point, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each functional unit is specific Title is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of method of drawing three-dimensional solid figure, which is characterized in that the described method includes:
Obtain the description information of the three-dimensional graph of user's input;Wherein, the description information include: character description information and Picture description information;
The three-dimensional graph is drawn according to the description information of the three-dimensional graph.
2. the method according to claim 1, wherein when the description information be the character description information when, It is described that the three-dimensional graph is drawn according to the description information of the three-dimensional graph, comprising:
The character description information of the three-dimensional graph is subjected to morphological analysis and syntactic analysis;
The three-dimensional graph is drawn based on the analysis results.
3. according to the method described in claim 2, it is characterized in that, the character description information by the three-dimensional graph Carry out morphological analysis and syntactic analysis, comprising:
Judge whether the character description information of the three-dimensional graph meets default drawing condition;
When the character description information of the three-dimensional graph meets default drawing condition, obtained in the character description information Take known diagram parameter;
When the character description information of the three-dimensional graph is unsatisfactory for preset condition, obtained in the character description information Known diagram parameter calculates the corresponding unknown diagram parameter of the three-dimensional graph according to diagram parameter known to whole.
4. according to the method described in claim 3, it is characterized in that, described believe according to the verbal description of the three-dimensional graph Breath draws the three-dimensional graph, comprising:
Element of all drawing in the three-dimensional graph is determined according to the known diagram parameter and the unknown diagram parameter Space coordinate;Wherein, the drawing element includes but is not limited to: vertex, straight line, curve, plane or curved surface;
The three-dimensional graph is drawn according to the space coordinate of whole drawing elements.
5. the method according to claim 1, wherein described when the description information of the three-dimensional graph is institute It is described that the three-dimensional graph is drawn according to the description information of the three-dimensional graph when stating picture description information, comprising:
The space coordinate for element of all drawing in the three-dimensional graph is determined according to the picture description information;Wherein, institute Stating drawing element includes but is not limited to: vertex, straight line, curve, plane or curved surface;
The three-dimensional graph is drawn according to the space coordinate of whole drawing elements.
6. a kind of device of drawing three-dimensional solid figure, which is characterized in that described device includes: acquiring unit and drawing unit; Wherein,
The acquiring unit, the description information of the three-dimensional graph for obtaining user's input;Wherein, the description information packet It includes: character description information and picture description information;
The drawing unit, for drawing the three-dimensional graph according to the description information of the three-dimensional graph.
7. device according to claim 6, which is characterized in that the drawing unit includes: analysis subelement and draws sub Unit;Wherein,
The analysis subelement, for the character description information of the three-dimensional graph to be carried out morphological analysis and syntax point Analysis;
The drafting subelement, for drawing the three-dimensional graph based on the analysis results.
8. device according to claim 7, which is characterized in that the analysis subelement is specifically used for judging the three-dimensional Whether the character description information of solid figure meets default drawing condition;When the character description information of the three-dimensional graph is full When foot presets drawing condition, known diagram parameter is obtained in the character description information;When the text of the three-dimensional graph When word description information is unsatisfactory for preset condition, known diagram parameter is obtained in the character description information, according to known to whole Diagram parameter calculates the corresponding unknown diagram parameter of the three-dimensional graph.
9. device according to claim 8, which is characterized in that the drafting subelement is specifically used for according to described known Diagram parameter and the unknown diagram parameter determine the space coordinate for element of all drawing in the three-dimensional graph;Wherein, The drawing element includes but is not limited to: vertex, straight line, curve, plane or curved surface;It is sat according to the space of whole drawing elements It marks and draws and makes the three-dimensional graph.
10. device according to claim 6, which is characterized in that the drawing unit is also used to be described according to the picture Information determines the space coordinate for element of all drawing in the three-dimensional graph;Wherein, the drawing element includes but unlimited In: vertex, straight line, curve, plane or curved surface;The 3 dimensional drawing is drawn according to the space coordinate of whole drawing elements Shape.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method of the drawing three-dimensional solid figure as described in any one of claims 1 to 5 is realized when execution.
CN201711120253.2A 2017-11-14 2017-11-14 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure Pending CN109785434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711120253.2A CN109785434A (en) 2017-11-14 2017-11-14 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711120253.2A CN109785434A (en) 2017-11-14 2017-11-14 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure

Publications (1)

Publication Number Publication Date
CN109785434A true CN109785434A (en) 2019-05-21

Family

ID=66494070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711120253.2A Pending CN109785434A (en) 2017-11-14 2017-11-14 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure

Country Status (1)

Country Link
CN (1) CN109785434A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378841A (en) * 2019-07-24 2019-10-25 百度在线网络技术(北京)有限公司 Display processing method and device
CN113689523A (en) * 2021-08-26 2021-11-23 联想(北京)有限公司 Graph drawing method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391194A (en) * 2002-07-19 2003-01-15 章新苏 Device for drawing 3D graphics
CN101799937A (en) * 2010-03-23 2010-08-11 南京大学 Method for creating three-dimensional model by using sketch
CN103065344A (en) * 2012-11-30 2013-04-24 贵州电网公司六盘水供电局 Drawing method of two dimensional graph
CN105096368A (en) * 2015-04-30 2015-11-25 华为技术有限公司 Three-dimensional object processing method and related apparatus
WO2016145581A1 (en) * 2015-03-13 2016-09-22 王浩屹 Method for generating precise pattern according to hand-drawn graph
CN106885512A (en) * 2017-02-15 2017-06-23 吴思辰 A kind of 3-D scanning imaging method
CN107230239A (en) * 2017-05-11 2017-10-03 广州视源电子科技股份有限公司 Pattern drawing method, device and equipment
CN107248192A (en) * 2017-06-27 2017-10-13 广州视源电子科技股份有限公司 Solid figure method for drafting, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391194A (en) * 2002-07-19 2003-01-15 章新苏 Device for drawing 3D graphics
CN101799937A (en) * 2010-03-23 2010-08-11 南京大学 Method for creating three-dimensional model by using sketch
CN103065344A (en) * 2012-11-30 2013-04-24 贵州电网公司六盘水供电局 Drawing method of two dimensional graph
WO2016145581A1 (en) * 2015-03-13 2016-09-22 王浩屹 Method for generating precise pattern according to hand-drawn graph
CN105096368A (en) * 2015-04-30 2015-11-25 华为技术有限公司 Three-dimensional object processing method and related apparatus
CN106885512A (en) * 2017-02-15 2017-06-23 吴思辰 A kind of 3-D scanning imaging method
CN107230239A (en) * 2017-05-11 2017-10-03 广州视源电子科技股份有限公司 Pattern drawing method, device and equipment
CN107248192A (en) * 2017-06-27 2017-10-13 广州视源电子科技股份有限公司 Solid figure method for drafting, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378841A (en) * 2019-07-24 2019-10-25 百度在线网络技术(北京)有限公司 Display processing method and device
CN113689523A (en) * 2021-08-26 2021-11-23 联想(北京)有限公司 Graph drawing method and electronic equipment

Similar Documents

Publication Publication Date Title
Stahnke et al. Probing projections: Interaction techniques for interpreting arrangements and errors of dimensionality reductions
Haklay Interacting with geospatial technologies
Alcaide-Marzal et al. An exploratory study on the use of digital sculpting in conceptual product design
Dimmel et al. The semiotic structure of geometry diagrams: How textbook diagrams convey meaning
Irani et al. Diagramming information structures using 3D perceptual primitives
KR0156270B1 (en) Apparatus for preparing map data with regional properties
Panotopoulou et al. Tactile line drawings for improved shape understanding in blind and visually impaired users
US11144717B2 (en) Automatic generation of document layouts
Pick et al. Design and evaluation of data annotation workflows for cave-like virtual environments
CN109785434A (en) A kind of method, apparatus and storage medium of drawing three-dimensional solid figure
Jin et al. GAN-based pencil drawing learning system for art education on large-scale image datasets with learning analytics
Guznenkov et al. The Academic Discipline “Computer Graphics” for the Open Education System
CN112799583A (en) Point location schematic drawing system based on android platform
Pouliot et al. Empirical assessment of the suitability of visual variables to achieve notarial tasks established from 3D condominium models
Duhovnik et al. Space modeling with solidworks and NX
Chamberlain et al. Cain’s house task revisited and revived: Extending theory and methodology for quantifying drawing accuracy.
CN110287331A (en) Work compound group determines method, apparatus, equipment and storage medium
RU2752606C2 (en) Method for creating autonomous source of geospatial information and using it in interactive mode in absence of communication for transmitting digital data
Calderon et al. An evaluation method for panoramic understanding of programming by comparison with visual examples
Falomir et al. Q3D-Game: A Tool for Training Users' 3D Spatial Skills
Hruby et al. Cartographic heritage as shared experience in virtual space: A digital representation of the earth globe of Gerard Mercator (1541)
Baumback Module 4 Sketching Lines
Humienny et al. GPS training tool
Carson Drawing accuracy, quality and expertise
Bhat Sketchography-Automatic Grading of Map Sketches for Geography Education

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
TA01 Transfer of patent application right

Effective date of registration: 20200817

Address after: No.259 Nanjing West Road, Tangqiao town, Zhangjiagang City, Suzhou City, Jiangsu Province

Applicant after: Suzhou Qianwen wandaba Education Technology Co.,Ltd.

Address before: 200433 room 805, 433 song Hu Road, Yangpu District, Shanghai.

Applicant before: SHANGHAI QIANWENWANDABA CLOUD TECH. Co.,Ltd.

TA01 Transfer of patent application right
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240322

AD01 Patent right deemed abandoned