CN104238921A - Custom polygon drawing method and device - Google Patents

Custom polygon drawing method and device Download PDF

Info

Publication number
CN104238921A
CN104238921A CN201310253303.XA CN201310253303A CN104238921A CN 104238921 A CN104238921 A CN 104238921A CN 201310253303 A CN201310253303 A CN 201310253303A CN 104238921 A CN104238921 A CN 104238921A
Authority
CN
China
Prior art keywords
selected point
polygon
point
limit
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310253303.XA
Other languages
Chinese (zh)
Inventor
牟春林
黄仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU JINGYIHUI INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SUZHOU JINGYIHUI INFORMATION 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 SUZHOU JINGYIHUI INFORMATION TECHNOLOGY Co Ltd filed Critical SUZHOU JINGYIHUI INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310253303.XA priority Critical patent/CN104238921A/en
Publication of CN104238921A publication Critical patent/CN104238921A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

Disclosed is a custom polygon drawing method and device. The method includes the steps of reading an arbitrary polygon, and moving a point at any side of the polygon; recognizing a move location of the selected point; drawing a new polygon according to an end location of the selected point. The device comprises a display unit, an analytical unit and a drawing unit; the display unit is used for reading and displaying the arbitrary polygon; the analytical unit is used for recognizing a moving path of the selected point and recording an end location of each move, thus forming a set of ordered points with other vertexes; the drawing unit is connected with the display unit and the analytical unit and is used for drawing the polygons according to the sequence of the points in the set. The custom polygon drawing method and device has the advantage that a user can optionally modify existing polygons into custom polygons.

Description

