CN110851930A - WebGL-based surface wiring design method and system - Google Patents

WebGL-based surface wiring design method and system Download PDF

Info

Publication number
CN110851930A
CN110851930A CN201910967806.0A CN201910967806A CN110851930A CN 110851930 A CN110851930 A CN 110851930A CN 201910967806 A CN201910967806 A CN 201910967806A CN 110851930 A CN110851930 A CN 110851930A
Authority
CN
China
Prior art keywords
data
module
point
pipeline
interpolation
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
CN201910967806.0A
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.)
Tianjin University
Original Assignee
Tianjin University
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 Tianjin University filed Critical Tianjin University
Priority to CN201910967806.0A priority Critical patent/CN110851930A/en
Publication of CN110851930A publication Critical patent/CN110851930A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to internet and terrain display, in particular to a design method and a system for displaying a three-dimensional model of a ground surface by using detected ground surface coordinates and performing wiring operation on the three-dimensional model of the ground surface. The invention relates to a surface wiring design method and a system based on WebGL, which comprises the following steps: leading the detected surface position coordinates and the well drilling position coordinates into a system database through excel; the second step is that: interpolation processing is carried out on the earth surface data by configuring interpolation parameters; the third step: js is used for realizing three-dimensional display of the surface model and the well site model based on WebGL; the fourth step: placing a ground surface placing object on the ground surface model; the fifth step: connecting the surface placer and the well drilling to realize the arrangement of well site pipelines; and a sixth step: storing the pipeline data into a database; the seventh step: and calculating construction cost by using the pipeline information. The invention is mainly applied to the terrain and pipeline display occasions.

Description

