Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Graph pickup method and device based on space geometry and medium

A geometric and spatial technology, applied in the field of graphic picking based on spatial geometry, can solve the problems of inability to obtain, limited information of picked objects, and cost, etc., and achieve the effect of accurate judgment method

Pending Publication Date: 2022-05-27
同恩(上海)工程技术有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The disadvantages of this method are: the name stack is frequently pushed and popped, which seriously affects the efficiency of picking; in addition, when the scene contains a large number of geometric primitives, the name stack is prone to overflow; in addition, this method can only be picked The ID of the graphic object obtained, but the specific location information of the hit object cannot be obtained
This method requires an additional drawing for each rendering, which takes a certain amount of time; in addition, the object information encoding capacity is limited by the bit depth of the off-screen cache; in addition, compared with the previous two methods, the picked object information that this method can obtain is very large. Limited, for example, only the frontmost object can be picked up, but the occluded object behind the picked position cannot be picked up

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
  • Graph pickup method and device based on space geometry and medium
  • Graph pickup method and device based on space geometry and medium
  • Graph pickup method and device based on space geometry and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] refer to figure 1 , this embodiment discloses a method for picking up graphics based on spatial geometry, which includes the following steps:

[0074] S1, obtain any two points of the input, and form a picking frame with the two points;

[0075] Specifically, the method for picking up graphics based on spatial geometry in this embodiment can be used in a graphics system, and the graphics system has a user interface that can display graphics that need to be picked up. The displayed user interface in this embodiment may be on an LCD screen or a touch screen.

[0076] When displayed on the LCD screen, the input method may be a mouse, and this embodiment does not specifically limit the input method. When using the mouse as the input method, the user uses the mouse to click on any two points on the screen. For example, you can click a point first, move to another position and click once, then use the clicked two points as the two input points.

[0077] In addition, when a...

Embodiment 2

[0119] refer to Figure 8 , Figure 8 This embodiment discloses a method for picking up graphics based on spatial geometry, which includes the following steps:

[0120] S10, acquiring any two points of the input, and forming a pick frame with the two points;

[0121] In this embodiment, according to any two points input, a pick frame is formed by the two points. Specifically, a rectangular pick box is formed by taking any two input points as diagonal corners.

[0122] S20, obtain the primitive;

[0123] The acquisition of the graphic element object in this embodiment is to acquire all graphic elements in the current display interface, for example, graphic elements such as line segments and circles in the current display interface. After acquiring the primitives in this embodiment, the primitives may be stored in the memory.

[0124] S30, picking and judging according to the geometric feature of the primitive and the direction of the picking frame;

[0125] Specifically, ...

Embodiment 3

[0133] refer to Figure 9 , Figure 9 This embodiment discloses a graphic pickup device based on spatial geometry, which includes the following units:

[0134] a pick box acquisition unit, used to acquire any two points of the input, and form a pick box with the two points;

[0135] In this embodiment, according to any two points input, a pick frame is formed by the two points. Specifically, a rectangular pick box is formed by taking any two input points as diagonal corners.

[0136] Pick-up frame direction determination unit, used to determine the frame selection direction of the pick-up frame, if the frame selection direction is from the upper left corner to the lower right corner, execute the all-inclusive judgment unit, if the frame selection direction is from the lower right corner to the upper left corner The corner execution part includes a judgment unit;

[0137] In this embodiment, the frame selection direction of the selection frame is determined according to the...

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 provides a graph pickup method based on space geometry, which comprises the following steps of: S1, acquiring any two input points, and forming a pickup frame by the two points; s2, judging the box selection direction of the pickup box, if the box selection direction is from the upper left corner to the lower right corner, executing a step S3, and if the box selection direction is from the lower right corner to the upper left corner, executing a step S4; s3, if the primitive is a straight line segment, picking up the straight line segment when the starting point and the ending point of the straight line segment are in a visual cone formed by a picking frame; and S4, if the primitive is a straight line segment, at least one of the six surfaces of the visual cone formed by the pick-up frame has an intersection point with the straight line segment, picking up the straight line segment. Different pick-up judgment methods are executed according to different directions of the pick-up frames; picking is carried out through the relation between the geometric features of the graph in the world coordinate system and the selection box, the judgment method is accurate and only aims at the graph, and redundant information cannot be picked up.

Description

technical field [0001] The present invention relates to the field of graphics technology, and in particular, to a method, device and medium for picking up graphics based on spatial geometry. Background technique [0002] Graphic picking refers to the process of returning relevant information such as the ID of the picked geometric figure according to the position where the user uses a mouse or other positioning device to perform a click operation or an area for a frame selection operation. According to the result of graphic picking, further interactive operations are performed, such as translation, rotation, mirroring and other operations on the picked primitives. Therefore, graphic picking is one of the key technologies in interactive graphic applications. In CAD software, games, graphics users Interface and other aspects have a wide range of applications. [0003] There are two types of graphics picking methods: single picking and block picking. Single pick uses a mouse c...

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 Applications(China)
IPC IPC(8): G06F9/451G06F30/10G06T19/20
CPCG06F9/451G06T19/20G06F30/10
Inventor 吴俊张琪李梦男
Owner 同恩(上海)工程技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products