CN107748643A - A kind of interactive object pick-up method based on subsurface three-dimensional space - Google Patents

A kind of interactive object pick-up method based on subsurface three-dimensional space Download PDF

Info

Publication number
CN107748643A
CN107748643A CN201711105179.7A CN201711105179A CN107748643A CN 107748643 A CN107748643 A CN 107748643A CN 201711105179 A CN201711105179 A CN 201711105179A CN 107748643 A CN107748643 A CN 107748643A
Authority
CN
China
Prior art keywords
point
subsurface
entity
dimensional space
bounding box
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
CN201711105179.7A
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.)
Jinan Xunjie Wantong Science And Technology Co Ltd
Original Assignee
Jinan Xunjie Wantong Science And 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 Jinan Xunjie Wantong Science And Technology Co Ltd filed Critical Jinan Xunjie Wantong Science And Technology Co Ltd
Priority to CN201711105179.7A priority Critical patent/CN107748643A/en
Publication of CN107748643A publication Critical patent/CN107748643A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/003Navigation within 3D models or images

Abstract

The present invention relates to a kind of interactive object pick-up method based on subsurface three-dimensional space, including:By the destination object shown in advance in many condition screening and filtering subsurface three-dimensional space, categorical filtering is done to the object to be picked up;The destination object in underground three dimensions and subsurface three-dimensional space is amplified, reduced and rotated by mouse, keyboard, adjusts the three dimensions scope shown on computer display screen;When mouse is moved on on dispensing object, suspend the corresponding geological prospecting information that display is got from exploration database by object oriented on object is launched;Acquiring object is completed according to the geological prospecting validation of information destination object for the display that suspended in mouse point object, and using mouse.Pass through technical scheme, it can solve the problem that the data that magnanimity has been enrolled in petroleum exploration and development process, these data are launched into subsurface three-dimensional scene modeling and occur that mass data object stacks, it is difficult to the problem of acquiring object is quickly carried out by way of graphical interaction.

Description