WebGL-based surface wiring design method and system
Technical Field
The invention relates to the technical field of internet, in particular to a surface wiring design method and system based on WebGL.
Background
In the early development stage of mining industry, because computer technology is still immature, mining data is recorded by manual drawings and paper tables. As computer technology developed, mining data began to be recorded and retained using spreadsheets, CAD electronic drawings and other electronic files, and mining data modeling and resource reserve estimation was performed using mine modeling software. With the continuous mining of mines and the increasing amount of mine computation, more and more foreign software companies are being motivated to research installable client software for three-dimensional visualization of mines to reduce the complexity and repeatability of geologists.
The three-dimensional visual mine modeling technology has been developed for decades at home and abroad, and in recent years, many three-dimensional mine modeling software are available at home and abroad. The research of the three-dimensional visual modeling technology of the mine in foreign countries starts earlier, and the software of the countries such as the United kingdom, Australia and the like is mature.
At present, the key technical problems mainly comprise uncertainty of three-dimensional spatial data, complexity of geologic body spatial relationship, limitation of spatial analysis and application and the like. For the well site wiring problem, no proper solution is provided at home at present.
WebGL is a technique used to draw and render complex three-dimensional graphics (3D graphics) on web pages, and to allow users to interact with them. With the rapid improvement of graphics card technology, memory banks and CPU performance on a computer, the effect of 3D graphics drawn at a browser end is more and more real. Js is a front-end three-dimensional modeling open source library based on open source of WebGL, and the occurrence of the open source library greatly reduces the threshold of three-dimensional modeling. The method also provides support for the canvas in the 2D form, and has the advantages of strong expansibility, high response speed, support of a math library and the like. Js' Editor module is used for realizing three-dimensional modeling and visualization.
Disclosure of Invention
The invention provides a design method and a system for dynamically arranging wellsite pipelines on an imported and generated surface model, aiming at overcoming the defects of the prior art. The design method and the system can display a three-dimensional model of the earth surface and perform wiring operation on the three-dimensional model of the earth surface after the detected earth surface coordinates are imported into the system.
The invention can be realized by adopting the following technical scheme.
The ground surface wiring design method based on the WebGL comprises the following steps:
the first step is as follows: leading the detected surface position coordinates and the well drilling position coordinates into a system database through excel;
the second step is that: interpolation processing is carried out on the earth surface data by configuring interpolation parameters;
the third step: js is used for realizing three-dimensional display of the surface model and the well site model based on WebGL;
the fourth step: placing a ground surface placing object on the ground surface model;
the fifth step: connecting the surface placer and the well drilling to realize the arrangement of well site pipelines;
and a sixth step: storing the pipeline data into a database;
the seventh step: and calculating construction cost by using the pipeline information.
The earth surface model is composed of triangular plates, the Z value of a three-dimensional coordinate in the range of the model needs to be interpolated, and meanwhile, the three.js in the WebGL provides a function API of the triangular plates composed of points, so that the construction of the earth surface model can be completed after the earth surface interpolation points are solved.
The earth model modeling method comprises the following specific steps:
inputting an algorithm: set of surface discrete points P
And (3) outputting an algorithm: a three-dimensional coordinate set of earth surface interpolation points;
step 1: after a time batch is determined, acquiring a surface discrete point data set P under the batch;
step 2: determining power p, an upper limit b and a lower limit a of the number of sample points, and a radius r of a search domain;
and step 3: traversing the sample point data, and determining the range of the earth surface, X-axis range X1 and X2; range of Y axis
Y1, Y2; wherein X1, Y1 are minimum values, X2, Y2 are maximum values;
and 4, step 4: gridding the earth surface range through a step length parameter input by a user, calculating Z-axis coordinates of an interpolation point after the interpolation point is obtained, searching for sample points in a circle with the interpolation point as the center, if the number of the sample points is less than a, expanding r by one time and continuing searching, and if the number of the sample points is still less than a, recursively executing the step until the number of the sample points reaches a value more than a lower limit; if the number of points is greater than b, b points which are close to the interpolation point are selected;
and 5: after the sample points are determined, a weight calculation formula is used
Where p is an arbitrary real number greater than 0, and is usually 2, hiIs the distance from the sample point to the interpolation point
Figure BDA0002231080200000022
Figure BDA0002231080200000023
Calculating an interpolation point weight coefficient Wi;
step 6: accumulating each weight coefficient to be Ws, calculating the Z value of each sample point after subtracting the center point of the ore deposit and the value of a weight system Wi as the Z value accumulation sum Zs of the interpolation points, and enabling the Z value of the interpolation points to pass through a formula
Figure BDA0002231080200000024
Obtaining;
and 7: calculating the Z value of each interpolation point according to the algorithm in sequence, and returning the result as a set to a front-end page;
and 8: after the front-end page acquires data, layer triangle surfaces are combined through a Parametric geometry function of three.
Regarding three edges of each triangular plate as three line segments on a two-dimensional plane, and searching for (x, y) coordinates of intersection points of a pipeline plane and the intersected triangular plates, wherein x is the abscissa of the intersection points, and y is the ordinate of the intersection points; the calculation process is as follows: for the starting point coordinate (x)1,y1) And endpoint coordinate (x)2,y2) And this stripCoordinates (x) of two points of a straight line and a certain triangle segment3,y3),(x4,y4). The normal of the pipeline projection line segment is:
Figure BDA0002231080200000025
wherein nx is a normal vector on the abscissa, ny is a normal vector on the ordinate, (x)1,y1) As the starting point coordinates and (x)2,y2) Is the endpoint coordinate. The normal corresponding to a certain line segment of the triangular plate is as follows:
Figure BDA0002231080200000026
wherein nsx is the normal vector on the abscissa, nsy is the normal vector on the ordinate, (x)3,y3) Is the starting point coordinate of a line segment on the triangle sheet, (x)4,y4) And coordinates of the end point of the line segment on the triangular plate. Cross multiplication according to two normals:
dx=nx*nsy-nsx*ny
where (nx, ny) is the normal vector of the pipeline projection, (nsx, nsy) is the normal vector on the triangle, and dx is the cross product of the two normals. If dx is equal to 0, it represents that the two normals are collinear, no operation is performed, and if dx is greater than 0, the coordinates of the intersection of the two line segments are calculated:
wherein (nx, ny) is the normal vector of the pipeline projection, (nsx, nsy) is the normal vector on the triangle patch, (x)3,y3) Is the starting point coordinate of a line segment on the triangle sheet, (x)4,y4) The coordinate of the end point of a line segment on the triangle sheet, (x)1,y1) As the starting point coordinates and (x)2,y2) As the end point coordinate, dx is the cross product of two normal lines, (px, py) is the intersection point coordinate of two line segments, and after obtaining the two-dimensional coordinate of the intersection point (px, py), the two-dimensional coordinate of the intersection point (px, py) needs to be further processed by the following formula:
Figure BDA0002231080200000032
the coordinate Z on the Z axis of the point is calculated, where (x)3,y3,z3) And (x)4,y4,z4) The coordinates of the two intersection points of the line segment and the triangular plate are shown, and px is the abscissa of the two calculated intersection points.
The invention can also be realized by the following technical scheme.
The WebGL-based ground surface wiring design system comprises a data import module, a ground surface modeling module, a well site pipeline drawing module and a data statistics module;
the data import module is used for importing data into a database and specifically comprises an earth surface coordinate data import module, a drilling coordinate data import module and a coordinate deletion module;
the earth surface modeling module is used for earth surface display according to related data and specifically comprises an earth surface display module, an earth surface interpolation parameter setting module, an interpolation earth surface data storage module and an interpolation earth surface data deleting module;
the well site pipeline drawing module is used for displaying pipelines and specifically comprises a drilling hole generation display module, a centralized control room placing module, a centralized control room moving module, an earth surface pipeline generation module, an earth surface pipeline storage module and an earth surface pipeline deleting module;
the data statistics module comprises a construction cost importing module and a data statistics module.
The data import module imports data required by constructing the earth surface and the pipeline into a database, and the earth surface modeling module carries out interpolation processing on the earth surface data according to the configured parameters and the imported data and then generates a three-dimensional earth surface model; and by utilizing the generated three-dimensional surface model data, the well site pipeline drawing module is used for drawing a pipeline by selecting a starting point and a finishing point and storing the pipeline data into a database, and the well site pipeline data statistics module is used for summarizing and counting the well site data and generating a report by utilizing the pipeline data in the database.
The invention has the characteristics and beneficial effects that:
the invention has the following beneficial effects: the invention relates to a WebGL-based surface wiring design method and a WebGL-based surface wiring design system, which can realize three-dimensional display of a surface and surface pipelines in a browser, and draw well site pipelines by utilizing surface information and well site information, so that dynamic arrangement and three-dimensional display of the well site pipelines are realized. The invention can obtain the length of the pipeline and the cost required by construction by using the drawn well site pipeline information. The system provided by the invention is simple to operate, can well realize surface generation and wiring operation of the well site, and performs visual management on well site data.
Description of the drawings:
in order to more clearly illustrate the technical solution of the present invention, the following will be briefly described with reference to the accompanying drawings:
FIG. 1 is a flow chart of a WebGL-based surface wiring system of the present invention;
fig. 2 is a schematic composition diagram of a surface wiring system based on WebGL of the present invention.
FIG. 3 is a schematic representation of the present invention of surface interpolation.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. As shown in fig. 1, the method and system for designing surface wiring based on WebGL of the present invention comprises the following steps:
the first step is as follows: leading the detected surface position coordinates and the well drilling position coordinates into a system database through excel;
the second step is that: interpolation processing is carried out on the earth surface data by configuring interpolation parameters;
the third step: js is used for realizing three-dimensional display of the surface model and the well site model based on WebGL;
the fourth step: placing a ground surface placing object on the ground surface model;
the fifth step: connecting the surface placer and the well drilling to realize the arrangement of well site pipelines;
and a sixth step: storing the pipeline data into a database;
the seventh step: and calculating construction cost by using the pipeline information.
As shown in FIG. 2, the invention provides a surface wiring design system based on WebGL, which comprises a data import module, a surface modeling module, a wellsite pipeline drawing module and a data statistics module.
The data import module comprises a ground surface coordinate data import module, a drilling hole coordinate data import module and a coordinate deletion module.
The earth surface modeling module comprises an earth surface display module, an earth surface interpolation parameter setting module, an interpolation earth surface data storage module and an interpolation earth surface data deleting module.
The well site pipeline drawing module comprises a drilling hole generation display module, a centralized control room placing module, a centralized control room moving module, an earth surface pipeline generation module, an earth surface pipeline storage module and an earth surface pipeline deleting module.
The well site pipeline data statistics module comprises a construction cost importing module and a data statistics module.
The function of the data import module can import the data needed to build the surface and pipeline into the database. The surface modeling module performs interpolation processing on the surface data according to the configured parameters and the imported data, then generates a three-dimensional surface model, and the well site pipeline drawing module can perform pipeline drawing by selecting a starting point and an end point and store the pipeline data in a database by using the generated three-dimensional surface model data. The well site pipeline data statistical module can collect statistics on the well site data and generate a report by using the pipeline data in the database.
As will be described in detail below with reference to FIG. 1, the present invention is based on a WebGL surface wiring design method, which includes T1-T7:
and T1, importing the surface data and the drilling data of the advanced measurement number into a Mongo database by using excel, wherein the data needs to comprise drilling coordinate information of a well site and collected point set information of the surface position.
And T2, configuring interpolation parameters, wherein the parameters mainly comprise power, minimum point number, maximum point number and step length. And then, carrying out interpolation processing on the surface data by using the interpolation parameters. The interpolation algorithm of the earth's surface is explained in detail below.
Firstly, the surface data imported from T1 is taken out from the database, and because the distance between the surface point sets is too large, we need to interpolate the surface data, artificially predict and add some surface coordinate points. The relationship between the points is shown in fig. 3.
The earth surface model is composed of triangular facets, so that the Z value of a three-dimensional coordinate in the range of the model needs to be interpolated, and meanwhile, the three.js in the WebGL provides a function API of the triangular facets composed of points, so that the construction of the earth surface model can be completed after the earth surface interpolation points are solved. The modeling algorithm is described as follows:
inputting an algorithm: set of surface discrete points P
And (3) outputting an algorithm: and (4) collecting the three-dimensional coordinates of the earth surface interpolation points.
Step 1: after a time batch is determined, acquiring a surface discrete point data set P under the batch;
step 2: determining power p, an upper limit b and a lower limit a of the number of sample points, and a radius r of a search domain;
and step 3: traversing the sample point data to determine the extent of the surface (X-axis extent X1, X2; Y-axis extent)
Y1, Y2; wherein X1, Y1 are minimum, X2, Y2 are maximum);
and 4, step 4: gridding the earth surface range through a step length parameter input by a user, calculating Z-axis coordinates of an interpolation point after the interpolation point is obtained, searching for sample points in a circle with the interpolation point as the center, if the number of the sample points is less than a, expanding r by one time and continuing searching, and if the number of the sample points is still less than a, recursively executing the step until the number of the sample points reaches a value more than a lower limit; if the number of points is greater than b, b points which are close to the interpolation point are selected;
and 5: after the sample points are determined, a weight calculation formula is used
Figure BDA0002231080200000051
Where p is an arbitrary real number greater than 0, and p is usually 2. h isiIs the distance from the sample point to the interpolation point
Figure BDA0002231080200000053
And calculating an interpolation point weight coefficient Wi.
Step 6: accumulating each weight coefficient to be Ws, calculating the Z value of each sample point after subtracting the center point of the ore deposit and the value of a weight system Wi as the Z value accumulation sum Zs of the interpolation points, and enabling the Z value of the interpolation points to pass through a formulaObtaining;
and 7: calculating the Z value of each interpolation point according to the algorithm in sequence, and returning the result as a set to a front-end page;
and 8: after the front-end page acquires data, layer triangle surfaces are combined through a Parametric geometry function of three.
And T3, loading the mine model and the interpolated earth surface model by using three.
And T4, acquiring the earth surface position information through ray point selection of three. The concrete implementation is as follows: the mouse clicks the screen to obtain a two-dimensional coordinate, a depth coordinate is added, a ray is led out from the point, and the intersection position of the ray and the earth surface triangular plate is the selected position.
T5-connecting the surface placement and the location of the well, the wellsite pipeline is mapped on the irregularly shaped surface. The method of arranging the pipelines is specifically described below.
And starting the wiring operation after obtaining the earth surface model. The difficulty of the wiring problem is how to draw line segments on the irregularly-shaped surface model, and we can know that the surface model consists of triangular plates in three. The method is equivalent to a plane cutting an irregular curved surface, and the obtained pipeline is a curve consisting of a plurality of points. The modeling algorithm at this stage is as follows:
inputting an algorithm: and (4) the interpolated surface point set and the interpolated surface set.
And (3) outputting an algorithm: and (4) arranging the pipeline point sets.
And step 1, extracting a point set and a surface set of the earth surface model according to the earth surface model after interpolation.
Step 2: and clicking by a user to acquire a starting point and an end point of the pipeline, and acquiring the intersection point position of the two points and the earth model by using a Raycaster method of three.
And step 3: and removing the Z coordinate from the extracted triangular plate information of the earth surface model, and projecting the information to a two-dimensional plane.
And 4, step 4: three sides of each triangle are regarded as three line segments on a two-dimensional plane. And (x, y) coordinates of the intersection point of the pipeline plane and the intersecting triangular plate are found, wherein x is the horizontal coordinate of the intersection point, and y is the vertical coordinate of the intersection point.
The calculation process is as follows: for the starting point coordinate (x)1,y1) And endpoint coordinate (x)2,y2) And the coordinates (x) of two points of this line and a certain triangle segment3,y3),(x4,y4). The normal of the pipeline projection line segment is:
Figure BDA0002231080200000061
wherein nx is a normal vector on the abscissa, ny is a normal vector on the ordinate, (x)1,y1) As the starting point coordinates and (x)2,y2) Is the endpoint coordinate. The normal corresponding to a certain line segment of the triangular plate is as follows:
wherein nsx is the normal vector on the abscissa, nsy is the normal vector on the ordinate, (x)3,y3) Is the starting point coordinate of a line segment on the triangle sheet, (x)4,y4) And coordinates of the end point of the line segment on the triangular plate. Cross multiplication according to two normals:
dx=nx*nsy-nsx*ny
where (nx, ny) is the normal vector of the pipeline projection, (nsx, nsy) is the normal vector on the triangle, and dx is the cross product of the two normals. If dx equals 0, it means that the two normals are collinear, and no operation is performed. If dx is greater than 0, the coordinates of the intersection of the two segments are calculated:
Figure BDA0002231080200000063
wherein (nx, ny) is the normal vector of the pipeline projection, (nsx, nsy) is the normal vector on the triangle patch, (x)3,y3) Is the starting point coordinate of a line segment on the triangle sheet, (x)4,y4) The coordinate of the end point of a line segment on the triangle sheet, (x)1,y1) As the starting point coordinates and (x)2,y2) For the endpoint coordinate, dx is the cross product of the two normals and (px, py) is the coordinate of the intersection of the two line segments. After obtaining the two-dimensional coordinates of the intersection point (px, py), the two-dimensional coordinates of the intersection point (px, py) are obtained by the following formula:
Figure BDA0002231080200000064
the coordinate Z on the Z axis of the point is calculated, where (x)3,y3,z3) And (x)4,y4,z4) The coordinates of the two intersection points of the line segment and the triangular plate are shown, and px is the abscissa of the two calculated intersection points.
And 5: calculating the intersection points in the fourth step for all the intersected triangular plates, sorting the obtained point sets according to the sequence of horizontal and vertical coordinates, removing repeated points, connecting all the points by using a line drawing method in three
T6, storing the point set of well site surface pipelines into Mongo database for later use.
And T7, performing data statistics on the pipeline data stored in the database and calculating construction cost. The concrete implementation is as follows: and taking out the previously stored surface pipeline data and unit construction cost from the database, and calculating a total cost result through the following formula:
sum=πr2*l*p
where sum is the calculated total cost, r is the pipeline radius, l is the calculated total pipeline length, and p is the unit construction cost of introduction. Finally, the construction cost required by the whole wiring operation can be obtained.