A kind of self-defined polygonal method for drafting and device
Technical field
The invention relates to computer drawing technology, particularly relate to the method and apparatus of self-defined polygonal drafting.
Background technology
Along with computer drawing technology is in the widespread use of industry-by-industry, the demand that can customize graphics shape also increases day by day.In common graphic system, the polygonal shape as the rule such as triangle, square is often supplied to user's unrestricted choice in the mode of graphical control, but user-defined irregular polygon then often needs to draw voluntarily.Common polygon rendering method is generally the mode with broken line, and line-by-line is drawn.Its shortcoming is, whenever the self-defined a kind of polygon of needs, all will start from scratch and draw, and when being subject to certain factor and hang up in the continuous line drawing process of user, then current polygon draws task also failure thereupon.
Summary of the invention
The present invention proposes a kind of self-defined polygonal method for drafting and device, can based on basic polygon, by the flexible amendment to its limit, to obtain user-defined arbitrary polygon, thus simplify when user has the tedious steps that must repaint during difformity polygon rendering demand.
Main technical schemes of the present invention is:
A kind of self-defined polygonal method for drafting, comprising:
Read arbitrary polygon, any limit is chosen a bit, this selected point mobile;
Identify the shift position of selected point;
Carry out drawing new polygon according to the drop point site of selected point.
Preferably, described selected point comprises: selected point be place original limit on any point except two end points.
Preferably, the shift position of described identification selected point comprises: move each time and all identify as the drop point site of selected point.
Preferably, the described drop point site according to selected point is carried out drafting and is comprised: two endpoint locations on the original limit at selected point place and the invariant position on other limits, and the original limit at selected point place becomes the new limit of two of being connected by selected point.
Preferably, described method for drafting is realized by mouse on a personal computer.
Preferably, described method for drafting is realized by touch control manner on touch panel device.
A kind of self-defined polygonal drawing apparatus, comprising:
Display unit, reads and shows arbitrary polygon;
Resolution unit, for identifying the motion track of selected point, and the drop point site of record movement each time, form the set of orderly point with other summits;
Drawing unit, is connected with display unit and resolution unit, for carrying out polygon rendering according to the order of each point in set.
Preferably, described self-defined polygon rendering device, it is characterized in that, polygonal each vertex correspondence two-dimensional coordinate (x in described resolution unit, y), polygon is regarded as the coordinate set on multiple summit, often newly increase two connected limits, in set, namely increase the coordinate of new point.
Preferably, described device has mouse and draws for user.
Preferably, described device has touch-screen and draws for user.
Because the present invention is based on existing polygon, by transforming its limit thus obtaining self-defining polygon, without the need to drafting of starting from scratch, be therefore easy to operation, improve drawing efficiency.In addition, compared with prior art, the present invention is in self-defined polygonal process, and the continuity not by drawing locus affects, and user can transform repeatedly to the figure drawn, and can not make drawing tasks failure because of operation disruption.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of polygon rendering method provided by the invention;
Fig. 2 is the schematic diagram of polygon rendering device provided by the invention;
Process flow diagram when parsing module runs when Fig. 3 is drafting polygon provided by the invention;
Fig. 4 draws polygonal operation chart in one embodiment of the invention.
Embodiment
The invention provides a kind of self-defined polygonal method for drafting and device.
Shown in Figure 1, self-defined polygonal method for drafting provided by the invention mainly comprises following step:
In step 101, user selects an existing polygon;
In step 102, user chooses a bit on any limit, and moves;
In step 103, identify the drop point site in selected point moving process, in 104 steps, by two end points on original for selected point place limit and the drop point site line of selected point;
In step 105, user determines whether drawing is complete, draws, then return step 102 if need continue; Otherwise, terminate to draw.
Shown in Figure 2, self-defined polygonal drawing apparatus provided by the invention mainly comprises:
Display unit 201, for display graphics information;
Resolution unit 202, for receiving the polygon essential information and selected point motion track that display unit imports into, record selected point drop point site, forms new polygon information by computing.
Drawing unit 203, is connected with resolution unit, and the polygon information according to importing into is drawn; Be connected with display unit, polygon is shown to user.
Fig. 3 is the calculating process process flow diagram of resolution unit 202 in above-described embodiment, comprises the steps:
In step 301, obtain the basic polygon information that user selects, with point coordinate set
Z{V 1(x 1, y 1), V 2(x 2, y 2), V 3(x 3, y 3) ..., V n(x n, y n) store, every two adjacent some expression limit, such as E 1(V 1, V 2);
In step 302, judge whether that selected point information is imported into, if having, performed step 303; Otherwise, perform step 305;
In step 303, if P is above-mentioned limit E 1a upper selected point, identifies the motion track of P, its drop point site is labeled as V n+1(x n+1, y n+1);
In step 304, by the V in step 303 n+1(x n+1, y n+1) add in coordinate set Z, namely
Z{V 1(x 1,y 1),V n+1(x n+1,y n+1),V 2(x 2,y 2),V 3(x 3,y 3),…,V n(x n,y n)};
In step 305, by the coordinate line in order of each point in coordinate set Z, be depicted as polygon.
Figure 4 shows that self-defined polygonal operation chart in one embodiment of the invention.In the present embodiment, the equipment that realizes of the method is personal computer, and plotting mode is mouse action.Should recognize that the present invention is not limited to the said equipment and instrument, also can be touch-screen mobile phone, panel computer, server or other can carry out the equipment of picture drafting, mode of operation can be finger touch or other can the instrument of graphing.
Triangle in subgraph 401 is the basic polygon selected in the present embodiment, at limit (V 1, V 3) on choose 1 P 1move to the right, form the quadrilateral shown in subgraph 402, selected point P 1be converted into summit V 4.In like manner, at limit (V 3, V 4) on choose arbitrarily 1 P 2, at limit (V 1, V 2) on choose arbitrarily 1 P 3, move P respectively 2, P 3, then the heptagon shown in subgraph 403 is formed.
It should be noted that, the moving range of selected point is the visible arbitrary region of graphical interfaces.As in subgraph 404,405, V 4', V 4" be respectively P 4, P 5the summit formed after mobile.
The above, be only the present invention's preferably embodiment, to those skilled in the art, any do not depart from the present invention design prerequisite under, the some distortion made and improvement, all should be encompassed within protection scope of the present invention.

Claims (10)

1. a self-defined polygonal method for drafting, is characterized in that, comprise the following steps:
Read arbitrary polygon, any limit is chosen a bit, this selected point mobile;
Identify the shift position of selected point;
New polygon is drawn according to the drop point site of selected point.
2. method according to claim 1, is characterized in that, described selected point comprises:
Selected point be place original limit on any point except two end points.
3. method according to claim 1, is characterized in that, the shift position of described identification selected point comprises:
Move each time and all identify as the drop point site of selected point.
4. method according to claim 1, is characterized in that, the described drop point site according to selected point is drawn polygon and comprised:
Two endpoint locations on the original limit at selected point place and the invariant position on other limits, the original limit at selected point place becomes the new limit of two of being connected by selected point.
5. method according to any one of claim 1 to 4, is characterized in that, described method for drafting is realized by mouse on a personal computer.
6. method according to any one of claim 1 to 4, is characterized in that, described method for drafting is realized by touch control manner on touch panel device.
7. a self-defined polygonal drawing apparatus, is characterized in that, comprising:
Display unit, reads and shows arbitrary polygon;
Resolution unit, for identifying the motion track of selected point, and the drop point site of record movement each time, form the set of orderly point with other summits;
Drawing unit, is connected with display unit and resolution unit, for carrying out polygon rendering according to the order of each point in set.
8. self-defined polygon rendering device according to claim 7, it is characterized in that, polygonal each vertex correspondence two-dimensional coordinate (x in described resolution unit, y), polygon is regarded as the coordinate set on multiple summit, often newly increase two connected limits, in set, namely increase the coordinate of new point.
9. the device according to claim 7 or 8, is characterized in that, described device has mouse and draws for user.
10. the device according to claim 7 or 8, is characterized in that, described device has touch-screen and draws for user.
CN201310253303.XA 2013-06-21 2013-06-21 Custom polygon drawing method and device Pending CN104238921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310253303.XA CN104238921A (en) 2013-06-21 2013-06-21 Custom polygon drawing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310253303.XA CN104238921A (en) 2013-06-21 2013-06-21 Custom polygon drawing method and device

Publications (1)

Publication Number Publication Date
CN104238921A true CN104238921A (en) 2014-12-24

Family

ID=52227104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310253303.XA Pending CN104238921A (en) 2013-06-21 2013-06-21 Custom polygon drawing method and device

Country Status (1)

Country Link
CN (1) CN104238921A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977495A (en) * 2017-11-21 2018-05-01 王征 A kind of system and method for the wall polygon rendering based on operation point probe
WO2019000692A1 (en) * 2017-06-27 2019-01-03 广州视源电子科技股份有限公司 Three-dimensional graphic rendering method, apparatus, device, and storage medium
CN111782111A (en) * 2019-04-04 2020-10-16 广州高新兴机器人有限公司 Method for drawing polygon on touch screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527032A (en) * 2009-04-03 2009-09-09 昆山市工业技术研究院有限责任公司 Mutual distortion method among planar arbitrary polygons
CN101859224A (en) * 2010-04-30 2010-10-13 陈铸 Method and system for scratching target object from digital picture
WO2011007783A1 (en) * 2009-07-13 2011-01-20 Yoshida Kenji Stream dot pattern, method for forming stream dot pattern, method for information input/output using stream dot pattern, and dot pattern
CN102074030A (en) * 2009-11-25 2011-05-25 新奥特(北京)视频技术有限公司 Method for acquiring and editing custom graphics and system for making subtitle graphics
CN102568253A (en) * 2010-12-21 2012-07-11 汉王科技股份有限公司 Method and device used for displaying geometrical characteristic of graph in electronic whiteboard

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527032A (en) * 2009-04-03 2009-09-09 昆山市工业技术研究院有限责任公司 Mutual distortion method among planar arbitrary polygons
WO2011007783A1 (en) * 2009-07-13 2011-01-20 Yoshida Kenji Stream dot pattern, method for forming stream dot pattern, method for information input/output using stream dot pattern, and dot pattern
CN102074030A (en) * 2009-11-25 2011-05-25 新奥特(北京)视频技术有限公司 Method for acquiring and editing custom graphics and system for making subtitle graphics
CN101859224A (en) * 2010-04-30 2010-10-13 陈铸 Method and system for scratching target object from digital picture
CN102568253A (en) * 2010-12-21 2012-07-11 汉王科技股份有限公司 Method and device used for displaying geometrical characteristic of graph in electronic whiteboard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JOKER幻灭ミミ: "3dmax怎么在物体或图形中增加顶点和边 此物体已经转换为可编辑多边形", 《百度知道,HTTPS://ZHIDAO.BAIDU.COM/QUESTION/543743013.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019000692A1 (en) * 2017-06-27 2019-01-03 广州视源电子科技股份有限公司 Three-dimensional graphic rendering method, apparatus, device, and storage medium
CN107977495A (en) * 2017-11-21 2018-05-01 王征 A kind of system and method for the wall polygon rendering based on operation point probe
CN107977495B (en) * 2017-11-21 2021-04-02 王征 System and method for drawing wall polygon based on operating point detector
CN111782111A (en) * 2019-04-04 2020-10-16 广州高新兴机器人有限公司 Method for drawing polygon on touch screen

Similar Documents

Publication Publication Date Title
CN110531875B (en) Writing stroke generation method, terminal equipment and storage medium
JP2014508992A (en) Method and apparatus for realizing original handwriting brushstroke
US8860675B2 (en) Drawing aid system for multi-touch devices
US10438385B2 (en) Generating ink effects for a digital ink stroke
CN101763234B (en) Method and device for simulating various screen resolutions
CN110741229B (en) Dynamically changing visual attributes of indicators on digital maps
KR20130066511A (en) Method and apparatus for calligraphic beautification of handwritten characters
WO2017202294A1 (en) Method for dynamically displaying pictures, electronic device and storage medium
JP6265451B2 (en) Object management device, thinking support device, object management method, and program
US8542207B1 (en) Pencil eraser gesture and gesture recognition method for touch-enabled user interfaces
CN104866121A (en) Drawing system and drawing method for three-dimensional model
CN106598928B (en) Method and system for annotating on display screen
CN103399629A (en) Method and device for capturing gesture displaying coordinates
CN104238921A (en) Custom polygon drawing method and device
CN115878935A (en) Local refreshing method, system, device, equipment and medium of chart
CN110235097B (en) Reversible digital ink for inking application user interface
CN110727383A (en) Touch interaction method and device based on small program, electronic equipment and storage medium
CN111984151B (en) Whiteboard canvas size and position roaming control method for improving processing efficiency
US20160162174A1 (en) Electronic apparatus, method and storage medium
JP2016085547A (en) Electronic apparatus and method
JP2014002678A (en) Object display method, program, and device
JP2015022524A (en) Terminal device and system
CN110162251A (en) Image-scaling method and device, storage medium, electronic equipment
CN116188628B (en) Free painting page-crossing drawing and displaying method and server
CN103049204A (en) Method for moving cursor on handwriting image, input method and input system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141224

WD01 Invention patent application deemed withdrawn after publication