Unlock instant, AI-driven research and patent intelligence for your innovation.

Polyline drawing method, device, electronic device and storage medium

A polyline segment and line segment technology, applied in polyline drawing methods, electronic equipment, storage media, and device fields, can solve the problems of slow rendering speed and large memory space consumption, so as to improve drawing speed, reduce memory space consumption, and reduce quantity Effect

Active Publication Date: 2020-07-10
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The application provides a polyline drawing method, device, electronic equipment and storage medium, which can solve the problems of large memory space consumption and slow rendering speed in related technologies

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Polyline drawing method, device, electronic device and storage medium
  • Polyline drawing method, device, electronic device and storage medium
  • Polyline drawing method, device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0057] In order to navigate through the electronic map, or view the distance between two locations and the driving route through the electronic map, it is usually necessary to draw the route on the electronic map. There are usually broken line segments in the drawn route, and in order to ensure the display diversity of the broken line segments, the inflection points of the broken line segments can be drawn as sharp corners, flat corners or rounded corners. The present application proposes a broken line drawing method, by which the above broken line segment can be drawn. That is, through the polyline drawing method provided in this application, it is possible to draw a polyline with sharp corners, a polyline with flat corners or a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a broken line drawing method and device, electronic equipment and a storage medium, and belongs to the technical field of image processing. The method comprises the steps thataccording to a point A, an offset point D and an offset point G of the point A, a point B and a point C, determining an offset point E and an offset point H of the point B, wherein the point A is thelast point on a drawn broken line section, the point B is a point needing to be added at present, and the point C is a point needing to be added after the point B; if the currently drawn fold line type is a sharp corner fold line, determining two triangles according to the offset point D, the offset point G, the offset point E and the offset point H; and rendering the two triangles to draw a broken line segment between the point A and the point B. According to the method provided by the invention, the consumption of memory space and the number of triangles needing to be rendered can be reduced, so that the rendering time is shortened, the rendering speed is increased, and the drawing speed of a broken line is increased.

Description

technical field [0001] The present application relates to the technical field of image processing, and in particular to a polyline drawing method, device, electronic equipment and storage medium. Background technique [0002] Polylines usually have a certain line width, and polylines can include flat, sharp and rounded polylines. for example, figure 1 Shown is a flat-angled polyline, figure 2 Shown is a sharp polyline, image 3 Shown is a rounded polyline. [0003] At present, polylines are basically drawn through Open GL (Open Graphics Library, an open graphics program interface) technology. Such as Figure 4 As shown, the operation of drawing a polyline through Open GL technology can be as follows: for point A on the drawn polyline segment, if it is currently necessary to draw a polyline segment between point A and point B on the basis of point A, then you can use Point A is shifted up and down by half the line width along the vertical direction of line segment AB t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T11/20
CPCG06T11/203
Inventor 舒经纬
Owner BEIJING SANKUAI ONLINE TECH CO LTD