Claims (6)

1. A surface wiring design method based on WebGL is characterized by comprising the following steps:
the first step is as follows: leading the detected surface position coordinates and the well drilling position coordinates into a system database through excel;
the second step is that: interpolation processing is carried out on the earth surface data by configuring interpolation parameters;
the third step: js is used for realizing three-dimensional display of the surface model and the well site model based on WebGL;
the fourth step: placing a ground surface placing object on the ground surface model;
the fifth step: connecting the surface placer and the well drilling to realize the arrangement of well site pipelines;
and a sixth step: storing the pipeline data into a database;
the seventh step: and calculating construction cost by using the pipeline information.
2. The method as claimed in claim 1, wherein the surface model is composed of triangle slices, and the Z value of the three-dimensional coordinate in the range of the model is interpolated, and three.js in the WebGL provides the function API of triangle slices composed of points, so that the construction of the surface model can be completed after the surface interpolation points are found.
3. The WebGL-based surface wiring design method as claimed in claim 1, wherein the surface model modeling method comprises the following specific steps:
inputting an algorithm: and (3) a surface discrete point set P, and the algorithm outputs: a three-dimensional coordinate set of earth surface interpolation points;
step 1: after a time batch is determined, acquiring a surface discrete point data set P under the batch;
step 2: determining power p, an upper limit b and a lower limit a of the number of sample points, and a radius r of a search domain;
and step 3: traversing the sample point data, and determining the range of the earth surface, X-axis range X1 and X2; range of Y axis
Y1, Y2; wherein X1, Y1 are minimum values, X2, Y2 are maximum values;
and 4, step 4: gridding the earth surface range through a step length parameter input by a user, calculating Z-axis coordinates of an interpolation point after the interpolation point is obtained, searching for sample points in a circle with the interpolation point as the center, if the number of the sample points is less than a, expanding r by one time and continuing searching, and if the number of the sample points is still less than a, recursively executing the step until the number of the sample points reaches a value more than a lower limit; if the number of points is greater than b, b points which are close to the interpolation point are selected;
and 5: after the sample points are determined, a weight calculation formula is used
Figure FDA0002231080190000011
Where p is an arbitrary real number greater than 0, and is usually 2, hiIs the distance from the sample point to the interpolation point
Figure FDA0002231080190000012
Calculating an interpolation point weight coefficient Wi;
step 6: accumulating each weight coefficient to be Ws, calculating the Z value of each sample point after subtracting the center point of the ore deposit and the value of a weight system Wi as the Z value accumulation sum Zs of the interpolation points, and enabling the Z value of the interpolation points to pass through a formula
Figure FDA0002231080190000013
Obtaining;
and 7: calculating the Z value of each interpolation point according to the algorithm in sequence, and returning the result as a set to a front-end page;
and 8: after the front-end page acquires data, layer triangle surfaces are combined through a Parametric geometry function of three.
4. The WebGL-based ground surface wiring design method as claimed in claim 1, wherein three edges of each triangular plate are regarded as three line segments on a two-dimensional plane, and (x, y) coordinates of intersection points of a pipeline plane and the intersecting triangular plates are found, wherein x is an intersection point abscissa and y is an intersection point ordinate; the calculation process is as follows: for the starting point coordinate (x)1,y1) And endpoint coordinate (x)2,y2) And the coordinates (x) of two points of this line and a certain triangle segment3,y3),(x4,y4) The normal of the projection line segment of the pipeline is:
Figure FDA0002231080190000021
wherein nx is a normal vector on the abscissa, ny is a normal vector on the ordinate, (x)1,y1) As the starting point coordinates and (x)2,y2) Is the endpoint coordinate. The normal corresponding to a certain line segment of the triangular plate is as follows:
wherein nsx is the normal vector on the abscissa, nsy is the normal vector on the ordinate, (x)3,y3) Is the starting point coordinate of a line segment on the triangle sheet, (x)4,y4) And coordinates of the end point of the line segment on the triangular plate. Cross multiplication according to two normals:
dx=nx*nsy-nsx*ny
where (nx, ny) is the normal vector of the pipeline projection, (nsx, nsy) is the normal vector on the triangle, and dx is the cross product of the two normals. If dx is equal to 0, it represents that the two normals are collinear, no operation is performed, and if dx is greater than 0, the coordinates of the intersection of the two line segments are calculated:
Figure FDA0002231080190000023
wherein (nx, ny) is the normal vector of the pipeline projection, (nsx, nsy) is the normal vector on the triangle patch, (x)3,y3) Is the starting point coordinate of a line segment on the triangle sheet, (x)4,y4) The coordinate of the end point of a line segment on the triangle sheet, (x)1,y1) As the starting point coordinates and (x)2,y2) As the end point coordinate, dx is the cross product of two normal lines, (px, py) is the intersection point coordinate of two line segments, and after obtaining the two-dimensional coordinate of the intersection point (px, py), the two-dimensional coordinate of the intersection point (px, py) needs to be further processed by the following formula:
the coordinate Z on the Z axis of the point is calculated, where (x)3,y3,z3) And (x)4,y4,z4) The coordinates of the two intersection points of the line segment and the triangular plate are shown, and px is the abscissa of the two calculated intersection points.
5. A surface wiring design system based on WebGL is characterized by comprising a data import module, a surface modeling module, a well site pipeline drawing module and a data statistics module;
the data import module is used for importing data into a database and specifically comprises an earth surface coordinate data import module, a drilling coordinate data import module and a coordinate deletion module;
the earth surface modeling module is used for earth surface display according to related data and specifically comprises an earth surface display module, an earth surface interpolation parameter setting module, an interpolation earth surface data storage module and an interpolation earth surface data deleting module;
the well site pipeline drawing module is used for displaying pipelines and specifically comprises a drilling hole generation display module, a centralized control room placing module, a centralized control room moving module, an earth surface pipeline generation module, an earth surface pipeline storage module and an earth surface pipeline deleting module;
the data statistics module comprises a construction cost importing module and a data statistics module.
6. The WebGL-based ground surface wiring design system of claim 5, wherein the data import module imports data required for constructing the ground surface and pipelines into the database, and the ground surface modeling module interpolates ground surface data according to configured parameters and the imported data and then generates a three-dimensional ground surface model; and by utilizing the generated three-dimensional surface model data, the well site pipeline drawing module is used for drawing a pipeline by selecting a starting point and a finishing point and storing the pipeline data into a database, and the well site pipeline data statistics module is used for summarizing and counting the well site data and generating a report by utilizing the pipeline data in the database.
CN201910967806.0A 2019-10-12 2019-10-12 WebGL-based surface wiring design method and system Pending CN110851930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910967806.0A CN110851930A (en) 2019-10-12 2019-10-12 WebGL-based surface wiring design method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910967806.0A CN110851930A (en) 2019-10-12 2019-10-12 WebGL-based surface wiring design method and system