A kind of interactive object pick-up method based on subsurface three-dimensional space
Technical field
The present invention relates to petroleum exploration and development technical field, and in particular to a kind of based on the interactive right of subsurface three-dimensional space As pick-up method.
Background technology
The modeling of multiple dimensioned three-dimensional geological object and visualization technique are the Disciplinary Frontiers of earth science research, are listed in country The emphasis tackling key problem of 863 Program " digital oil gas field key technology research " project.Its target is appliance computer three-dimensional visible Change technology, a large amount of geological objects in oil-gas exploration and development and data are carried out integration exhibition in a manner of three-dimensional, learn work with making Various subsurface geology achievements and recognitions and data known to goals research area are understood more intuitively in author, so as to be petroleum exploration and development More preferable decision support is provided.Oil-gas field geology object three-dimensional modeling and visualization technique are one and are related to multiple professional domains Complicated system engineering, the content being related to are quite varied.The three-dimensional modeling of oil gas field subsurface geology object, and crucial navigation data Tissue and visualization be to produce closely related key technology with oil gas field, therefore its research to the theory of digital oil gas field and Practice is all significant.
The pickup of Drawing Object is an important function in computer graphical processing system.Drawing Object is pel and reality The general designation of body.Pel refers to the primitive geometric elements such as point in scene, line (including recombination line, dotted line etc.), face (convex polygon). Entity is inherently the set of some element figures, is generally represented by polyhedral model.
In many cases, computer graphical processing system not only wants graphing, and to allow operator to lead to The object (mark, mobile and modification) crossed on input equipment (being typically mouse) operation screen.Sometimes also need to obtain on object The space coordinates of point or geometric properties such as distance, angle, the radius for measuring object, these operations are required for pick up as real Existing basis.OpenGL is in order to solve the problems, such as pickup, there is provided a kind of selection mechanism based on name storehouse and hit record. In OpenGL, pickup object is to utilize to pick up matrix and projective transformation, and the scope of pickup is limited in the effective district of mouse focus In, once triggering mouse event be put into selection mode and initialize effective district, finally using pick up matrix pickup effective district Interior object.The definition of effective district is completed by function.Once picking up successfully, just returned in the form of record with picking up object phase The information of pass, and generate a record and represent that an object is hit.This object pickup method is very simple, it is not necessary to writes very More codes.Shortcoming is that one or more objects can not be therefrom selected when having many objects in effective pick-up area.Work as multiple objects It can not be handled during with same name.It is able to can not succeed real because of the spilling of name storehouse for the larger object of data volume It is existing.This method is not solved the problems, such as in effective coverage without hit object.
Using perspective projection when three-dimensional body is drawn, projection of the multiple objects on screen can usually overlap. Simultaneously because the needs of some functions, the required precision for picking up object is very high, it is sometimes desirable to can pick up any one on object It is individual, such as the space coordinates of measurement point and the distance of point-to-point transmission.Therefore, the pick-up method that OpenGL is provided can not meet system The requirement of function is, it is necessary to construct the Drawing Object picking algorithm of oneself.
The content of the invention
In view of this, it is an object of the invention to overcome the deficiencies of the prior art and provide one kind to be based on subsurface three-dimensional space Interactive object pick-up method, to solve to have enrolled the data of magnanimity in petroleum exploration and development process, these data launch Occur that mass data object stacks into subsurface three-dimensional scene modeling, it is difficult to object is efficiently carried out by way of graphical interaction The problem of pickup.
To realize object above, the present invention adopts the following technical scheme that:
A kind of interactive object pick-up method based on subsurface three-dimensional space, including:
Step S1, the destination object in subsurface three-dimensional space and subsurface three-dimensional space is shown by computer display screen;
Step S2, by the destination object shown in advance in many condition screening and filtering subsurface three-dimensional space, to what is picked up Object does categorical filtering, reduces the quantity that object is launched in three dimensions;
Step S3, the destination object in underground three dimensions and subsurface three-dimensional space is amplified by mouse, keyboard, Reduce and rotate, adjust the three dimensions scope shown on computer display screen, be advantageous to pick up destination object to find Suitable visual angle;
Step S4, when mouse is moved on on dispensing object, the display that suspended on object is launched presses object from exploration database The corresponding geological prospecting information that name acquiring arrives;
Step S5, under suitable visual angle, according to the geological prospecting validation of information target for the display that suspended in mouse point object Object, and complete acquiring object using mouse.
Preferably, the step S2 includes:
Step S21, when there is underground object to be shown in the subsurface three-dimensional space of computer display screen, for each displaying object Globally unique object oriented is called from exploration database;
Step S22, the class relations where object are preserved in the buffer, so that inquiry uses;
Step S23, the classification filter condition of object is explored by adjusting, removes the displaying object that need not be shown.
Preferably, the step S4 includes:
Step S41, the screen coordinate (x of mouse point in mouse moving process is obtainedm, ym), and will dispensing pair in three dimensions The real world Coordinate Conversion of elephant is screen coordinate (xi, yi);
Step S42, constantly match mouse point and launch the screen coordinate of object, work as xm=xiAnd ym=yiWhen, display is worked as The related keyword that the title of the unique object of visual angle top layer is stacked under preceding visual angle and is inquired by name from exploration database Attribute information.
Preferably, the step S5 includes:
Step S51, whether it is destination object according to the geological prospecting validation of information for the display that suspended in mouse point object, if It is then to carry out step S52, otherwise, return to step S3;
Step S52, the screen coordinate (x, y) of mouse point is obtained, and camera focal coordinates are converted into screen coordinate;
Step S53, depth value z value of the camera depth of focus value as mouse point, and mouse point coordinates is converted into the world Coordinate (XW, YW, ZW);
Step S54, by camera position point to point (XW, YW, ZW) make a ray m, and ray m and projector space are asked respectively Nearly section and the intersection point A and B in remote section, obtain line segment AB;If ray m is perpendicular to sight, ray m and projector space not phase Hand over;
Step S55, the target entity for being located at sight top in scenario entities list is taken out, obtains the conversion square of the entity Battle array, and be local coordinate by the Coordinate Conversion of A and B points using the matrix;
Step S56, the bounding box of computational entity, and judge the relative position of AB and bounding box;If AB and bounding box intersect, The parameter value of the entity and AB intersection points is then sought, and is selected object by the entity indicia, otherwise, carries out the place of next entity Reason.
Preferably, in the step S56, judge the relative position of line segment AB and bounding box, be specially:
Starting point A is judged whether in bounding box, if it is, line segment AB and bounding box intersect, otherwise, writes down the bounding box Three sides immediate from starting point A, these three sides concurrent and must be mutually perpendicular to;
Cross starting point A and do vertical line to each side, obtain three intersection points, tie point A and each intersection point, obtain three vectorial α1, α2, α3, and seek α1, α2, α3With each ratio t accordingly to classify of vectorial ABii/ AB, i=1,2,3;
If tmax<0 or tmax>1, then AB and bounding box are non-intersect, wherein, tmaxFor tiMaximum, if AB some component For 0, tiTake -1;
According to tmaxWhether value obtains intersecting point coordinate, judge intersection point on bounding box;If intersection point is on box, AB and encirclement Box intersects, otherwise AB and bounding box mutually from.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
When it is point to pick up object, using AB as axis, a cylinder is done as radius using default floating number, in this cylinder The point nearest from viewpoint is required intersection point.
Preferably, it is described when it is point to pick up object, using AB as axis, a cylinder is done as radius using default floating number, The point nearest from viewpoint is required intersection point in this cylinder, is specially:
Each summit of entity is projected to AB, and obtains parameter coordinate of the subpoint on line segment AB;
In the range of 0~1, parameter coordinate value is smaller, then the point is nearer apart from viewpoint;If some entity apex ratio is current Closest approach apart from viewpoint closer to and the distance of the point to straight line where AB be less than threshold value, then the point is recorded as current nearest Point;
When all points are disposed, current closest approach is exactly the entity and line segment AB intersection point.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
When it is straight line or recombination line to pick up object, centered on pickup point, twice of pickup precision is the length of side, draws one Square using background colour as fill color is used as test window;
If pel enters pickup scope, inevitable that track is left in test section, Drawing Object is redrawn, to recover possibility The Drawing Object of tested window shade;
Circulate pixel color in read test window;If pixel color is different from background colour, read point, mark are terminated Pick up successfully, otherwise, continue the detection of next pel.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
If pickup object is dough sheet, the intersection point of plane where asking AB and dough sheet;If intersection point in the dough sheet region and On line segment AB, at the same than the dough sheet currently chosen apart from viewpoint closer to then the dough sheet being recorded as the dough sheet currently chosen;Its In, the dough sheet is the convex polygon for forming body surface.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
If pickup object is entity, algorithm is rejected according to the back side, rejects physically irrelevant dough sheet;
Dough sheet after rejecting is concentrated, and judges entity upper panel and the relation of line segment AB and viewpoint, nearest apart from viewpoint Dough sheet is used as and is picked dough sheet.
The present invention uses above technical scheme, at least possesses following beneficial effect:
As shown from the above technical solution, this interactive object pickup side based on subsurface three-dimensional space provided by the invention Method, the data that magnanimity has been enrolled in petroleum exploration and development process are can solve the problem that, these data are launched to subsurface three-dimensional modeling field Occur that mass data object stacks in scape, it is difficult to the problem of acquiring object is quickly carried out by way of graphical interaction.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of stream for interactive object pick-up method based on subsurface three-dimensional space that one embodiment of the invention provides Journey schematic diagram.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical scheme will be carried out below Detailed description.Obviously, described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art are resulting on the premise of creative work is not made to be owned Other embodiment, belong to the scope that the present invention is protected.
Below by drawings and examples, technical scheme is described in further detail.
Referring to Fig. 1, a kind of interactive object pick-up method based on subsurface three-dimensional space of one embodiment of the invention offer, Including:
Step S1, the destination object in subsurface three-dimensional space and subsurface three-dimensional space is shown by computer display screen;
Step S2, by the destination object shown in advance in many condition screening and filtering subsurface three-dimensional space, to what is picked up Object does categorical filtering, reduces the quantity that object is launched in three dimensions;
Step S3, the destination object in underground three dimensions and subsurface three-dimensional space is amplified by mouse, keyboard, Reduce and rotate, adjust the three dimensions scope shown on computer display screen, be advantageous to pick up destination object to find Suitable visual angle;
Step S4, when mouse is moved on on dispensing object, the display that suspended on object is launched presses object from exploration database The corresponding geological prospecting information that name acquiring arrives;
Step S5, under suitable visual angle, according to the geological prospecting validation of information target for the display that suspended in mouse point object Object, and complete acquiring object using mouse.
As shown from the above technical solution, this interactive object pickup side based on subsurface three-dimensional space provided by the invention Method, the data that magnanimity has been enrolled in petroleum exploration and development process are can solve the problem that, these data are launched to subsurface three-dimensional modeling field Occur that mass data object stacks in scape, it is difficult to the problem of acquiring object is quickly carried out by way of graphical interaction.
Preferably, the step S2 includes:
Step S21, when there is underground object to be shown in the subsurface three-dimensional space of computer display screen, for each displaying object Globally unique object oriented is called from exploration database;
Step S22, the class relations where object are preserved in the buffer, so that inquiry uses;
Step S23, the classification filter condition of object is explored by adjusting, removes the displaying object that need not be shown.
Preferably, the step S4 includes:
Step S41, the screen coordinate (x of mouse point in mouse moving process is obtainedm, ym), and will dispensing pair in three dimensions The real world Coordinate Conversion of elephant is screen coordinate (xi, yi);
Step S42, constantly match mouse point and launch the screen coordinate of object, work as xm=xiAnd ym=yiWhen, display is worked as The related keyword that the title of the unique object of visual angle top layer is stacked under preceding visual angle and is inquired by name from exploration database Attribute information.
Preferably, the step S5 includes:
Step S51, whether it is destination object according to the geological prospecting validation of information for the display that suspended in mouse point object, if It is then to carry out step S52, otherwise, return to step S3;
Step S52, the screen coordinate (x, y) of mouse point is obtained, and camera focal coordinates are converted into screen coordinate;
Step S53, depth value z value of the camera depth of focus value as mouse point, and mouse point coordinates is converted into the world Coordinate (XW, YW, ZW);
Step S54, by camera position point to point (XW, YW, ZW) make a ray m, and ray m and projector space are asked respectively Nearly section and the intersection point A and B in remote section, obtain line segment AB;If ray m is perpendicular to sight, ray m and projector space not phase Hand over;
Step S55, the target entity for being located at sight top in scenario entities list is taken out, obtains the conversion square of the entity Battle array, and be local coordinate by the Coordinate Conversion of A and B points using the matrix;
Step S56, the bounding box of computational entity, and judge the relative position of AB and bounding box;If AB and bounding box intersect, The parameter value of the entity and AB intersection points is then sought, and is selected object by the entity indicia, otherwise, carries out the place of next entity Reason.
Preferably, in the step S56, judge the relative position of line segment AB and bounding box, be specially:
Starting point A is judged whether in bounding box, if it is, line segment AB and bounding box intersect, otherwise, writes down the bounding box Three sides immediate from starting point A, these three sides concurrent and must be mutually perpendicular to;
Cross starting point A and do vertical line to each side, obtain three intersection points, tie point A and each intersection point, obtain three vectorial α1, α2, α3, and seek α1, α2, α3With each ratio t accordingly to classify of vectorial ABii/ AB, i=1,2,3;
If tmax<0 or tmax>1, then AB and bounding box are non-intersect, wherein, tmaxFor tiMaximum, if AB some component For 0, tiTake -1;
According to tmaxWhether value obtains intersecting point coordinate, judge intersection point on bounding box;If intersection point is on box, AB and encirclement Box intersects, otherwise AB and bounding box mutually from.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
When it is point to pick up object, using AB as axis, a cylinder is done as radius using default floating number, in this cylinder The point nearest from viewpoint is required intersection point.
Preferably, it is described when it is point to pick up object, using AB as axis, a cylinder is done as radius using default floating number, The point nearest from viewpoint is required intersection point in this cylinder, is specially:
Each summit of entity is projected to AB, and obtains parameter coordinate of the subpoint on line segment AB;
In the range of 0~1, parameter coordinate value is smaller, then the point is nearer apart from viewpoint;If some entity apex ratio is current Closest approach apart from viewpoint closer to and the distance of the point to straight line where AB be less than threshold value, then the point is recorded as current nearest Point;
When all points are disposed, current closest approach is exactly the entity and line segment AB intersection point.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
When it is straight line or recombination line to pick up object, centered on pickup point, twice of pickup precision is the length of side, draws one Square using background colour as fill color is used as test window;
If pel enters pickup scope, inevitable that track is left in test section, Drawing Object is redrawn, to recover possibility The Drawing Object of tested window shade;
Circulate pixel color in read test window;If pixel color is different from background colour, read point, mark are terminated Pick up successfully, otherwise, continue the detection of next pel.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
If pickup object is dough sheet, the intersection point of plane where asking AB and dough sheet;If intersection point in the dough sheet region and On line segment AB, at the same than the dough sheet currently chosen apart from viewpoint closer to then the dough sheet being recorded as the dough sheet currently chosen;Its In, the dough sheet is the convex polygon for forming body surface.
Preferably, in the step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and will The entity indicia is selected object, is specially:
If pickup object is entity, algorithm is rejected according to the back side, rejects physically irrelevant dough sheet;
Dough sheet after rejecting is concentrated, and judges entity upper panel and the relation of line segment AB and viewpoint, nearest apart from viewpoint Dough sheet is used as and is picked dough sheet.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims. Term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance.Term " multiple " refers to Two or more, limit unless otherwise clear and definite.

