CN106033409B - A kind of vertex edit method and device - Google Patents

A kind of vertex edit method and device Download PDF

Info

Publication number
CN106033409B
CN106033409B CN201510125113.9A CN201510125113A CN106033409B CN 106033409 B CN106033409 B CN 106033409B CN 201510125113 A CN201510125113 A CN 201510125113A CN 106033409 B CN106033409 B CN 106033409B
Authority
CN
China
Prior art keywords
vertex
chosen
traversed
ordinate
auxiliary line
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
Application number
CN201510125113.9A
Other languages
Chinese (zh)
Other versions
CN106033409A (en
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201510125113.9A priority Critical patent/CN106033409B/en
Publication of CN106033409A publication Critical patent/CN106033409A/en
Application granted granted Critical
Publication of CN106033409B publication Critical patent/CN106033409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of the invention discloses a kind of vertex edit method and devices, when solving the vertex of editing graph, whether the relationship that vertex position can only be compared between vertex and vertex when adjusting by naked eyes is appropriate, such as the lateral position of A point is if desired snapped into A point, it can only be by visually judging whether to be aligned, the technical issues of inexactness of caused editing graph, increase experience property.Whether the vertex edit method of the embodiment of the present invention includes: to judge in looping through process at a distance from the vertex traversed and the vertex chosen in preset pixel, if, the starting point that vertex auxiliary line is then arranged is the apex coordinate traversed, and terminal is the apex coordinate chosen;Generate the vertex auxiliary line corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen.

Description

A kind of vertex edit method and device
Technical field
The present invention relates to computer field more particularly to a kind of vertex edit method and devices.
Background technique
In OFFICE office software, such as word text, PowerPoint (PPT) etc., it usually needs using figure to text Originally or manuscript carries out visual intuitive description, and with popularizing for office automation, office software is more and more diversified, presently the most Popularization be text and pattern combination, result caused by the design effect of office software is closely bound up, especially does The graphical interfaces of public software is the most intuitive, therefore, by liking for every profession and trade.
Existing office software needs to establish a variety of graphic models, such as figure is established by way of vertex edit.
However above-mentioned vertex edit mode can only be right by naked eyes when vertex position is adjusted when the vertex of editing graph It is whether more appropriate than the relationship between vertex and vertex, such as the lateral position of A point is if desired snapped into A point, meat can only be passed through The technical issues of eye judges whether to be aligned, not only reduces experience property, and result in the inexactness of editing graph.
Summary of the invention
The embodiment of the invention provides a kind of vertex edit method and devices, when solving the vertex of editing graph, vertex Whether the relationship that position can only be compared between vertex and vertex when adjusting by naked eyes is appropriate, such as if desired by the transverse direction of A point Aligned in position to A point, can only by visually judging whether to be aligned, the technical issues of the inexactness of caused editing graph, Increase experience property.
A kind of vertex edit method provided in an embodiment of the present invention, comprising:
Judge in looping through process at a distance from the vertex traversed and the vertex chosen whether in preset pixel, if It is that the starting point of vertex auxiliary line is then set for the apex coordinate traversed, the apex coordinate that terminal is chosen for described in;
It generates corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen The vertex auxiliary line.
Preferably, judge the vertex traversed in looping through process at a distance from the vertex chosen whether in preset picture In element, if so, the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is that the vertex chosen is sat Mark specifically includes:
Judge in looping through process the vertex abscissa that traverses at a distance from the vertex abscissa chosen whether In preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the vertex ordinate traversed, terminal is described The vertex ordinate chosen.
Preferably, judge the vertex abscissa traversed in looping through process at a distance from the vertex abscissa chosen Whether in preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the vertex ordinate traversed, terminal It is specifically included for the vertex ordinate chosen:
Judge be at a distance from the vertex abscissa that traverses is chosen with interface in looping through process vertex abscissa It is no in preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the vertex ordinate traversed, terminal is The vertex ordinate chosen, and ordinate judgment step is triggered, if it is not, then triggering the ordinate judgment step;
The triggering ordinate judgment step is to judge the vertex ordinate traversed in looping through process and choose Vertex ordinate distance whether in the preset pixel, if so, the starting point that the vertex auxiliary line is arranged is described The vertex abscissa traversed, terminal are the vertex abscissa chosen.
Preferably, judge the vertex traversed in looping through process at a distance from the vertex chosen whether in preset picture In element, if so, the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is that the vertex chosen is sat Before mark further include:
Vertex edit instruction is obtained, and enters vertex circulation process;
Judge whether the vertex being recycled to is selected state, if it is not, then carrying out next step.
Preferably, the preset pixel is 5 pixels.
A kind of vertex edit device provided in the embodiment of the present invention, comprising:
Judging unit, for judge in looping through process the vertex that traverses at a distance from the vertex chosen whether In preset pixel, if so, the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is described to be chosen Apex coordinate;
Generation unit, for generating cross corresponding with the apex coordinate traversed and the apex coordinate chosen To or the longitudinal vertex auxiliary line.
Preferably, the judging unit specifically includes:
Judgment sub-unit, the horizontal seat in vertex for judging the vertex abscissa traversed in looping through process with choosing Whether target distance is in preset pixel, if so, the starting point that the vertex auxiliary line is arranged is that the vertex traversed is vertical Coordinate, terminal are the vertex ordinate chosen.
Preferably, judgment sub-unit, specifically for the vertex abscissa for judging to traverse in looping through process and boundary Whether the distance for the vertex abscissa that face is chosen is in preset pixel, if so, the starting point of the vertex auxiliary line is arranged as institute The vertex ordinate traversed is stated, terminal is the vertex ordinate chosen, and triggers ordinate judgment step, if it is not, then Trigger the ordinate judgment step;
The triggering ordinate judgment step is to judge the vertex ordinate traversed in looping through process and choose Vertex ordinate distance whether in the preset pixel, if so, the starting point that the vertex auxiliary line is arranged is described The vertex abscissa traversed, terminal are the vertex abscissa chosen.
Preferably, the vertex edit device further include:
Acquiring unit for obtaining vertex edit instruction, and enters vertex circulation process;
First judging unit, for judging whether the vertex being recycled to is selected state, if it is not, it is single then to trigger the judgement Member.
Preferably, the preset pixel is 5 pixels.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
The embodiment of the invention provides a kind of vertex edit method and devices, wherein vertex edit method includes: to judge In searching loop process at a distance from the vertex traversed and the vertex chosen whether in preset pixel, if so, setting vertex The starting point of auxiliary line is the apex coordinate traversed, and terminal is the apex coordinate chosen;The apex coordinate that generates and traverse and The corresponding lateral or longitudinal vertex auxiliary line of the apex coordinate chosen.In the present embodiment, looped through by judging The vertex traversed in process at a distance from the vertex chosen whether in preset pixel, if so, setting vertex auxiliary line Starting point is the apex coordinate traversed, and terminal is the apex coordinate chosen;The apex coordinate for generating and traversing and the top chosen The corresponding lateral or longitudinal vertex auxiliary line of point coordinate, when just realizing graphics vertex editor, intelligently according to vertex Position show auxiliary line corresponding with fixed point, when solving the vertex of editing graph, vertex position adjust when can only pass through meat Whether the relationship between eye comparison vertex and vertex is appropriate, such as the lateral position of A point is if desired snapped to A point, Zhi Nengtong It crosses and visually judges whether to be aligned, the technical issues of the inexactness of caused editing graph, increase experience property.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of one embodiment of the vertex edit method provided in the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of another embodiment of the vertex edit method provided in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of one embodiment of the vertex edit device provided in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of another embodiment of the vertex edit device provided in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of vertex edit method and devices, when solving the vertex of editing graph, vertex Whether the relationship that position can only be compared between vertex and vertex when adjusting by naked eyes is appropriate, such as if desired by the transverse direction of A point Aligned in position to A point, can only by visually judging whether to be aligned, the technical issues of the inexactness of caused editing graph, Increase experience property.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, a kind of one embodiment of the vertex edit method provided in the embodiment of the present invention includes:
101, judge the vertex traversed in looping through process at a distance from the vertex chosen whether in preset pixel It is interior, if so, thening follow the steps 102;
In the present embodiment, when need opposite vertexes carry out accurate edits, and need automatically generate it is corresponding with vertex position auxiliary When index contour, need to judge the vertex traversed in looping through process at a distance from the vertex chosen whether in preset pixel It is interior, if so, thening follow the steps 102.
102, the starting point of vertex auxiliary line is arranged is the apex coordinate traversed, and terminal is the apex coordinate chosen;
When judging that the vertex that traverses is in preset pixel, then at a distance from the vertex chosen in looping through process Step 102 is executed, the starting point for needing to be arranged vertex auxiliary line is the apex coordinate traversed, and terminal is the apex coordinate chosen.
It should be noted that the vertex above-mentioned that traverse in process that loops through is pre- at a distance from the vertex chosen Setting can be first vertex looped through in pixel, or the vertex nearest with the vertex chosen.
103, the vertex corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen is generated Auxiliary line.
When the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is need after the apex coordinate chosen Generate the vertex auxiliary line corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen.
In the present embodiment, by judge in looping through process the vertex that traverses at a distance from the vertex chosen whether In preset pixel, if so, the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is that the vertex chosen is sat Mark;The vertex auxiliary line corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen is generated, just When realizing graphics vertex editor, auxiliary line corresponding with fixed point is intelligently shown according to the position on vertex, solves editor's figure When the vertex of shape, whether the relationship that can only be compared between vertex and vertex by naked eyes when vertex position is adjusted is appropriate, if such as Need the lateral position by A point to snap to A point, can only by visually judging whether to be aligned, caused editing graph it is not smart The technical issues of true property, increase experience property.
The above is that the process of opposite vertexes edit methods is described in detail, below will to judge loop through process in The vertex traversed at a distance from the vertex chosen whether in preset pixel, if so, setting vertex auxiliary line starting point be The apex coordinate traversed, terminal is that the process for the apex coordinate chosen is described in detail, referring to Fig. 2, the present invention is real Another embodiment for applying a kind of vertex edit method provided in example includes:
201, vertex edit instruction is obtained, and enters vertex circulation process;
In the present embodiment, when need opposite vertexes carry out accurate edits, and need automatically generate it is corresponding with vertex position auxiliary When index contour, vertex edit instruction is obtained, and enter vertex circulation process.
202, whether the vertex that judgement is recycled to is selected state, if it is not, thening follow the steps 203;
Vertex edit instruction is obtained, and is entered after the circulation process of vertex, needs to judge whether the vertex being recycled to is choosing Middle state, if it is not, thening follow the steps 203.
203, judge the vertex abscissa that the vertex abscissa that traverses and interface are chosen in looping through process away from From whether in preset pixel, if so, 204 are thened follow the steps, if it is not, thening follow the steps 205;
When the vertex for judging to be recycled to is selected state, need to judge the horizontal seat in vertex traversed in looping through process It marks at a distance from the vertex abscissa that interface is chosen whether in preset pixel, if so, 204 are thened follow the steps, if it is not, then executing Step 205.
204, the starting point of vertex auxiliary line is arranged is the vertex ordinate traversed, and terminal is the vertex ordinate chosen;
When judging at a distance from the vertex abscissa that traverses is chosen with interface in looping through process vertex ordinate In preset pixel, the starting point for needing to be arranged vertex auxiliary line is the vertex ordinate traversed, and terminal is the vertex cross chosen Coordinate.
205, judge the vertex ordinate traversed in looping through process is at a distance from the vertex ordinate chosen It is no in preset pixel, if so, thening follow the steps 206;
When judging at a distance from the vertex abscissa that traverses is chosen with interface in looping through process vertex abscissa After not in preset pixel, need to judge the vertex ordinate traversed in looping through process and the vertical seat in the vertex chosen Whether target distance is in preset pixel, if so, thening follow the steps 206.
206, the starting point of vertex auxiliary line is arranged is the vertex abscissa traversed, and terminal is the vertex abscissa chosen;
When judging in looping through process the vertex ordinate that traverses at a distance from the vertex ordinate chosen pre- It sets in pixel, then the starting point for needing to be arranged vertex auxiliary line is the vertex abscissa traversed, and terminal is the horizontal seat in vertex chosen Mark, it should be noted that aforementioned step 205 judges the vertex ordinate traversed in looping through process and the top chosen The distance of point ordinate then executes step 203 to next vertex not in preset pixel.
207, the vertex corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen is generated Auxiliary line.
When the starting point of the setting vertex auxiliary line of step 204 is the vertex ordinate traversed, terminal is the vertex chosen The starting point of the setting vertex auxiliary line of ordinate or step 206 is the vertex abscissa traversed, and terminal is the vertex cross chosen After coordinate, need to generate the vertex corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen Auxiliary line.
In the present embodiment, preset pixel above-mentioned is 5 pixels.
In the present embodiment, by judge in looping through process the vertex that traverses at a distance from the vertex chosen whether In preset pixel, if so, the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is that the vertex chosen is sat Mark;The vertex auxiliary line corresponding lateral or longitudinal with the apex coordinate traversed and the apex coordinate chosen is generated, just When realizing graphics vertex editor, auxiliary line corresponding with fixed point is intelligently shown according to the position on vertex, solves editor's figure When the vertex of shape, whether the relationship that can only be compared between vertex and vertex by naked eyes when vertex position is adjusted is appropriate, if such as Need the lateral position by A point to snap to A point, can only by visually judging whether to be aligned, caused editing graph it is not smart The technical issues of true property, increases experience property, meanwhile, the setting to auxiliary line of abscissa and ordinate is further accurate The function of vertex auxiliary.
Referring to Fig. 3, a kind of one embodiment of the vertex edit device provided in the embodiment of the present invention includes:
Judging unit 301, for judging that the vertex that traverses is at a distance from the vertex chosen in looping through process It is no in preset pixel, if so, the starting point of triggering the first setting unit 302 setting vertex auxiliary line is that the vertex that traverses is sat Mark, terminal is the apex coordinate chosen;
Generation unit 303, it is corresponding lateral with the apex coordinate traversed and the apex coordinate chosen for generating Or longitudinal vertex auxiliary line.
In the present embodiment, the vertex traversed in looping through process and the top chosen are judged by judging unit 301 Whether the distance of point is in preset pixel, if so, the starting point of triggering the first setting unit 302 setting vertex auxiliary line is traversal The apex coordinate arrived, terminal are the apex coordinate chosen, and generation unit 303 generates and the apex coordinate traversed and the top chosen The corresponding lateral or longitudinal vertex auxiliary line of point coordinate, when just realizing graphics vertex editor, intelligently according to vertex Position show auxiliary line corresponding with fixed point, when solving the vertex of editing graph, vertex position adjust when can only pass through meat Whether the relationship between eye comparison vertex and vertex is appropriate, such as the lateral position of A point is if desired snapped to A point, Zhi Nengtong It crosses and visually judges whether to be aligned, the technical issues of the inexactness of caused editing graph, increase experience property.
The above is that each unit of opposite vertexes editing device is described in detail, and sub-unit is carried out detailed retouch below It states, referring to Fig. 4, a kind of one embodiment of the vertex edit device provided in the embodiment of the present invention includes:
Acquiring unit 404 for obtaining vertex edit instruction, and enters vertex circulation process;
First judging unit 405 judges whether the vertex being recycled to is selected state, if it is not, then triggering judging unit 401。
Judging unit 401, for judge non-selected vertex at a distance from the vertex of selection whether in preset pixel, if It is then to trigger the first setting unit 402 starting point of vertex auxiliary line is arranged as first coordinate on the vertex of selection, terminal is to choose Vertex coordinate;
Judging unit 401 specifically includes:
Judgment sub-unit 4011, the vertex for judging the vertex abscissa traversed in looping through process with choosing Whether the distance of abscissa is in preset pixel, if so, the starting point of the first setting unit 402 setting vertex auxiliary line is traversal The vertex ordinate arrived, terminal are the vertex ordinate chosen.
Judgment sub-unit 4011 above-mentioned, specifically for judge in looping through process the vertex abscissa that traverses with Whether the distance for the vertex abscissa that interface is chosen is in preset pixel, if so, the first setting unit 402 setting vertex assists The starting point of line is the vertex ordinate traversed, and terminal is the vertex ordinate chosen, and triggers ordinate judgment step, if It is no, then trigger ordinate judgment step;
Triggering ordinate judgment step is the top for judging the vertex ordinate traversed in looping through process with choosing Whether the distance of point ordinate is in preset pixel, if so, the starting point of setting vertex auxiliary line is the horizontal seat in vertex traversed Mark, terminal is the vertex abscissa chosen.
Generation unit 403, it is corresponding lateral with the apex coordinate traversed and the apex coordinate chosen for generating Or longitudinal vertex auxiliary line.
Preset pixel above-mentioned is 5 pixels.
In the present embodiment, the vertex traversed in looping through process and the top chosen are judged by judging unit 401 Whether the distance of point is in preset pixel, if so, the starting point of triggering the first setting unit 402 setting vertex auxiliary line is traversal The apex coordinate arrived, terminal are the apex coordinate chosen, and generation unit 403 generates and the apex coordinate traversed and the top chosen The corresponding lateral or longitudinal vertex auxiliary line of point coordinate, when just realizing graphics vertex editor, intelligently according to vertex Position show auxiliary line corresponding with fixed point, when solving the vertex of editing graph, vertex position adjust when can only pass through meat Whether the relationship between eye comparison vertex and vertex is appropriate, such as the lateral position of A point is if desired snapped to A point, Zhi Nengtong It crosses and visually judges whether to be aligned, the technical issues of the inexactness of caused editing graph, increase experience property, meanwhile, it is horizontal The setting to auxiliary line of coordinate and ordinate, the further function of accurate vertex auxiliary.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (8)

1. a kind of vertex edit method characterized by comprising
Judge in looping through process at a distance from the vertex traversed and the vertex chosen whether in preset pixel, if so, The starting point that vertex auxiliary line is then arranged is the apex coordinate traversed, and terminal is the apex coordinate chosen;
It generates and corresponding lateral or longitudinal described of the apex coordinate traversed and the apex coordinate chosen Vertex auxiliary line;
Judge in looping through process at a distance from the vertex traversed and the vertex chosen whether in preset pixel, if so, The starting point that vertex auxiliary line is then arranged is the apex coordinate traversed, and terminal is that the apex coordinate chosen specifically wraps It includes:
Judge the vertex abscissa traversed in looping through process at a distance from the vertex abscissa chosen whether preset In pixel, if so, the starting point that the vertex auxiliary line is arranged is the vertex ordinate traversed, terminal is described chooses Vertex ordinate.
2. vertex edit method according to claim 1, which is characterized in that judge to traverse in looping through process Vertex abscissa at a distance from the vertex abscissa chosen whether in preset pixel, if so, the vertex auxiliary line is arranged Starting point be the vertex ordinate traversed, terminal is that the vertex ordinate chosen specifically includes:
Judge at a distance from the vertex abscissa that traverses is chosen with interface in looping through process vertex abscissa whether In preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the vertex ordinate traversed, terminal is described The vertex ordinate chosen, and ordinate judgment step is triggered, if it is not, then triggering the ordinate judgment step;
The triggering ordinate judgment step is the top for judging the vertex ordinate traversed in looping through process with choosing Whether the distance of point ordinate is in the preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the traversal The vertex abscissa arrived, terminal are the vertex abscissa chosen.
3. vertex edit method according to claim 1, which is characterized in that judge to traverse in looping through process Vertex at a distance from the vertex chosen whether in preset pixel, if so, setting vertex auxiliary line starting point be the traversal The apex coordinate arrived, before terminal is the apex coordinate chosen further include:
Vertex edit instruction is obtained, and enters vertex circulation process;
Judge whether the vertex being recycled to is selected state, if it is not, then carrying out next step.
4. vertex edit method as claimed in any of claims 1 to 3, which is characterized in that the preset pixel is 5 Pixel.
5. a kind of vertex edit device characterized by comprising
Judging unit, for judging the vertex traversed in looping through process at a distance from the vertex chosen whether preset In pixel, if so, the starting point of setting vertex auxiliary line is the apex coordinate traversed, terminal is the vertex chosen Coordinate;
Generation unit, it is corresponding lateral with the apex coordinate traversed and the apex coordinate chosen for generating Or longitudinal vertex auxiliary line;
The judging unit specifically includes:
Judgment sub-unit, for judging in the looping through process vertex abscissa that traverses and the vertex abscissa chosen Whether distance is in preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the vertex ordinate traversed, Terminal is the vertex ordinate chosen.
6. vertex edit device according to claim 5, which is characterized in that
Judgment sub-unit, the vertex chosen specifically for judging the vertex abscissa and interface that traverse in looping through process Whether the distance of abscissa is in preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the top traversed Point ordinate, terminal is the vertex ordinate chosen, and triggers ordinate judgment step, if it is not, then triggering the vertical seat Mark judgment step;
The triggering ordinate judgment step is the top for judging the vertex ordinate traversed in looping through process with choosing Whether the distance of point ordinate is in the preset pixel, if so, the starting point that the vertex auxiliary line is arranged is the traversal The vertex abscissa arrived, terminal are the vertex abscissa chosen.
7. vertex edit device according to claim 6, which is characterized in that the vertex edit device further include:
Acquiring unit for obtaining vertex edit instruction, and enters vertex circulation process;
First judging unit, for judging whether the vertex being recycled to is selected state, if it is not, then triggering the judging unit.
8. vertex edit device according to claim 5, which is characterized in that the preset pixel is 5 pixels.
CN201510125113.9A 2015-03-20 2015-03-20 A kind of vertex edit method and device Active CN106033409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510125113.9A CN106033409B (en) 2015-03-20 2015-03-20 A kind of vertex edit method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510125113.9A CN106033409B (en) 2015-03-20 2015-03-20 A kind of vertex edit method and device

Publications (2)

Publication Number Publication Date
CN106033409A CN106033409A (en) 2016-10-19
CN106033409B true CN106033409B (en) 2019-07-26

Family

ID=57149120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510125113.9A Active CN106033409B (en) 2015-03-20 2015-03-20 A kind of vertex edit method and device

Country Status (1)

Country Link
CN (1) CN106033409B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719057A (en) * 2009-11-27 2010-06-02 广东威创视讯科技股份有限公司 Method and device for drawing geometric figures
CN101727675A (en) * 2008-10-30 2010-06-09 鸿富锦精密工业(深圳)有限公司 System and method for dynamically previewing insertion positions of graphic elements
CN101976448A (en) * 2010-10-22 2011-02-16 华为技术有限公司 Drawing method and device
CN102096831A (en) * 2009-12-15 2011-06-15 华中师范大学 Method for identifying graph dynamic relationship
CN102736837A (en) * 2011-05-10 2012-10-17 新奥特(北京)视频技术有限公司 Subtitle editing method based on grid
CN103136767A (en) * 2011-11-24 2013-06-05 北京图盟科技有限公司 Vector diagram drawing method and device
CN103150133A (en) * 2013-03-06 2013-06-12 天脉聚源(北京)传媒科技有限公司 Resource display method and device
CN103295252A (en) * 2013-05-15 2013-09-11 广东威创视讯科技股份有限公司 Open GL (graphics library) based smoothing method and system for line segment drawing intersection point

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727675A (en) * 2008-10-30 2010-06-09 鸿富锦精密工业(深圳)有限公司 System and method for dynamically previewing insertion positions of graphic elements
CN101719057A (en) * 2009-11-27 2010-06-02 广东威创视讯科技股份有限公司 Method and device for drawing geometric figures
CN102096831A (en) * 2009-12-15 2011-06-15 华中师范大学 Method for identifying graph dynamic relationship
CN101976448A (en) * 2010-10-22 2011-02-16 华为技术有限公司 Drawing method and device
CN102736837A (en) * 2011-05-10 2012-10-17 新奥特(北京)视频技术有限公司 Subtitle editing method based on grid
CN103136767A (en) * 2011-11-24 2013-06-05 北京图盟科技有限公司 Vector diagram drawing method and device
CN103150133A (en) * 2013-03-06 2013-06-12 天脉聚源(北京)传媒科技有限公司 Resource display method and device
CN103295252A (en) * 2013-05-15 2013-09-11 广东威创视讯科技股份有限公司 Open GL (graphics library) based smoothing method and system for line segment drawing intersection point

Also Published As

Publication number Publication date
CN106033409A (en) 2016-10-19

Similar Documents

Publication Publication Date Title
CN111260764B (en) Method, device and storage medium for making animation
US8924888B2 (en) Dynamic data object insertion
CN103324400B (en) A kind of method showing menu in 3D model and device
CN103064691B (en) Make the method and apparatus of desktop icon of electronic equipment
CN104298727B (en) A kind of template matching method and device based on document
CN107019913B (en) Object generation method and device
CN104598436B (en) A kind of dynamic creation method and device of three-dimensional chart
CN102122502A (en) Method and related device for displaying three-dimensional (3D) font
US10311182B2 (en) Topological change in a constrained asymmetrical subdivision mesh
US9355500B2 (en) System and method for animating collision-free sequences of motions for objects placed across a surface
CN105261055A (en) Game role rehandling method, device and terminal
JP6378323B2 (en) Image editing transmission to subordinate video sequences via dense motion fields
CN105787986A (en) Three-dimensional graph rendering method and device
CN112463005A (en) Multi-screen interaction method and device, computer equipment and storage medium
CN107305134A (en) The method and apparatus for showing the navigation way of predetermined shape on the electronic map
CN106033409B (en) A kind of vertex edit method and device
CN106648586B (en) Platform for VR creation based on web browser
CN103135891B (en) A kind of method and device of user interface process
CN111739134A (en) Virtual character model processing method and device and readable storage medium
CN104969186A (en) An interface for creating a plan artifact
CN110544284A (en) method for automatically planning optimal layout flow chart
CN105975259A (en) Implementation method and device of 3D (Three-dimensional) space user interface
CN105701071B (en) A kind of document header footer method of adjustment and device
CN115063560A (en) Method and system for tracking three-dimensional target in motion state in real time
CN107507265A (en) Model pinup picture method and device based on three-dimensional rendering two dimension

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 519015 Guangdong city in Guangzhou Province, Tianhe District Road No. 60 building 6 floor Kosun

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Address before: 519015 Guangdong city in Guangzhou Province, Tianhe District Road No. 60 building 6 floor Kosun

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant