In GOCAD software, set up the aided modeling method of two-dimentional workplace
Technical field
The present invention relates to water power hydraulic engineering geology dimensional Modeling Technology, specifically, relate to a kind of aided modeling method of in GOCAD software, setting up two-dimentional workplace.
Background technology
The development of Along with computer technology, the Computerized three-dimensional technical application has extended to all trades and professions.Under this trend, engineering design field is also progressively advancing the Computerized three-dimensional technology, and the three dimensional stress work of water power design is also imperative.Hydroelectric project design be leap multi-specialized, relate to multi-field collaborative processes.GOCAD software is the three-dimensional software in geology field, can support three dimensional stress analysis, demonstration and the editor of geology data well and make up three-dimensional geological model, is the comparatively desirable basic platform of the three-dimensional work of hydroelectric project geology.
In the three-dimensional course of work of hydroelectric project geology; On the one hand; The summary of need be under three-dimensional environment geologic body and attribute spread rule thereof being carried out macroscopic view is generally changed, and on the other hand, also need combine the designs of exploration data and hydraulic structure to carry out accurate localization; The ad-hoc location of elephant of verifying is over the ground precisely edited, is revised, with the geology characteristics of objects of accurate expression relevant range.
Because the three-dimensional software system is a virtual demonstration three-dimensional scence on the computer display of two dimension; Directly in three-dimensional environment to point (or object) pick up, with reference to move, all directly perceived inadequately, convenient during operation such as plane measurement; Need two dimensionization under therefore a lot of situation; On certain specific two-dimensional surface, the profile of operand is accurately adjusted, GOCAD lacks effective means to this.
Summary of the invention
Technical matters to be solved by this invention is: as replenishing of GOCAD three-dimensional modeling means; A kind of aided modeling method of in GOCAD software, setting up two-dimentional workplace is proposed; In three dimensions, make up suitable two-dimensional operation plane flexibly, quickly as with reference to workplace; Through on two-dimentional workplace accurately, intuitively and easily edit-modify point the mode of line, accurate location and the adjustment of the elephant of realizing verifying over the ground.
The present invention solves the problems of the technologies described above the scheme that is adopted: in GOCAD software, set up the aided modeling method of two-dimentional workplace, may further comprise the steps:
A. near by the adjustment object, define a space plane;
B. in GOCAD software, generate this plane as two-dimentional workplace;
C. calculate the meet line of this workplace and geology object;
D. in two-dimentional workplace with reference to and revise the meet line;
E. verify to resemble over the ground and adjust.
Further, among the step a,, choose near one of following mode suitable space plane of definition quilt adjustment object according to the actual conditions of being adjusted object:
The tendency and the inclination angle of a central point, space plane are provided; Perhaps,
The normal vector of a central point, space plane is provided; Perhaps,
Not three points of conllinear are provided;
In addition, scope---the size of assigned work face of radius with the definition plane is provided.
Further, among the step b, each parameter through workplace described in the step a generates workplace, and concrete grammar is: at first express with unified central point and planar process the various definitions form of space plane to approach vector; If contain tendency dip, the inclination angle ang of geological occurrence form in the plane parameter, converting normal direction into is v (sin (ang) * sin (dip), sin (ang) * cos (dip), cos (ang)); If provide three some p1 (x1, y1, z1) p2 (x2, y2, z2) and p3 (x3, y3, z3), then with 3 be the triangle core on summit as central point, and calculate the plane normal vector of 3 decisions; And then, to parameters such as, radiuses, in GOCAD, make up a plane through central point, planar process as two-dimentional workplace.
Further, among the step c, ask the concrete grammar of the meet line of this workplace and geology object to be: in GOCAD software, to call Gocad::PLineAPI::create from tsurf intersection, try to achieve the meet line of workplace and geology object.
Further, in the steps d, the method that said meet line is made amendment is: in two-dimentional workplace, said meet line is carried out edit-modify, perhaps draw a new trace again as the meet line with reference to former meet line.
Further, among the step e, verifying over the ground resembles the method for making amendment and is: with on the new meet line as constraint, confrontation resembles and carries out the DSI interpolation over the ground, thereby adjusts its form.
The invention has the beneficial effects as follows: appointed positions makes up assigned work face neatly in three dimensions, and in computing machine, is shown as two-dimentional form, and three-dimensional coordinate is automatically converted to the two-dimensional coordinate on this assigned work face; The editor of related object, retouching operation can accomplish on intuitive and convenient ground on this face, thereby have solved two, the mutual transfer problem of three-dimensional fix, bring great convenience for the accurate adjustment work of the thin portion of object.
Embodiment
The aided modeling method of in GOCAD software, setting up two-dimentional workplace among the present invention may further comprise the steps:
(1) near by the adjustment object, defines a space plane;
(2) in GOCAD software, generate this plane as two-dimentional workplace;
(3) calculate the meet line of this workplace and geology object;
(4) in two-dimentional workplace with reference to and revise the meet line;
(5) verify over the ground to resemble and make amendment.
In step (1), defining a workplace has three kinds of methods:
A central point, the tendency of space plane, inclination angle are provided; Perhaps,
The normal vector of a central point, space plane is provided; Perhaps,
Not three points of conllinear are provided.
In addition, scope---the size of assigned work face of radius with the definition plane is provided.
In step (2), according to the parameter generation workplace of step (1) input, concrete grammar is following: unify the definition of face to represent and use with the method for expressing of point, normal direction.
Representing if the plane in the step (1) is tendency dip, the inclination angle ang with central point and face, need be normal direction with the occurrence format conversion so, i.e. v (sin (ang) * sin (dip), sin (ang) * cos (dip), cos (ang)).
If workplace be with three some p1 (x1, y1, z1) p2 (x2, y2, z2) and p3 (x3, y3 z3), then both need calculate the plane normal direction, also needed centering point (is the leg-of-mutton center of gravity on summit with these 3).Its algorithm is following:
Algorithm 1 is by 3 normal direction of asking face on the face
Vector3v1(p1.x(),p1.y(),p1.z());
Vector3v2(p2.x(),p2.y(),p2.z());
Vector3v3(p3.x(),p3.y(),p3.z());
Vector3v=(v2-v1)&(v3-v1);
Algorithm 2 ask p1 (x1, y1, z1), p2 (x2, y2, z2) and p3 (x3, y3 z3) are the leg-of-mutton center of gravity on summit
Pt.x=(x1+x2+x3)/3;
Pt.y=(y1+y2+y3)/3;
Pt.z=(z1+z2+z3)/3;
Then by on the workplace a bit, workplace normal direction and workplace radius generate workplace, algorithm is following:
Algorithm 3 by 1 p on the face (x, y, z), workplace normal direction norm (nz) generating radius is the face of L for nx, ny,
In step (3), ask the concrete grammar of the meet line of this workplace and geology object to be: in GPCAD software, to call Gocad::PLineAPI::create_from_tsurf_intersection, try to achieve the meet line of workplace and geology object.
In step (4); There is dual mode that said meet line is made amendment; The first pulls the point on the meet line, revises original meet line, and it two is again standardized new meet lines; If all be background when in GOCAD, pulling, just can guarantee a little all to drop on the workplace with the workplace with setting-out.
In step (5), be obligatory point with the point on the intersection of new (or revising the back), verifying over the ground resembles (face) and carries out the DSI interpolation, thereby revises its form.Need to specify new intersection, restrained, effect of constraint value scope and iteration step number, Interpolation Process is accomplished by program.Algorithm is following:
Algorithm 4 is specified constrained lines, restrained, effect of constraint value scope and iteration step number operation DSI interpolation