Claims (10)

  1. A kind of 1. interactive object pick-up method based on subsurface three-dimensional space, it is characterised in that including:
    Step S1, the destination object in subsurface three-dimensional space and subsurface three-dimensional space is shown by computer display screen;
    Step S2, by the destination object shown in advance in many condition screening and filtering subsurface three-dimensional space, to the object to be picked up Categorical filtering is done, reduces the quantity that object is launched in three dimensions;
    Step S3, the destination object in underground three dimensions and subsurface three-dimensional space is amplified by mouse, keyboard, reduced And rotation, the three dimensions scope shown on computer display screen is adjusted, is advantageous to pick up the suitable of destination object to find Visual angle;
    Step S4, when mouse is moved on on dispensing object, the display that suspended on object is launched presses object oriented from exploration database The corresponding geological prospecting information got;
    Step S5, under suitable visual angle, according to the geological prospecting validation of information destination object for the display that suspended in mouse point object, And complete acquiring object using mouse.
  2. 2. the interactive object pick-up method according to claim 1 based on subsurface three-dimensional space, it is characterised in that described Step S2 includes:
    Step S21, it is each displaying object from surveying when there is underground object to be shown in the subsurface three-dimensional space of computer display screen Visit in database and call globally unique object oriented;
    Step S22, the class relations where object are preserved in the buffer, so that inquiry uses;
    Step S23, the classification filter condition of object is explored by adjusting, removes the displaying object that need not be shown.
  3. 3. the interactive object pick-up method according to claim 1 based on subsurface three-dimensional space, it is characterised in that described Step S4 includes:
    Step S41, the screen coordinate (x of mouse point in mouse moving process is obtainedm, ym), and object will be launched in three dimensions Real world Coordinate Conversion is screen coordinate (xi, yi);
    Step S42, constantly match mouse point and launch the screen coordinate of object, work as xm=xiAnd ym=yiWhen, forward sight is worked as in display The related keyword attribute that the title of the unique object of visual angle top layer is stacked under angle and is inquired by name from exploration database Information.
  4. 4. the interactive object pick-up method according to claim 1 based on subsurface three-dimensional space, it is characterised in that described Step S5 includes:
    Step S51, whether it is destination object according to the geological prospecting validation of information for the display that suspended in mouse point object, if so, then Carry out step S52, otherwise, return to step S3;
    Step S52, the screen coordinate (x, y) of mouse point is obtained, and camera focal coordinates are converted into screen coordinate;
    Step S53, depth value z value of the camera depth of focus value as mouse point, and mouse point coordinates is converted into world coordinates (XW, YW, ZW);
    Step S54, by camera position point to point (XW, YW, ZW) make a ray m, and ask ray m and projector space closely to cut respectively Face and the intersection point A and B in remote section, obtain line segment AB;If ray m is non-intersect perpendicular to sight, ray m and projector space;
    Step S55, the target entity for being located at sight top in scenario entities list is taken out, obtains the transition matrix of the entity, And using the matrix by the Coordinate Conversion of A and B points it is local coordinate;
    Step S56, the bounding box of computational entity, and judge the relative position of AB and bounding box;If AB and bounding box intersect, ask The parameter value of the entity and AB intersection points, and be selected object by the entity indicia, otherwise, carry out the processing of next entity.
  5. 5. the interactive object pick-up method according to claim 4 based on subsurface three-dimensional space, it is characterised in that described In step S56, the relative position of line segment AB and bounding box is judged, be specially:
    Starting point A is judged whether in bounding box, if it is, line segment AB and bounding box intersect, otherwise, writes down the bounding box from rising Immediate three sides of point A, these three sides concurrent and must be mutually perpendicular to;
    Cross starting point A and do vertical line to each side, obtain three intersection points, tie point A and each intersection point, obtain three vectorial α1, α2, α3, and Seek α1, α2, α3With each ratio t accordingly to classify of vectorial ABii/ AB, i=1,2,3;
    If tmax<0 or tmax>1, then AB and bounding box are non-intersect, wherein, tmaxFor tiMaximum, if AB some component be 0, tiTake -1;
    According to tmaxWhether value obtains intersecting point coordinate, judge intersection point on bounding box;If intersection point is on box, AB and bounding box phase Hand over, otherwise AB and bounding box mutually from.
  6. 6. the interactive object pick-up method according to claim 4 based on subsurface three-dimensional space, it is characterised in that described In step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and by the entity indicia to choose pair As being specially:
    When pick up object for point when, using AB as axis, a cylinder is done as radius using default floating number, in this cylinder from regarding The nearest point of point is required intersection point.
  7. 7. the interactive object pick-up method according to claim 6 based on subsurface three-dimensional space, it is characterised in that described When it is point to pick up object, using AB as axis, a cylinder is done as radius using default floating number, in this cylinder from viewpoint most Near point is required intersection point, is specially:
    Each summit of entity is projected to AB, and obtains parameter coordinate of the subpoint on line segment AB;
    In the range of 0~1, parameter coordinate value is smaller, then the point is nearer apart from viewpoint;If some entity apex ratio is current most Anomalistic distance viewpoint closer to and the distance of the point to straight line where AB be less than threshold value, then the point is recorded as current closest approach;
    When all points are disposed, current closest approach is exactly the entity and line segment AB intersection point.
  8. 8. the interactive object pick-up method according to claim 4 based on subsurface three-dimensional space, it is characterised in that described In step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and by the entity indicia to choose pair As being specially:
    When it is straight line or recombination line to pick up object, centered on pickup point, twice of pickup precision is the length of side, draws one with the back of the body Scenery is the square of fill color as test window;
    If pel enters pickup scope, inevitable that track is left in test section, Drawing Object is redrawn, to recover to be tested Try the Drawing Object of window shade;
    Circulate pixel color in read test window;If pixel color is different from background colour, read point, picking marks are terminated Success, otherwise, continues the detection of next pel.
  9. 9. the interactive object pick-up method according to claim 4 based on subsurface three-dimensional space, it is characterised in that described In step S56, if AB and bounding box intersect, the parameter value of the entity and AB intersection points is sought, and by the entity indicia to choose pair As being specially:
    If pickup object is dough sheet, the intersection point of plane where asking AB and dough sheet;If intersection point is in the dough sheet region and online On section AB, at the same than the dough sheet currently chosen apart from viewpoint closer to then the dough sheet being recorded as the dough sheet currently chosen;Wherein, The dough sheet is the convex polygon for forming body surface.
  10. 10. the interactive object pick-up method according to claim 4 based on subsurface three-dimensional space, it is characterised in that institute State in step S56, if AB and bounding box intersect, seek the parameter value of the entity and AB intersection points, and be to choose by the entity indicia Object, it is specially:
    If pickup object is entity, algorithm is rejected according to the back side, rejects physically irrelevant dough sheet;
    Dough sheet after rejecting is concentrated, and judges entity upper panel and the relation of line segment AB and viewpoint, the dough sheet nearest apart from viewpoint As being picked dough sheet.