Publications (1)

Publication Number Publication Date
CN110851930A true CN110851930A (en) 2020-02-28

Family

ID=69597316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910967806.0A Pending CN110851930A (en) 2019-10-12 2019-10-12 WebGL-based surface wiring design method and system

Country Status (1)

Country Link
CN (1) CN110851930A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060217947A1 (en) * 2003-03-14 2006-09-28 Cesar Castanon Fernandez Method for determining the physicochemical properties of a three-dimensional body
KR101552828B1 (en) * 2015-05-27 2015-09-14 (주)이지스 Method for Obtaining Polygon Information of Three-dimensional Object Model
CN109558639A (en) * 2018-10-31 2019-04-02 天津大学 A kind of two three-dimensional borehole design methods and system combined based on WebGL
CN109979002A (en) * 2019-02-28 2019-07-05 华南机械制造有限公司 Scenario building system and method based on WebGL three-dimensional visualization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060217947A1 (en) * 2003-03-14 2006-09-28 Cesar Castanon Fernandez Method for determining the physicochemical properties of a three-dimensional body
KR101552828B1 (en) * 2015-05-27 2015-09-14 (주)이지스 Method for Obtaining Polygon Information of Three-dimensional Object Model
CN109558639A (en) * 2018-10-31 2019-04-02 天津大学 A kind of two three-dimensional borehole design methods and system combined based on WebGL
CN109979002A (en) * 2019-02-28 2019-07-05 华南机械制造有限公司 Scenario building system and method based on WebGL three-dimensional visualization

