CN104715452B - Regular prism plane display method and device - Google Patents
Regular prism plane display method and device Download PDFInfo
- Publication number
- CN104715452B CN104715452B CN201310681420.6A CN201310681420A CN104715452B CN 104715452 B CN104715452 B CN 104715452B CN 201310681420 A CN201310681420 A CN 201310681420A CN 104715452 B CN104715452 B CN 104715452B
- Authority
- CN
- China
- Prior art keywords
- regular prism
- planar graph
- calculated
- rotation
- summit
- 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.)
- Active
Links
Landscapes
- Optical Elements Other Than Lenses (AREA)
- Image Generation (AREA)
Abstract
The invention discloses a kind of regular prism plane display method, including:Receiving plane shows the instruction of arbitrary initial state regular prism planar graph;Obtain the plane coordinates on bottom surface Zhong Ge summits;Two bottom surfaces summit of the maximum absolute value of the difference of x coordinate value is calculated, reference vertex is used as using the bottom surface summit;All bottom surface summits of the y-coordinate value more than the y-coordinate value of two reference vertex are calculated, empty summit is used as using the bottom surface summit;Dotted line will be shown as with the side of at least one original state regular prism planar graph for one of its end points in all empty summits;Receive figure rotation instruction;Regular prism planar graph after instruction display rotates about the axis thereof certain angle is rotated according to figure;Present invention also offers a kind of regular prism flat display apparatus.Regular prism plane display method and device proposed by the present invention, it can realize the function that further map function is carried out to regular prism planar graph, preferably aid in the teaching process of teacher, improve Consumer's Experience.
Description
Technical field
The present invention relates to figure shows and control technology field, particularly relates to a kind of regular prism plane display method and dress
Put.
Background technology
Nowadays, teaching white board software has been increasingly becoming main flow teaching tool.In classroom instruction instrument, with subject
Classification includes the contents such as Chinese language, English, mathematics, physics, chemistry, biology, geography, music;Wherein, mathematics used tool includes painting
Point, line, surface processed, three-dimensional geometrical figure etc.;In common whiteboarding software, the plane of three-dimensional geometrical figure show mainly solid line and
The planar graph of dotted line composition, the figure is after completing, it is impossible to any change or conversion are made to it, is only capable of playing exhibition
It is shown as using, the further explanation for teacher does not have booster action then.The function of obvious this educational aid is more single, no
Consumer's Experience likability can be lifted well.
The content of the invention
In view of this, it is an object of the invention to propose a kind of regular prism plane display method and device, it can be realized pair
Regular prism planar graph carries out the function of further map function, preferably aids in the teaching process of teacher, improves user
Experience.
Based on a kind of above-mentioned purpose regular prism plane display method provided by the invention, including:
Receiving plane shows the instruction of arbitrary initial state regular prism planar graph;
Obtain the plane coordinates on original state regular prism planar graph bottom surface Zhong Ge summits;
Two bottom surfaces summit of the maximum absolute value of the difference of the x coordinate value on any two bottom surface summit is calculated, with this
The bottom surface summit being calculated is as reference vertex;
All bottom surface summits of the y-coordinate value more than the y-coordinate value of described two reference vertex are calculated, are calculated with this
The bottom surface summit arrived is as empty summit;
By with least one original state regular prism plan for one of its end points in all empty summits
The side of shape is shown as dotted line, and remaining side is shown as solid line;
Receive figure rotation instruction;
Regular prism planar graph after instruction display rotates about the axis thereof certain angle is rotated according to the figure.
In some embodiments, it is described that the positive rib after instruction display rotates to an angle is rotated according to the figure
Also include after the step of post:
Obtain the new plane coordinates on the postrotational regular prism planar graph bottom surface Zhong Ge summits;
Two bottom surfaces top of the maximum absolute value of the difference of the new x coordinate value on any two bottom surface summit is calculated
Point, new reference vertex is used as using the bottom surface summit that this is calculated;
All bottom surface summits of the y-coordinate value more than the new y-coordinate value of the new reference vertex are calculated, in terms of this
Obtained bottom surface summit is as new empty summit;
It will be put down with least one postrotational regular prism for one of its end points in all new empty summits
The side of face figure is shown as dotted line, and other sides are shown as solid line.
In some embodiments, include before the step of reception figure rotation instruction:By the regular prism plane
One of figure bottom surface summit is set to rotation control point;
The step of reception figure rotation instruction, includes:
Obtain the sliding path at the rotation control point;
Direction of rotation and the rotation of the regular prism planar graph are calculated according to the rotation control point sliding path
Angle.
In some embodiments, it is described that the regular prism plane is calculated according to the rotation control point sliding path
Also include after the step of direction of rotation of figure and the anglec of rotation:
The rotation control is calculated according to the direction of rotation of the obtained regular prism planar graph and the anglec of rotation
The new plane coordinates of point;
Regular prism planar graph is repainted according to the new plane coordinates at the rotation control point;
Obtain the postrotational regular prism planar graph.
In some embodiments, it is described by with least one for described in one of its end points in all empty summits
Also include after the step of side of original state regular prism planar graph is shown as dotted line, and remaining side is shown as solid line:
The color treatments that the original state regular prism planar graph is shown as to the side of dotted line are mark color.
In some embodiments, it is described by with least one in all new empty summits for one of its end points
Also include after the step of side of the postrotational regular prism planar graph is shown as dotted line, and other sides are shown as solid line:
The original state regular prism planar graph is calculated according to the rotation control point sliding path and is shown as empty
The side of line rotate to an angle after new position, and be the mark color by its color treatments.
In some embodiments, it is described by with least one for described in one of its end points in all empty summits
Also include after the step of side of original state regular prism planar graph is shown as dotted line, and remaining side is shown as solid line:
The side that dotted line is shown as to the original state regular prism planar graph carries out flicker effect processing.
In some embodiments, it is described by with least one in all new empty summits for one of its end points
Also include after the step of side of the postrotational regular prism planar graph is shown as dotted line, and other sides are shown as solid line:
The side that dotted line is shown as to the postrotational regular prism planar graph carries out flicker effect processing.
In some embodiments, the regular prism plane display method also includes:
At least one shape control point is distributed for regular prism planar graph;
Obtain the sliding path of the shape control point;
The deformation vectors of the regular prism planar graph are calculated according to the shape control point sliding path;
The regular prism planar graph is repainted according to the deformation vectors.
In some embodiments, the bar number on the side of the regular prism bottom surface is more than or equal to 4.
Present invention also offers a kind of regular prism flat display apparatus, including:
Receiving module, show the instruction of arbitrary initial state regular prism planar graph for receiving plane and receive figure rotation
Turn instruction;
Computing module, two of the maximum absolute value of the difference of the x coordinate value for any two bottom surface summit to be calculated
Bottom surface summit, the bottom surface summit being calculated using this are used as reference vertex;And y-coordinate value is calculated more than described two
All bottom surface summits of the y-coordinate value of reference vertex, the bottom surface summit being calculated using this are used as empty summit;
Processing module, described in being obtained according to the instruction of receiving plane display arbitrary initial state regular prism planar graph
The plane coordinates on original state regular prism planar graph bottom surface Zhong Ge summits;Obtain with least one in all empty summits
For the position on the side of the original state regular prism planar graph of one of its end points;And instruction meter is rotated according to the figure
Calculation obtains the anglec of rotation of original state regular prism planar graph;
Display module, for by with least one original state for one of its end points in all empty summits
The side of regular prism planar graph is shown as dotted line, and remaining side is shown as solid line;And display rotates about the axis thereof certain angle
Regular prism planar graph afterwards.
In some embodiments, the processing module be additionally operable to according to figure rotate instruction obtain it is described it is postrotational just
The new plane coordinates on prism planar graph bottom surface Zhong Ge summits;And obtain with all new empty summits at least
The position on the side of one postrotational regular prism planar graph for one of its end points;
The computing module is additionally operable to be calculated the absolute of the difference of the new x coordinate value on any two bottom surface summit
It is worth maximum two bottom surfaces summit, new reference vertex is used as using the bottom surface summit that this is calculated;And y seats are calculated
Scale value is more than all bottom surface summits of the new y-coordinate value of the new reference vertex, and the bottom surface summit being calculated with this is made
For new empty summit;
The display module is additionally operable to at least one institute for one of its end points in all new empty summits
The side for stating postrotational regular prism planar graph is shown as dotted line, and other sides are shown as solid line.
In some embodiments, the processing module is additionally operable to the regular prism planar graph bottom surface summit wherein
One of be set to rotation control point;The display module is additionally operable to the rotation dominating pair of vertices should be shown in the regular prism plane
The relevant position of figure;
The receiving module is additionally operable to obtain the sliding path at the rotation control point;
The computing module is additionally operable to that the regular prism plan is calculated according to the rotation control point sliding path
The direction of rotation of shape and the anglec of rotation.
In some embodiments, the computing module is additionally operable to the rotation according to the obtained regular prism planar graph
The new plane coordinates at the rotation control point is calculated in direction and the anglec of rotation;The processing module is additionally operable to according to
The new plane coordinates at rotation control point repaints regular prism planar graph and obtains the postrotational regular prism plan
Shape.
In some embodiments, the processing module is additionally operable to the original state regular prism planar graph being shown as
The color treatments on the side of dotted line are mark color.
In some embodiments, the computing module is additionally operable to be calculated according to the rotation control point sliding path
The side that the original state regular prism planar graph is shown as dotted line rotate to an angle after new position;The processing module is also
The color treatments on the side for the original state regular prism planar graph of the new position to be shown as into dotted line are described
Mark color.
In some embodiments, the processing module is additionally operable to be shown as the original state regular prism planar graph
The side of dotted line carries out flicker effect processing.
In some embodiments, the processing module is additionally operable to be shown as the postrotational regular prism planar graph
The side of dotted line carries out flicker effect processing.
In some embodiments, the receiving module is additionally operable to obtain the sliding path of the shape control point;
The computing module is additionally operable to that the regular prism plan is calculated according to the shape control point sliding path
The deformation vectors of shape;
The processing module is additionally operable to distribute at least one shape control point for regular prism planar graph;And according to institute
State deformation vectors and repaint the regular prism planar graph.
In some embodiments, the bar number on the side of the regular prism bottom surface is more than or equal to 4.
From the above it can be seen that regular prism plane display method provided by the invention and device, pass through cleverly side
The plane coordinates for the regular prism planar graph midsole vertex of surface that formula contrast plane is shown, realize the aobvious of regular prism planar graph
Show;Further, according to the sliding path for judging rotation control point, calculate and contrast postrotational regular prism planar graph midsole
The plane coordinates of vertex of surface, it is achieved thereby that the display of postrotational regular prism planar graph;And it ensure that postrotational positive rib
In Column shape it cannot be seen that side be shown as dotted line all the time, can more vivo coordinate teaching process to show regular prism
Planar graph.
Further, can also be handled by entering line flicker to dotted line, to strengthen reminding effect, so as to attract the note of student
Meaning power;Preferably, also handled by the dotted line side in the regular prism planar graph by original state by identifying color, and follow-up
Postrotational regular prism planar graph in calculate its postrotational position and continue signal coloration processing (now dotted line
Possible or dotted line after side is rotated, it is also possible to be changed into solid line), the side being blocked at the beginning with playing displaying regular prism is rotating
Afterwards or after not being blocked effect, play a part of preferably aided education explanation.
Optionally, the deformation also by setting shape control point to realize to regular prism planar graph progress vertical and horizontal
Operation so that the content of courses is more abundant.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of one embodiment of regular prism plane display method provided by the invention;
Fig. 2 is the schematic flow sheet of another embodiment of regular prism plane display method provided by the invention;
Fig. 3 a are the original state quadrangular planar graph in regular prism plane display method embodiment provided by the invention
With rotate to an angle after quadrangular planar graph;
Fig. 3 b are the original state quadrangular planar graph in regular prism plane display method embodiment provided by the invention
With the quadrangular planar graph to rotate to an angle and after longitudinal deformation;
Fig. 3 c are the original state quadrangular planar graph in regular prism plane display method embodiment provided by the invention
With rotate to an angle, the quadrangular planar graph after longitudinal deformation and transverse deformation;
Fig. 4 is the structural representation of one embodiment of regular prism flat display apparatus provided by the invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with specific embodiment, and reference
Accompanying drawing, the present invention is described in more detail.
Refer to the attached drawing 1, it is the schematic flow sheet of one embodiment of regular prism plane display method provided by the invention;
The regular prism plane display method, including:
Step 101:Receiving plane shows the instruction of arbitrary initial state regular prism planar graph;
Step 102:Obtain the plane coordinates on original state regular prism planar graph bottom surface Zhong Ge summits;
Step 103:Two bottom surfaces top of the maximum absolute value of the difference of the x coordinate value on any two bottom surface summit is calculated
Point, the bottom surface summit being calculated using this are used as reference vertex;
Step 104:All bottom surface summits of the y-coordinate value more than the y-coordinate value of described two reference vertex are calculated, with
The bottom surface summit that this is calculated is as empty summit;
Step 105:By with least one positive rib of the original state for one of its end points in all empty summits
The side of Column shape is shown as dotted line, and remaining side is shown as solid line;
Step 106:Receive figure rotation instruction;
Step 107:Regular prism plan after instruction display rotates about the axis thereof certain angle is rotated according to the figure
Shape.
Further, the described the step of regular prism after instruction display rotates to an angle is rotated according to the figure
Also include afterwards:
Obtain the new plane coordinates on the postrotational regular prism planar graph bottom surface Zhong Ge summits;
Two bottom surfaces top of the maximum absolute value of the difference of the new x coordinate value on any two bottom surface summit is calculated
Point, new reference vertex is used as using the bottom surface summit that this is calculated;
All bottom surface summits of the y-coordinate value more than the new y-coordinate value of the new reference vertex are calculated, in terms of this
Obtained bottom surface summit is as new empty summit;
It will be put down with least one postrotational regular prism for one of its end points in all new empty summits
The side of face figure is shown as dotted line, and other sides are shown as solid line.
Optionally, include before the step of reception figure rotation instruction:The regular prism planar graph bottom surface is pushed up
One of point is set to rotation control point;
The step of reception figure rotation instruction, then includes:
Obtain the sliding path at the rotation control point;
Direction of rotation and the rotation of the regular prism planar graph are calculated according to the rotation control point sliding path
Angle.
Further, the rotation that the regular prism planar graph is calculated according to the rotation control point sliding path
Also include after the step of turning direction and the anglec of rotation:
The rotation control is calculated according to the direction of rotation of the obtained regular prism planar graph and the anglec of rotation
The new plane coordinates of point;
Regular prism planar graph is repainted according to the new plane coordinates at the rotation control point;
Obtain the postrotational regular prism planar graph.
Preferably, it is described by with least one original state for one of its end points in all empty summits just
Also include after the step of side of prism planar graph is shown as dotted line, and remaining side is shown as solid line:By the original state
The color treatments that regular prism planar graph is shown as the side of dotted line are mark color.
Further, it is described by with least one rotation for one of its end points in all new empty summits
Also include after the step of side of regular prism planar graph afterwards is shown as dotted line, and other sides are shown as solid line:According to the rotation
Turn control point sliding path the side that the original state regular prism planar graph is shown as dotted line be calculated to rotate to an angle
New position afterwards, and be the mark color by its color treatments.
Optionally, it is described by with least one original state for one of its end points in all empty summits just
Also include after the step of side of prism planar graph is shown as dotted line, and remaining side is shown as solid line:To the original state
The side that regular prism planar graph is shown as dotted line carries out flicker effect processing.
Further, it is described by with least one rotation for one of its end points in all new empty summits
Also include after the step of side of regular prism planar graph afterwards is shown as dotted line, and other sides are shown as solid line:To the rotation
The side that regular prism planar graph afterwards is shown as dotted line carries out flicker effect processing.
Refer to the attached drawing 2, it is the schematic flow sheet of another embodiment of regular prism plane display method provided by the invention.
The regular prism plane display method, including:
Step 201:Receiving plane shows the instruction of arbitrary initial state regular prism planar graph;
Step 202:Obtain the plane coordinates on original state regular prism planar graph bottom surface Zhong Ge summits;
Step 203:Two bottom surfaces top of the maximum absolute value of the difference of the x coordinate value on any two bottom surface summit is calculated
Point, the bottom surface summit being calculated using this are used as reference vertex;
Step 204:All bottom surface summits of the y-coordinate value more than the y-coordinate value of described two reference vertex are calculated, with
The bottom surface summit that this is calculated is as empty summit;
Step 205:By with least one positive rib of the original state for one of its end points in all empty summits
The side of Column shape is shown as dotted line, and remaining side is shown as solid line;
Step 206:The color treatments that the original state regular prism planar graph is shown as to the side of dotted line are mark color;
Step 207:The side that dotted line is shown as to the original state regular prism planar graph carries out flicker effect processing;
Step 208:One of described regular prism planar graph bottom surface summit is set to rotation control point;
Step 209:Obtain the sliding path at the rotation control point;
Step 210:The rotation side of the regular prism planar graph is calculated according to the rotation control point sliding path
To and the anglec of rotation;
Step 211:According to being calculated the direction of rotation of the obtained regular prism planar graph and the anglec of rotation
Rotate the new plane coordinates at control point;
Step 212:Regular prism planar graph is repainted according to the new plane coordinates at the rotation control point;
Step 213:Obtain the postrotational regular prism planar graph;
Step 214:The original state regular prism planar graph is calculated according to the rotation control point sliding path
Be shown as dotted line side rotate to an angle after new position, and be the mark color by its color treatments;
Step 215:Regular prism plan after instruction display rotates about the axis thereof certain angle is rotated according to the figure
Shape;
Step 216:Obtain the new plane coordinates on the postrotational regular prism planar graph bottom surface Zhong Ge summits;
Step 217:It is calculated the two of the maximum absolute value of the difference of the new x coordinate value on any two bottom surface summit
Individual bottom surface summit, new reference vertex is used as using the bottom surface summit that this is calculated;
Step 218:All bottom surfaces top of the y-coordinate value more than the new y-coordinate value of the new reference vertex is calculated
Point, new empty summit is used as using the bottom surface summit that this is calculated;
Step 219:By with least one for the described postrotational of one of its end points in all new empty summits
The side of regular prism planar graph is shown as dotted line, and other sides are shown as solid line;
Step 220:The side that dotted line is shown as to the postrotational regular prism planar graph carries out flicker effect processing.
Wherein, rotating a kind of optional embodiment of the acquisition of control point sliding path can be:
Obtain the click of rotation control point or touching instruction;
Continuously acquire the plane coordinates of the shift position at rotation control point;
Obtain releasing order for rotation control point;
Obtain rotating control point sliding path.
Put down referring to the drawings 3a for the original state quadrangular in regular prism plane display method embodiment provided by the invention
Face figure and the quadrangular planar graph after rotating to an angle;Including rotation control point A, longitudinal deformation control point B and
Transverse deformation control point C.Above-mentioned steps 201 are performed to step 220, can (i.e. bottom surface be just by the original state quadrangular in left side
Square cuboid) planar graph be changed into right side postrotational quadrangular planar graph.
Optionally, the regular prism plane display method also includes:
At least one shape control point is distributed for regular prism planar graph;
Obtain the sliding path of the shape control point;
The deformation vectors of the regular prism planar graph are calculated according to the shape control point sliding path;
The regular prism planar graph is repainted according to the deformation vectors.
Wherein, deformation vectors include longitudinal deformation vector sum transverse deformation vector.The acquisition of shape control point sliding path
Similar to the acquisition of rotation control point sliding path, will not be repeated here.
It is initial in regular prism plane display method embodiment respectively provided by the invention referring to the drawings 3b and accompanying drawing 3c
Quadrangular planar graph after state quadrangular planar graph and the simultaneously longitudinal deformation that rotates to an angle;And the rib of original state four
Column shape and rotate to an angle, the quadrangular planar graph after longitudinal deformation and transverse deformation;Controlled including rotation
Make point A, longitudinal deformation control point B and transverse deformation control point C.
, can be by a left side after performing step 201 to the step of step 220 and above-mentioned optional regular prism plane display method
Original state quadrangular (i.e. bottom surface is square cuboid) planar graph of side is changed into rotating to an angle simultaneously for right side
After longitudinal deformation and rotate to an angle, the quadrangular planar graph after longitudinal deformation and transverse deformation.
Preferably, the bar number on the side of the regular prism bottom surface is more than or equal to 4.Quadrangular in above-described embodiment is shown
Method, it is contemplated that the regular prism such as pentagonal prism, six prisms can realize that plane is shown using this method.
From above-described embodiment as can be seen that regular prism plane display method provided by the invention, passes through cleverly mode pair
The plane coordinates of the regular prism planar graph midsole vertex of surface shown than plane, realizes the display of regular prism planar graph;Enter
One step, according to the sliding path for judging rotation control point, calculate and contrast bottom surface in postrotational regular prism planar graph and push up
The plane coordinates of point, it is achieved thereby that the display of postrotational regular prism planar graph;And it ensure that postrotational regular prism is put down
In the figure of face it cannot be seen that side be shown as dotted line all the time, can more vivo coordinate teaching process to show regular prism plane
Figure.
Further, can also be handled by entering line flicker to dotted line, to strengthen reminding effect, so as to attract the note of student
Meaning power;Preferably, also handled by the dotted line side in the regular prism planar graph by original state by identifying color, and follow-up
Postrotational regular prism planar graph in calculate its postrotational position and continue signal coloration processing (now dotted line
Possible or dotted line after side is rotated, it is also possible to be changed into solid line), the side being blocked at the beginning with playing displaying regular prism is rotating
Afterwards or after not being blocked effect, play a part of preferably aided education explanation.
Optionally, the deformation also by setting shape control point to realize to regular prism planar graph progress vertical and horizontal
Operation so that the content of courses is more abundant.
It is important to note that each step in above-mentioned regular prism plane display method embodiment can be handed over mutually
Pitch, replace, increase, delete, therefore, these rational permutation and combination become alternatively should also be as belonging in regular prism plane display method
Protection scope of the present invention, and protection scope of the present invention should not be confined on the embodiment.
Present invention also offers a kind of regular prism flat display apparatus, refer to the attached drawing 4 is that regular prism provided by the invention is put down
The structural representation of one embodiment of flat-panel display device.
The regular prism flat display apparatus 400, including:
Receiving module 401, show the instruction of arbitrary initial state regular prism planar graph for receiving plane and receive figure
Shape rotation instruction;
Computing module 402, the two of the maximum absolute value of the difference of the x coordinate value for any two bottom surface summit to be calculated
Individual bottom surface summit, the bottom surface summit being calculated using this are used as reference vertex;And y-coordinate value is calculated more than described two
All bottom surface summits of the y-coordinate value of individual reference vertex, the bottom surface summit being calculated using this are used as empty summit;
Processing module 403, for showing that the instruction of arbitrary initial state regular prism planar graph obtains according to receiving plane
The plane coordinates on original state regular prism planar graph bottom surface Zhong Ge summits;Obtain with all empty summits at least
The position on the side of one original state regular prism planar graph for one of its end points;And referred to according to figure rotation
The anglec of rotation of original state regular prism planar graph is calculated in order;
Display module 404, for by with least one for the described initial of one of its end points in all empty summits
The side of state regular prism planar graph is shown as dotted line, and remaining side is shown as solid line;And display rotates about the axis thereof necessarily
Regular prism planar graph after angle.
Further, the processing module 403 is additionally operable to obtain the postrotational regular prism according to figure rotation instruction
The new plane coordinates on planar graph bottom surface Zhong Ge summits;And obtain with least one in all new empty summits
For the position on the side of the postrotational regular prism planar graph of one of its end points;
The computing module 402 is additionally operable to be calculated the difference of the new x coordinate value on any two bottom surface summit
Two bottom surfaces summit of maximum absolute value, new reference vertex is used as using the bottom surface summit that this is calculated;And it is calculated
Y-coordinate value is more than all bottom surface summits of the new y-coordinate value of the new reference vertex, the bottom surface summit being calculated with this
As new empty summit;
The display module 404 be additionally operable to by with least one in all new empty summits for one of its end points
The side of the postrotational regular prism planar graph is shown as dotted line, and other sides are shown as solid line.
Optionally, the processing module 403 is additionally operable to put on one of described regular prism planar graph bottom surface summit
To rotate control point;The display module 404 is additionally operable to the rotation dominating pair of vertices should be shown in the regular prism plan
The relevant position of shape;
The receiving module 401 is additionally operable to obtain the sliding path at the rotation control point;
The computing module 402 is additionally operable to that the regular prism plane is calculated according to the rotation control point sliding path
The direction of rotation of figure and the anglec of rotation.
Further, the computing module 402 is additionally operable to the direction of rotation according to the obtained regular prism planar graph
And the new plane coordinates at the rotation control point is calculated in the anglec of rotation;The processing module 403 is additionally operable to according to
The new plane coordinates at rotation control point repaints regular prism planar graph and obtains the postrotational regular prism plan
Shape.
Preferably, the processing module 403 is additionally operable to the original state regular prism planar graph being shown as dotted line
The color treatments on side are mark color.
Further, the computing module 402 is additionally operable to according to being calculated the rotation control point sliding path
Original state regular prism planar graph be shown as dotted line side rotate to an angle after new position;The processing module 403 is also
The color treatments on the side for the original state regular prism planar graph of the new position to be shown as into dotted line are described
Mark color.
Optionally, the processing module 403 is additionally operable to be shown as dotted line to the original state regular prism planar graph
Side carries out flicker effect processing.Further, the processing module 403 is additionally operable to the postrotational regular prism planar graph
The side for being shown as dotted line carries out flicker effect processing.
Preferably, the receiving module 401 is additionally operable to obtain the sliding path of the shape control point;
The computing module 402 is additionally operable to that the regular prism plane is calculated according to the shape control point sliding path
The deformation vectors of figure;
The processing module 403 is additionally operable to distribute at least one shape control point for regular prism planar graph;And foundation
The deformation vectors repaint the regular prism planar graph.
Optionally, the bar number on the side of the regular prism bottom surface is more than or equal to 4.
With reference to another embodiment of above-mentioned regular prism plane display method to the regular prism flat display apparatus
400 course of work is described in detail.
Referring to the drawings 2, for the schematic flow sheet of another embodiment of regular prism plane display method provided by the invention.
The regular prism plane display method, including:
Step 201:The receiving plane of receiving module 401 shows the instruction of arbitrary initial state regular prism planar graph;
Step 202:The processing module 403 shows the finger of arbitrary initial state regular prism planar graph according to receiving plane
So that the plane coordinates to original state regular prism planar graph bottom surface Zhong Ge summits;
Step 203:The absolute value of the difference of the x coordinate value on any two bottom surface summit is calculated in the computing module 402
Maximum two bottom surfaces summit, the bottom surface summit being calculated using this is used as reference vertex;
Step 204:Y-coordinate value is calculated more than the y-coordinate value of described two reference vertex in the computing module 402
All bottom surface summits, the bottom surface summit being calculated using this are used as empty summit;
Step 205:The processing module 403 is by with least one institute for one of its end points in all empty summits
The side for stating original state regular prism planar graph is shown as dotted line, and remaining side is shown as solid line;
Step 206:The original state regular prism planar graph is shown as the face on the side of dotted line by the processing module 403
Color processing is mark color;
Step 207:The side that the processing module 403 is shown as dotted line to the original state regular prism planar graph is carried out
Flicker effect processing;
Step 208:One of described regular prism planar graph bottom surface summit is set to rotation by the processing module 403
Control point;
Step 209:The receiving module 401 obtains the sliding path at the rotation control point;
Step 210:The computing module 402 is calculated the regular prism according to the rotation control point sliding path and put down
The direction of rotation of face figure and the anglec of rotation;
Step 211:Direction of rotation and the anglec of rotation of the computing module 402 according to the obtained regular prism planar graph
The new plane coordinates at the rotation control point is calculated in degree;
Step 212:The processing module 403 repaints regular prism according to the new plane coordinates at the rotation control point
Planar graph;
Step 213:The processing module 403 obtains the postrotational regular prism planar graph;
Step 214:The original state is calculated according to the rotation control point sliding path in the computing module 402
Regular prism planar graph be shown as dotted line side rotate to an angle after new position, the processing module 403 is by the new position
The color treatments that the original state regular prism planar graph at the place of putting is shown as the side of dotted line are the mark color;
Step 215:The display module 404 show around regular prism axis rotate to an angle after regular prism plan
Shape;
Step 216:The processing module 403 obtains the new of the postrotational regular prism planar graph bottom surface Zhong Ge summits
Plane coordinates;
Step 217:The difference of the new x coordinate value on any two bottom surface summit is calculated in the computing module 402
Maximum absolute value two bottom surfaces summit, new reference vertex is used as using the bottom surface summit that this is calculated;
Step 218:The new y-coordinate that y-coordinate value is more than the new reference vertex is calculated in the computing module 402
All bottom surface summits of value, new empty summit is used as using the bottom surface summit that this is calculated;
Step 219:The processing module 403 is by with least one for one of its end points in all new empty summits
The side of the postrotational regular prism planar graph be shown as dotted line, other sides are shown as solid line;
Step 220:The side that the processing module 403 is shown as dotted line to the postrotational regular prism planar graph is carried out
Flicker effect processing.
From above-described embodiment as can be seen that regular prism flat display apparatus provided by the invention, passes through cleverly mode pair
The plane coordinates of the regular prism planar graph midsole vertex of surface shown than plane, realizes the display of regular prism planar graph;Enter
One step, according to the sliding path for judging rotation control point, calculate and contrast bottom surface in postrotational regular prism planar graph and push up
The plane coordinates of point, it is achieved thereby that the display of postrotational regular prism planar graph;And it ensure that postrotational regular prism is put down
In the figure of face it cannot be seen that side be shown as dotted line all the time, can more vivo coordinate teaching process to show regular prism plane
Figure.
Further, can also be handled by entering line flicker to dotted line, to strengthen reminding effect, so as to attract the note of student
Meaning power;Preferably, also handled by the dotted line side in the regular prism planar graph by original state by identifying color, and follow-up
Postrotational regular prism planar graph in calculate its postrotational position and continue signal coloration processing (now dotted line
Possible or dotted line after side is rotated, it is also possible to be changed into solid line), the side being blocked at the beginning with playing displaying regular prism is rotating
Afterwards or after not being blocked effect, play a part of preferably aided education explanation.
Optionally, the deformation also by setting shape control point to realize to regular prism planar graph progress vertical and horizontal
Operation so that the content of courses is more abundant.
It is important to note that the embodiment of above-mentioned regular prism flat display apparatus use only the regular prism plane
The embodiment of display methods illustrates the course of work of each module, those skilled in the art can it is readily conceivable that by this
A little module applications are into the other embodiment of the regular prism plane display method.Certainly, because the regular prism plane is shown
Each step in embodiment of the method can be intersected, replaces, increases, deleted, and therefore, these rational permutation and combination become
It alternatively should also be as belonging to protection scope of the present invention in the regular prism flat display apparatus, and should not be by the protection of the present invention
Scope is confined on the embodiment.
Those of ordinary skills in the art should understand that:The specific embodiment of the present invention is the foregoing is only, and
The limitation present invention is not used in, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc.,
It should be included within protection scope of the present invention.
Claims (20)
- A kind of 1. regular prism plane display method, it is characterised in that including:Receiving plane shows the instruction of arbitrary initial state regular prism planar graph;Obtain the plane coordinates on original state regular prism planar graph bottom surface Zhong Ge summits;Two bottom surfaces summit of the maximum absolute value of the difference of the x coordinate value on any two bottom surface summit is calculated, with the calculating Obtained bottom surface summit is as reference vertex;All bottom surface summits of the y-coordinate value more than the y-coordinate value of described two reference vertex are calculated, are calculated with this Bottom surface summit is as empty summit;By with least one original state regular prism planar graph for one of its end points in all empty summits While being shown as dotted line, remaining side is shown as solid line;Receive figure rotation instruction;Regular prism planar graph after instruction display rotates about the axis thereof certain angle is rotated according to the figure.
- 2. according to the method for claim 1, it is characterised in that described rotated according to the figure instructs display rotation certain Also include after the step of regular prism after angle:Obtain the new plane coordinates on the postrotational regular prism planar graph bottom surface Zhong Ge summits;Two bottom surfaces summit of the maximum absolute value of the difference of the new x coordinate value on any two bottom surface summit is calculated, New reference vertex is used as using the bottom surface summit that this is calculated;All bottom surface summits of the y-coordinate value more than the new y-coordinate value of the new reference vertex are calculated, are calculated with this The bottom surface summit arrived is as new empty summit;By with least one postrotational regular prism plan for one of its end points in all new empty summits The side of shape is shown as dotted line, and other sides are shown as solid line.
- 3. according to the method for claim 2, it is characterised in that include before the step of reception figure rotation instructs: One of described regular prism planar graph bottom surface summit is set to rotation control point;The step of reception figure rotation instruction, includes:Obtain the sliding path at the rotation control point;Direction of rotation and the anglec of rotation of the regular prism planar graph are calculated according to the rotation control point sliding path.
- 4. according to the method for claim 3, it is characterised in that described to be calculated according to the rotation control point sliding path Also include to after the step of the direction of rotation of the regular prism planar graph and the anglec of rotation:The rotation control point is calculated according to the direction of rotation of the obtained regular prism planar graph and the anglec of rotation New plane coordinates;Regular prism planar graph is repainted according to the new plane coordinates at the rotation control point;Obtain the postrotational regular prism planar graph.
- 5. according to the method for claim 4, it is characterised in that described to be with least one in all empty summits The step of side of the original state regular prism planar graph of one of its end points is shown as dotted line, and remaining side is shown as solid line Also include afterwards:The color treatments that the original state regular prism planar graph is shown as to the side of dotted line are mark color.
- 6. according to the method for claim 5, it is characterised in that described by with least one in all new empty summits The side of the individual postrotational regular prism planar graph for one of its end points is shown as dotted line, and other sides are shown as the step of solid line Also include after rapid:The original state regular prism planar graph is calculated according to the rotation control point sliding path and is shown as dotted line While the new position after rotating to an angle, and be the mark color by its color treatments.
- 7. according to the method for claim 6, it is characterised in that described to be with least one in all empty summits The step of side of the original state regular prism planar graph of one of its end points is shown as dotted line, and remaining side is shown as solid line Also include afterwards:The side that dotted line is shown as to the original state regular prism planar graph carries out flicker effect processing.
- 8. according to the method for claim 7, it is characterised in that described by with least one in all new empty summits The side of the individual postrotational regular prism planar graph for one of its end points is shown as dotted line, and other sides are shown as the step of solid line Also include after rapid:The side that dotted line is shown as to the postrotational regular prism planar graph carries out flicker effect processing.
- 9. according to the method described in claim 1-8 any one, it is characterised in that the regular prism plane display method also wraps Include:At least one shape control point is distributed for regular prism planar graph;Obtain the sliding path of the shape control point;The deformation vectors of the regular prism planar graph are calculated according to the shape control point sliding path;The regular prism planar graph is repainted according to the deformation vectors.
- 10. according to the method described in claim 1-8 any one, it is characterised in that the bar number on the side of the regular prism bottom surface More than or equal to 4.
- A kind of 11. regular prism flat display apparatus, it is characterised in that including:Receiving module, show that the instruction of arbitrary initial state regular prism planar graph and reception figure rotation refer to for receiving plane Order;Computing module, two bottom surfaces of the maximum absolute value of the difference of the x coordinate value for any two bottom surface summit to be calculated Summit, the bottom surface summit being calculated using this are used as reference vertex;And y-coordinate value is calculated and is more than described two benchmark All bottom surface summits of the y-coordinate value on summit, the bottom surface summit being calculated using this are used as empty summit;Processing module, the instruction for showing arbitrary initial state regular prism planar graph according to receiving plane obtain described initial The plane coordinates on state regular prism planar graph bottom surface Zhong Ge summits;Obtain with least one for it in all empty summits The position on the side of the original state regular prism planar graph of one of end points;And instruction is rotated according to the figure and calculated To the anglec of rotation of original state regular prism planar graph;Display module, for by with least one positive rib of the original state for one of its end points in all empty summits The side of Column shape is shown as dotted line, and remaining side is shown as solid line;And after display rotates about the axis thereof certain angle Regular prism planar graph.
- 12. device according to claim 11, it is characterised in that the processing module is additionally operable to be rotated according to figure and instructed Obtain the new plane coordinates on the postrotational regular prism planar graph bottom surface Zhong Ge summits;And obtain with all described The position on the side of at least one postrotational regular prism planar graph for one of its end points in new empty summit;The computing module is additionally operable to be calculated the absolute value of the difference of the new x coordinate value on any two bottom surface summit most Big two bottom surfaces summit, new reference vertex is used as using the bottom surface summit that this is calculated;And y-coordinate value is calculated More than all bottom surface summits of the new y-coordinate value of the new reference vertex, using the bottom surface summit that this is calculated as newly Empty summit;The display module is additionally operable to at least one rotation for one of its end points in all new empty summits The side of regular prism planar graph after turning is shown as dotted line, and other sides are shown as solid line.
- 13. device according to claim 12, it is characterised in that the processing module is additionally operable to the regular prism plane One of figure bottom surface summit is set to rotation control point;The display module is additionally operable to that the rotation dominating pair of vertices should be shown It is shown in the relevant position of the regular prism planar graph;The receiving module is additionally operable to obtain the sliding path at the rotation control point;The computing module is additionally operable to that the regular prism planar graph is calculated according to the rotation control point sliding path Direction of rotation and the anglec of rotation.
- 14. device according to claim 13, it is characterised in that the computing module be additionally operable to according to obtain it is described just The new plane coordinates at the rotation control point is calculated in the direction of rotation of prism planar graph and the anglec of rotation;The processing Module is additionally operable to repaint regular prism planar graph according to the new plane coordinates at the rotation control point and obtains the rotation Regular prism planar graph after turning.
- 15. device according to claim 14, it is characterised in that the processing module is additionally operable to the original state just The color treatments that prism planar graph is shown as the side of dotted line are mark color.
- 16. device according to claim 15, it is characterised in that the computing module is additionally operable to be controlled according to the rotation Point sliding path is calculated new after the side that the original state regular prism planar graph is shown as dotted line rotates to an angle Position;The processing module is additionally operable to the original state regular prism planar graph of the new position being shown as dotted line The color treatments on side are the mark color.
- 17. device according to claim 16, it is characterised in that the processing module is additionally operable to the original state just The side that prism planar graph is shown as dotted line carries out flicker effect processing.
- 18. device according to claim 17, it is characterised in that the processing module be additionally operable to it is described it is postrotational just The side that prism planar graph is shown as dotted line carries out flicker effect processing.
- 19. according to the device described in claim 11-18 any one, it is characterised in thatThe receiving module is additionally operable to obtain the sliding path of shape control point;The computing module is additionally operable to be calculated the shape of the regular prism planar graph according to the sliding path of shape control point Variable vector;The processing module is additionally operable to distribute at least one shape control point for regular prism planar graph;And according to the shape Variable vector repaints the regular prism planar graph.
- 20. according to the device described in claim 11-18 any one, it is characterised in that the bar on the side of the regular prism bottom surface Number is more than or equal to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310681420.6A CN104715452B (en) | 2013-12-12 | 2013-12-12 | Regular prism plane display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310681420.6A CN104715452B (en) | 2013-12-12 | 2013-12-12 | Regular prism plane display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104715452A CN104715452A (en) | 2015-06-17 |
CN104715452B true CN104715452B (en) | 2017-12-15 |
Family
ID=53414747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310681420.6A Active CN104715452B (en) | 2013-12-12 | 2013-12-12 | Regular prism plane display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104715452B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239187B (en) * | 2017-05-04 | 2020-02-21 | 广州视源电子科技股份有限公司 | Method, device and equipment for displaying three-dimensional graph |
CN107422952B (en) * | 2017-05-04 | 2019-04-09 | 广州视源电子科技股份有限公司 | Method, device and equipment for displaying three-dimensional graph |
CN107526563B (en) * | 2017-08-24 | 2021-04-06 | 广州视源电子科技股份有限公司 | Three-dimensional graph display method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6292197B1 (en) * | 1998-03-04 | 2001-09-18 | J. Willem R. Langelaan | Computer graphics system for modeling objects that include segments of an intersection of a modular matrix of rectangles and an elliptic, a lenticular or a rhombic segment |
CN101625765A (en) * | 2009-08-18 | 2010-01-13 | 上海可鲁系统软件有限公司 | Method for drawing rotating elliptical arc |
CN101719057A (en) * | 2009-11-27 | 2010-06-02 | 广东威创视讯科技股份有限公司 | Method and device for drawing geometric figures |
CN102663805A (en) * | 2012-04-18 | 2012-09-12 | 东华大学 | Projection-based view frustum cutting method |
CN103136767A (en) * | 2011-11-24 | 2013-06-05 | 北京图盟科技有限公司 | Vector diagram drawing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7317450B2 (en) * | 2003-09-26 | 2008-01-08 | Khomo Malome T | Spatial chirographic sign reader |
-
2013
- 2013-12-12 CN CN201310681420.6A patent/CN104715452B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6292197B1 (en) * | 1998-03-04 | 2001-09-18 | J. Willem R. Langelaan | Computer graphics system for modeling objects that include segments of an intersection of a modular matrix of rectangles and an elliptic, a lenticular or a rhombic segment |
CN101625765A (en) * | 2009-08-18 | 2010-01-13 | 上海可鲁系统软件有限公司 | Method for drawing rotating elliptical arc |
CN101719057A (en) * | 2009-11-27 | 2010-06-02 | 广东威创视讯科技股份有限公司 | Method and device for drawing geometric figures |
CN103136767A (en) * | 2011-11-24 | 2013-06-05 | 北京图盟科技有限公司 | Vector diagram drawing method and device |
CN102663805A (en) * | 2012-04-18 | 2012-09-12 | 东华大学 | Projection-based view frustum cutting method |
Also Published As
Publication number | Publication date |
---|---|
CN104715452A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Rashevska et al. | Using augmented reality tools in the teaching of two-dimensional plane geometry | |
Yang et al. | Effects of gender differences and spatial abilities within a digital pentominoes game | |
Bharathi et al. | Investigating the impact of interactive immersive virtual reality environments in enhancing task performance in online engineering design activities | |
CN104517489A (en) | Virtual experiment table used for teaching | |
CN105278685A (en) | Assistant instructing system and assistant instructing system method based on EON | |
CN104715452B (en) | Regular prism plane display method and device | |
CN103760981B (en) | A kind of magnetic field visualization and exchange method | |
Gao et al. | Artificial landmarks to facilitate spatial learning and recalling for curved visual wall layout in virtual reality | |
Yan et al. | Multitouching the fourth dimension | |
CN104464390A (en) | Body feeling education system | |
JP2018041192A (en) | Image processing device, image processing method, and image processing program | |
Tan et al. | Projectagami: A foldable mobile device with shape interactive applications | |
Anastassova et al. | Learner-centered evaluation of an augmented reality system for embedded engineering education | |
Hiyama et al. | Augmented reality system for measuring and learning tacit artisan skills | |
Yan | Augmented reality applied to lego construction: Ar-based building instructions with high accuracy & precision and realistic object-hand occlusions | |
Karaibryamov et al. | Educational Software for Interactive Training of Students on the Theme" Mutual Intersecting of Pyramids and Prisms in Axonometry". | |
Cao et al. | Hand controlar: An augmented reality application for learning 3d geometry | |
Aldosari et al. | Using haptic technology for education in chemistry | |
KR102396657B1 (en) | Education Card Unit of Mathematics | |
JP4589697B2 (en) | Program, information storage medium, and figure similarity determination device | |
CN108053492A (en) | Method, device and equipment for presenting expansion process of three-dimensional graph and storage medium | |
CN205486879U (en) | Electron compasses system and electromagnetism compasses, electron terminal thereof | |
Doblack et al. | The emergence of immersive low-cost 3D virtual reality environments for interactive learning in materials science and engineering | |
CN108091186B (en) | Teaching method and teaching system | |
Wei | Virtual Industrial Robot Palletizing Workstation Based on Augmented Reality Technology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C Patentee after: Hitevision Polytron Technologies Inc Address before: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C Patentee before: HONGHE TECHNOLOGY CO., LTD. |
|
CP01 | Change in the name or title of a patent holder |