CN201711105179.7A 2017-11-10 2017-11-10 A kind of interactive object pick-up method based on subsurface three-dimensional space Pending CN107748643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711105179.7A CN107748643A (en) 2017-11-10 2017-11-10 A kind of interactive object pick-up method based on subsurface three-dimensional space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711105179.7A CN107748643A (en) 2017-11-10 2017-11-10 A kind of interactive object pick-up method based on subsurface three-dimensional space

Publications (1)

Publication Number Publication Date
CN107748643A true CN107748643A (en) 2018-03-02

Family

ID=61251170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711105179.7A Pending CN107748643A (en) 2017-11-10 2017-11-10 A kind of interactive object pick-up method based on subsurface three-dimensional space

Country Status (1)

Country Link
CN (1) CN107748643A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111135562A (en) * 2019-12-25 2020-05-12 北京像素软件科技股份有限公司 Plot picking method and device, electronic equipment and computer readable storage medium
CN114898076A (en) * 2022-03-29 2022-08-12 北京城市网邻信息技术有限公司 Model label adding method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992468A (en) * 2015-07-30 2015-10-21 中国石油集团川庆钻探工程有限公司 Fracture-cavern type carbonate hydrocarbon reservoir three-dimensional geological modeling method
CN106611443A (en) * 2015-10-26 2017-05-03 高德信息技术有限公司 Method and device for picking up three-dimensional terrain point

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104992468A (en) * 2015-07-30 2015-10-21 中国石油集团川庆钻探工程有限公司 Fracture-cavern type carbonate hydrocarbon reservoir three-dimensional geological modeling method
CN106611443A (en) * 2015-10-26 2017-05-03 高德信息技术有限公司 Method and device for picking up three-dimensional terrain point

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王剑 等: "三维场景中图形对象的拾取方法", 《机械》 *
申龙斌: "油田勘探开发地质对象三维可视化关键技术研究", 《中国博士学位论文全文数据库 基础科学辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111135562A (en) * 2019-12-25 2020-05-12 北京像素软件科技股份有限公司 Plot picking method and device, electronic equipment and computer readable storage medium
CN111135562B (en) * 2019-12-25 2023-10-20 北京像素软件科技股份有限公司 Land parcel pickup method, apparatus, electronic device and computer readable storage medium
CN114898076A (en) * 2022-03-29 2022-08-12 北京城市网邻信息技术有限公司 Model label adding method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6273334B2 (en) Dynamic selection of surfaces in the real world to project information onto
US10297074B2 (en) Three-dimensional modeling from optical capture
US20190026400A1 (en) Three-dimensional modeling from point cloud data migration
CN108304075B (en) Method and device for performing man-machine interaction on augmented reality device
CN104330074B (en) Intelligent surveying and mapping platform and realizing method thereof
CN106127853B (en) A kind of unmanned plane Analysis of detectable region method
CN108280886A (en) Laser point cloud mask method, device and readable storage medium storing program for executing
US20130300740A1 (en) System and Method for Displaying Data Having Spatial Coordinates
CN106650640A (en) Negative obstacle detection method based on local structure feature of laser radar point cloud
CN102708355A (en) Information processing device, authoring method, and program
CN104866500A (en) Method and device for displaying pictures in classified manner
CN109341702A (en) Route planning method, device, equipment and storage medium in operating area
CN108595560A (en) The methods of exhibiting and system of geographic information data
CN103052933A (en) Multiscale three-dimensional orientation
CN110321885A (en) A kind of acquisition methods and device of point of interest
CN109255749A (en) From the map structuring optimization in non-autonomous platform of advocating peace
CN111870952B (en) Altitude map generation method, device, equipment and storage medium
CN109992107A (en) Virtual control device and its control method
CN110992510A (en) Security scene VR-based automatic night patrol inspection method and system
CN104766365A (en) Three-dimensional visualization method for engineering structure disease information
CN107084740A (en) A kind of air navigation aid and device
CN107748643A (en) A kind of interactive object pick-up method based on subsurface three-dimensional space
US20230224576A1 (en) System for generating a three-dimensional scene of a physical environment
CN108447042A (en) The fusion method and system of urban landscape image data
CN115082648B (en) Marker model binding-based AR scene arrangement method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180302