Similar Documents

Publication Publication Date Title
US8655632B2 (en) Gridless geological modeling
CN102609986B (en) Ore body modeling system in digital mine and modeling and detecting method of ore body modeling system
US20190187330A1 (en) Systems and methods to build sedimentary attributes
CN100530167C (en) Solid body mineral deposit three-dimensional visual reserves calculation system and computation method
US10795053B2 (en) Systems and methods of multi-scale meshing for geologic time modeling
Zhang et al. A new methodology for block identification and its application in a large scale underground cavern complex
GB2474740A (en) Gridless geological modeling of a structural framework
Wu et al. Three-dimensional geological modeling and its application in digital mine
CN102609982B (en) Topology discovery method of space geological data based on unstructured mode
CN105118091B (en) A kind of method and system constructing the non-homogeneous geology mesh surface model of more precision
Wen et al. Efficient 3D implementation of local-global upscaling for reservoir simulation
CN103729880A (en) Geological exploring ore body three-dimensional modeling system
CN111383336A (en) Three-dimensional geological model construction method
CN111783304A (en) Simulation analysis method and device for mine, equipment and storage medium
CN112150582B (en) Multi-modal data-oriented geological profile approximate expression method
CN109376209B (en) Contaminated site database 3D model display system
CN110610539A (en) Stratum curved surface construction method, device, equipment and storage medium
CN102609614B (en) Excavation analysis method aiming at complex ore body
CN110490241A (en) A kind of horizontal well parameter optimization method and device
CN107507179B (en) Rock-soil mass quantitative analysis method based on GOCAD
CN115984503B (en) Geological profile generation method, system, electronic equipment and medium
Seng et al. Visualization of large scale geologically related data in virtual 3D scenes with OpenGL
Cai et al. Numerical manifold method with local pixel representation of finite covers for two-dimensional problems having complex discontinuities
Zhou et al. Lithology-based 3d modeling of urban geological attributes and their engineering application: a case study of Guang’an city, SW China
CN110851930A (en) WebGL-based surface wiring design 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