Method and device for generating virtual smooth curve
A smooth and curved technology, applied in the computer field, can solve problems such as the inability to meet the needs of users and the inability of Flex to draw virtual smooth curves.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] figure 1 is a schematic flowchart of a method for generating imaginary smooth curves according to an embodiment of the present invention, see figure 1 , the method includes the following steps S11 to S14:
[0044] Step S11, obtaining the position of the original point;
[0045] In practical applications, it is necessary to obtain the position coordinates of the original points in advance, and then draw a Bezier curve passing through these original points according to the known position coordinates of the original points. The position of the original point here may be input by the user, or transmitted by other applications.
[0046] Step S12, calculate the position of the control point of the Bezier curve according to the positions of all the original points obtained, and use the position of the original point and the position of the control point to draw the Bezier curve;
[0047] A Bézier curve, also known as a Bézier curve or a Bézier curve, is a mathematical curve...
Embodiment 2
[0052] The focus of this embodiment is to describe the method for generating imaginary smooth curves to draw equal-spaced imaginary smooth curves. For other details, refer to other embodiments of the present invention.
[0053] It should be noted that when drawing a Bezier curve in Flex, the drawing method of the dotted line segment is actually to set the line style stroke.apply(g) and g.lineStyle(0,0,0) alternately at intervals when drawing the line. . The broken line drawing method is relatively simple. It is to divide the long line segment between two original points into several short line segments according to straight lines, and then change the line style alternately. However, the drawing of virtual smooth curve cannot combine the realization method of dashed polyline and the realization method of curve, but must be drawn in combination with the realization method of curve and the drawing method of the aforementioned dotted line segment.
[0054] In this embodiment, aft...
Embodiment 3
[0084] image 3 is a block diagram of a device for generating imaginary smooth curves according to an embodiment of the present invention, see image 3 , the device 30 for generating imaginary smooth curves includes:
[0085] An original point obtaining unit 301, configured to obtain the position of the original point;
[0086] The curve determination unit 302 is used to calculate the positions of the control points of the Bezier curve according to the positions of all the original points acquired by the original point acquisition unit 301, and draw the Bezier curve by using the positions of the original points and the positions of the control points;
[0087] The position calculation unit 303 is used to calculate the position of the dotted line segment and the solid line segment on the curve segment corresponding to every two adjacent original points during the process of drawing the Bezier curve;
[0088] The imaginary rounded curve generation unit 304 is used to set the l...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com