Profile drawing system and method based on three-dimensional geological modeling software and AutoCAD

By automatically converting the three-dimensional profile into two-dimensional profile in the collaborative design of three-dimensional geological modeling software and AutoCAD, the problem of low manual conversion efficiency and accuracy is solved, and the work efficiency and quality are significantly improved.

CN119418000APending Publication Date: 2025-02-11CHINA RAILWAY ERYUAN ENGINEERING GROUP CO LTD +1

Patent Information

Application Number
CN202411478579.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In the prior art, when manually converting a three-dimensional cross-sectional view into a two-dimensional cross-sectional view, it is time-consuming and labor-intensive, with low working efficiency and accuracy, and quality problems are prone to occur when the two-dimensional cross-sectional view is updated.

Method used

Using the profile drawing method based on three-dimensional geological modeling software and AutoCAD, the geological boundaries on the three-dimensional section are obtained and classified according to the layer, coordinate conversion is performed to generate a two-dimensional sectional picture. .

Benefits of technology

It realizes automatic conversion of three-dimensional profiles into two-dimensional profiles to avoid human errors and greatly improves work efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119418000A_ABST
    Figure CN119418000A_ABST
Patent Text Reader

Abstract

The invention relates to the field of computer aided design, and provides a section drawing system and method based on three-dimensional geologic modeling software and AutoCAD, and the method comprises the steps: constructing a three-dimensional geologic section map through the three-dimensional geologic modeling software, and then projecting the three-dimensional section map into a two-dimensional section map in the line direction. The method specifically comprises the following steps of: importing line information and a three-dimensional profile into a DWG (Discrete Wavelet Graph); then, acquiring geological boundaries on the three-dimensional profile map, and classifying according to layers to distinguish stratum attributes of the geological boundaries; finally, coordinate transformation is carried out on the geological boundary lines on the three-dimensional profile map one by one, and point set coordinates of the geological boundary lines of the two-dimensional profile map are obtained; and finally, drawing a two-dimensional geological boundary on the basis of two-dimensional drawing software according to the point set coordinates to obtain a two-dimensional profile map. According to the method, the three-dimensional profile map sectioned by the three-dimensional modeling software can be automatically drawn into the two-dimensional profile map, human errors are avoided, the working efficiency and quality are greatly improved, practicability is high, and the method has high application and popularization value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of computer-aided design, and in particular to a section drawing system and method based on three-dimensional geological modeling software and AutoCAD. Background Art

[0002] With the rapid development of my country's railway construction, traditional geological exploration and design methods can no longer meet the needs of modern railway construction. The emergence of three-dimensional geological modeling visualization technology has provided strong technical support for solving problems such as complex geological structures and frequent line changes during construction. However, since two-dimensional map data are more concise and clear when expressing geological information, they are easy to read and understand quickly, and various designers and technicians are more familiar with them. Therefore, when doing design work, many of the data directly delivered are still in two-dimensional format. Combining three-dimensional geological modeling visualization technology with two-dimensional map data to give full play to their respective advantages has become an inevitable trend in the industry.

[0003] At present, many industries convert 3D profiles into 2D profiles manually, which usually takes a lot of time and labor, and has low work efficiency. In addition, during the manual conversion process, if the original 3D model or data changes, the 2D profile needs to be manually updated, which is time-consuming and labor-intensive, and is prone to quality problems. Summary of the invention

[0004] The purpose of the present invention is to provide a section drawing system and method based on three-dimensional geological modeling software and AutoCAD to solve the problem that the prior art manual conversion of three-dimensional section drawings into two-dimensional section drawings is time-consuming and labor-intensive, and has low work efficiency and accuracy. The method can automatically draw a three-dimensional section drawing cut by the three-dimensional modeling software into a two-dimensional section drawing, avoid human errors, greatly improve work efficiency and quality, have strong practicality, and have high promotion and application value.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A cross-section drawing method based on three-dimensional geological modeling software and AutoCAD comprises the following steps:

[0007] S1. Construct a three-dimensional geological profile using three-dimensional geological modeling software;

[0008] S2. Project the three-dimensional profile into a two-dimensional profile along the route direction. The specific operations are as follows:

[0009] S21, importing the line information and the three-dimensional section diagram into the DWG drawing;

[0010] S22, obtaining geological boundaries on the three-dimensional cross-section map and classifying them by layer;

[0011] S23, performing coordinate conversion on the geological boundaries on the three-dimensional profile one by one to obtain the point set coordinates of the geological boundaries on the two-dimensional profile;

[0012] S24, using the point set coordinates to draw a two-dimensional geological boundary based on a two-dimensional drawing software to obtain a two-dimensional profile.

[0013] The present invention provides a profile drawing method based on three-dimensional geological modeling software and AutoCAD, including using three-dimensional geological modeling software to construct a three-dimensional geological profile, and then projecting the three-dimensional profile into a two-dimensional profile along the route direction. The specific operation is to import the route information and the three-dimensional profile into a DWG map; then, obtain the geological boundaries on the three-dimensional profile, and classify them by layer; finally, perform coordinate conversion on the geological boundaries on the three-dimensional profile one by one to obtain the point set coordinates of the geological boundaries of the two-dimensional profile; finally, draw the two-dimensional geological boundaries based on AutoCAD with the point set coordinates, and classify the layers to obtain the two-dimensional profile. The method can automatically draw the three-dimensional profile cut by the three-dimensional modeling software into a two-dimensional profile, avoid human errors, greatly improve work efficiency and quality, have strong practicality, and have a high value of popularization and application.

[0014] Furthermore, the three-dimensional geological modeling software includes EVS modeling software.

[0015] Furthermore, the specific operation process of S1 is as follows:

[0016] S11, constructing a geological three-dimensional model according to geological data in a three-dimensional geological modeling software;

[0017] S12, importing the line information into the three-dimensional geological modeling software to obtain the line direction;

[0018] S13. Cut the geological three-dimensional model along the route direction to obtain a three-dimensional cross-sectional view.

[0019] Furthermore, the specific operation method of coordinate transformation in S23 is as follows:

[0020] Obtain the point set coordinates of the geological boundary on the 3D profile based on AutoCAD;

[0021] Calculate the distance between the points in the three-dimensional point set and the line respectively, and the obtained distance is the X coordinate of the corresponding two-dimensional geological boundary point set;

[0022] The Z coordinate of the point set on the three-dimensional geological boundary is the Y coordinate of the point set on the two-dimensional geological boundary.

[0023] Furthermore,

[0024] The specific operation process of S24 is as follows:

[0025] S241. Based on AutoCAD, the two-dimensional geological boundaries of the same layer are analyzed respectively to obtain multiple regions with the same stratigraphic description;

[0026] S242. Based on AutoCAD, geological description symbols are drawn one by one in the center of the obtained surface area to obtain a two-dimensional cross-section diagram with stratigraphic description.

[0027] Furthermore, the method further includes S3, filling the two-dimensional cross-section with a full pattern according to the geological description information of the two-dimensional cross-section.

[0028] Another object of the present invention is to protect a cross-sectional drawing system.

[0029] A profile drawing system based on three-dimensional geological modeling software and AutoCAD, characterized in that it includes at least one processor and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned profile drawing method based on three-dimensional geological modeling software and AutoCAD.

[0030] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0031] The present invention provides a profile drawing method based on three-dimensional geological modeling software and AutoCAD, including constructing a three-dimensional geological profile using the three-dimensional geological modeling software, and then projecting the three-dimensional profile into a two-dimensional profile along the route direction. The specific operation is to import the route information and the three-dimensional profile into a DWG map; then, obtain the geological boundaries on the three-dimensional profile and classify them by layer; finally, perform coordinate conversion on the geological boundaries on the three-dimensional profile one by one to obtain the point set coordinates of the geological boundaries of the two-dimensional profile; finally, draw the two-dimensional geological boundaries based on AutoCAD using the point set coordinates to obtain a two-dimensional profile. The method can automatically draw the three-dimensional profile cut by the three-dimensional modeling software into a two-dimensional profile, avoid human errors, greatly improve work efficiency and quality, have strong practicality, and have a high value of popularization and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 The present invention is a flow chart of the automatic profile drawing method based on the collaborative design of three-dimensional geological modeling software and AutoCAD.

[0033] Figure 2 The invention discloses a geological three-dimensional model diagram of an automatic section drawing method based on the collaborative design of three-dimensional geological modeling software and AutoCAD.

[0034] Figure 3It is a three-dimensional cross-sectional diagram of the automatic cross-sectional drawing method based on the collaborative design of three-dimensional geological modeling software and AutoCAD of the present invention.

[0035] Figure 4 This is a three-dimensional cross-sectional stratum description illustration diagram of the automatic cross-sectional drawing method based on the collaborative design of three-dimensional geological modeling software and AutoCAD of the present invention.

[0036] Figure 5 The invention discloses a route and a three-dimensional section merging diagram of an automatic section drawing method based on the collaborative design of three-dimensional geological modeling software and AutoCAD.

[0037] Figure 6 It is a two-dimensional profile result diagram of the automatic profile drawing method based on the collaborative design of three-dimensional geological modeling software and AutoCAD of the present invention. DETAILED DESCRIPTION

[0038] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0040] Example 1

[0041] A cross-section drawing method based on 3D geological modeling software and AutoCAD, such as Figure 1 As shown, it includes the following steps:

[0042] S1. Construct a three-dimensional geological profile using three-dimensional geological modeling software;

[0043] The specific operations are as follows:

[0044] S11. Construct a geological three-dimensional model based on geological data in a three-dimensional modeling software to obtain a geological three-dimensional model with stratigraphic description attributes, such as Figure 2 shown.

[0045] S12, import the line information into the EVS modeling software, and Figure 3 As shown, the geological three-dimensional modeling is cut along the line direction to obtain a three-dimensional cross-section diagram. The line is a polyline segment composed of execution and / or circular curves and transition curves.

[0046] S13, such as Figure 4 As shown, the name of the layer where the geological boundary of the obtained three-dimensional cross-section is located is its stratigraphic description;

[0047] S2. Projecting a three-dimensional cross-sectional view: According to the line direction, the projection direction of the two-dimensional cross-sectional view is obtained, and the three-dimensional cross-sectional view is projected into a two-dimensional cross-sectional view according to the projection direction.

[0048] S21, import the line information and the obtained three-dimensional cross-section diagram into a DWG drawing, and its coordinate points are the real projection plane coordinate points, such as Figure 5 shown.

[0049] The coordinate points explained here mean that the line information and the top ground line of the three-dimensional section diagram will completely overlap in space, and are mainly used to express the spatial position relationship between the line information and the three-dimensional section diagram.

[0050] S22. The geological boundaries dzjxIdArray on the three-dimensional profile are obtained in batches through the layer selection filter of AutoCAD, and are classified by layer. The reason for the classification is to distinguish the stratigraphic attributes of the geological boundaries according to the layers. The geological boundaries in the same layer have the same stratigraphic attributes. The code is as follows:

[0051] / / Traverse dzjxIdArray one by one, obtain the layer information of geological boundaries, and put the geological boundaries of the same layer into it;

[0052] AcDbObjectPointer <acdbcurve>ptrCurve(dzjxIdArray.at(i),AcDb::kForWrite); / / Open the geological boundary entity;

[0053] if(Acad::eOk!=ptrCurve.openStatus()) / / Judge whether the geological boundary entity is opened successfully;

[0054] {continue;}

[0055] CString layName = ptrCurve->layer(); / / Get the layer name of the geological boundary

[0056] / / m_idLayerMap is the MAP table corresponding to the layer and geological boundary set

[0057] / / Query the layer name layName obtained in the previous step in m_idLayerMap,

[0058] std::map<CString,AcDbObjectIdArray> ::iterator iter=m_idLayerMap.find(layName);

[0059] if(iter==m_idLayerMap.end())

[0060] {AcDbObjectIdArray idArr; / / If there is no corresponding layName, define a temporary entity set variable and add the current geological boundary to the entity set idArr.append(newEntId); m_idLayerMap.insert(std::make_pair(layName,idArr)); / / Add layerName and entity set to m_idLayerMap accordingly}

[0061] else

[0062] {iter->second.append(newEntId); / / If it exists, add the geological boundary to the entity set in the corresponding m_idLayerMap}

[0063] S23. Coordinate conversion is performed on the geological boundaries on the three-dimensional cross-section map one by one. The conversion method is:

[0064] Get the point set coordinates ptArray3D of the geological boundary on the three-dimensional profile based on AutoCAD.

[0065] Traverse the ptArray3D point set to obtain the distance dist3D between each point in the 3D point set and the line. This value is the x coordinate of the next 2D point set. The code is as follows:

[0066] Combine the 2D point set coordinates. Its X coordinate is dist3D, the Y coordinate is the Z coordinate in the corresponding 3D point set, and the Z coordinate is 0.0; finally, obtain the point set coordinates ptArray2D of the geological boundary line in the 2D profile. The reason for this setting is a coordinate conversion method from 3D to 2D.

[0067] Based on AutoCAD, combine the 2D point set coordinates ptArray2D into a new 2D geological boundary line, and set the layer name of the 2D geological boundary line to geological description. Finally, obtain the 2D profile, as Figure 6 shown.

[0068] S24. Perform region analysis on the 2D geological boundary lines of the same layer based on AutoCAD. The following code is the code for region analysis to obtain multiple regions regionArray with the same formation description. The code is as follows: / / Use the region command in AutoCAD to generate region entities from multiple entities. ads_name result; / / Declare a temporary variable to save the geological boundary line entities. acedSSAdd(NULL, NULL, result); / / Initialize the temporary label result. for (int i = 0; i < dzjxIdArray.length(); ++i) / / Traverse the geological boundary line entities one by one;

[0069] {

[0070] ads_name aname; / / Declare a temporary variable to save the geological boundary line entities

[0071] ArxDbgUtils::objIdToEname(dzjxIdArray.at(i), aname); / / Convert the geological boundary line of AcDbObjectId type to a variable of ads_name type

[0072] int ret = acedSSAdd(aname, result, result); / / Add the geological boundary line converted to ads_name type to result

[0073] }

[0074] ArxDbgUtils::setLayer(layername); / / Set the layer name to layername

[0075] acedCommandS(RTSTR,_T("region"),RTPICKS,result,RTSTR,_T(""),RTNONE); / / Use the region command provided by AutoCAD to convert all geological boundaries saved in result into surface regions

[0076] acedSSFree(result); / / release result

[0077] S25. Based on AutoCAD, the center positions of the region regionsArray are obtained one by one, and the geological description symbol geoDescArray is drawn at the center position.

[0078] S3, Profile pattern filling: According to the geological description information of the two-dimensional profile, the two-dimensional profile is filled with full patterns. The code is as follows:

[0079] / / Create AutoCAD's AcDbHatch entity

[0080] AcDbHatch*pHatch=new AcDbHatch();

[0081] if(NULL == pHatch)

[0082] {

[0083] return Acad::eOutOfMemory;

[0084] }

[0085] pHatch->setNormal(AcGeVector3d::kZAxis.normal()); / / Set the vector information of the fill pattern

[0086] pHatch->setElevation(0.0); / / Set the elevation information of the fill pattern

[0087] pHatch->setPatternAngle(angle); / / Set the rotation angle information of the filling pattern

[0088] pHatch->setPattern(AcDbHatch::kPreDefined,pat); / / Set the pattern name of the fill pattern

[0089] AcGePoint2dArray vertexPts; / / Declare a two-dimensional point set

[0090] vertexPts.setPhysicalLength(0).setLogicalLength(bdPtArr.length() + 1); / / Set the length of the 2D point set to the length of the boundary points plus one

[0091] for (int i = 0; i < bdPtArr.length(); ++i) / / Traverse and fill the pattern boundary point set

[0092] {

[0093] AcGePoint3d pt = bdPtArr.at(i); / / Define a temporary variable 3D point as the current pattern boundary point

[0094] AcGePoint2d pt2d = pt.convert2d(AcGePlane::kXYPlane); / / Project the 3D point onto the xy plane to get its 2D point

[0095] vertexPts.setAt(i, pt2d); / / Add the obtained 2D point to the declared 2D point set

[0096] }

[0097] vertexPts.setAt(bdPtArr.length(), bdPtArr.at(0).convert2d(AcGePlane::kXYPlane)); / / Project the first point of the pattern boundary onto the xy plane and add it to the 2D point set

[0098] AcGeDoubleArray vertexBugles; / / Declare the property set of the pattern boundary point set

[0099] vertexBugles.setPhysicalLength(0).setLogicalLength(bdPtArr.length() + 1); / / Set the length of the pattern boundary property set to the length of the boundary points plus one

[0100] for (int i = 0; i < bdPtArr.length() + 1; ++i)

[0101] {

[0102] vertexBugles.at(i) = 0.0; / / Set the value of the property set

[0103] }

[0104] pHatch->setHatchStyle(AcDbHatch::kNormal); / / Set the hatch pattern style

[0105] pHatch->appendLoop(AcDbHatch::kExternal, vertexPts, vertexBugles); / / Set the boundary point set and attributes of the hatch pattern

[0106] for (int i = 0; i < subPtArrVec.size(); ++i) / / Traverse the internal boundary point set one by one

[0107] {

[0108] AddInternelPtsToHatch(pHatch, subPtArrVec.at(i)); / / Set the boundary point set of the internal area of the hatch pattern

[0109] }

[0110] pHatch->setPatternScale(scale); / / Set the pattern scale of the hatch pattern

[0111] pHatch->setOriginPoint(centerPt.convert2d(AcGePlane::kXYPlane)); / / Set the reference point of the hatch pattern (2D point projected onto the xy plane)

[0112] ArxDbgUtils::addToCurrentSpace(pHatch, db); / / Add the hatch pattern to the AutoCAD database

[0113] pHatch->close(); / / Close the hatch pattern

[0114] So far, the automatic drawing of the cross-section based on the collaborative design of 3D modeling software and AutoCAD is completed.

[0115] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.< / acdbcurve>

Claims

1. A profile drawing method based on three-dimensional geological modeling software and AutoCAD, characterized in that: The following steps are involved: S1. Construct a three-dimensional geological profile using three-dimensional geological modeling software; S2. Project the three-dimensional profile into a two-dimensional profile along the route direction. The specific operations are as follows: S21, importing the line information and the three-dimensional section diagram into the DWG drawing; S22, obtaining geological boundaries on the three-dimensional cross-section map, and classifying them by layer to distinguish the stratigraphic attributes of the geological boundaries; S23, performing coordinate conversion on the geological boundaries on the three-dimensional profile one by one to obtain the point set coordinates of the geological boundaries on the two-dimensional profile; S24, using the point set coordinates obtained in S23 to draw a two-dimensional geological boundary based on a two-dimensional drawing software to obtain a two-dimensional profile.

2. The cross-section drawing method based on three-dimensional geological modeling software and AutoCAD according to claim 1, characterized in that: 3D geological modeling software includes EVS modeling software.

3. The cross-section drawing method based on three-dimensional geological modeling software and AutoCAD according to claim 1, characterized in that: The specific operation process of S1 is as follows: S11, constructing a geological three-dimensional model according to geological data in a three-dimensional geological modeling software; S12, importing the line information into the three-dimensional geological modeling software to obtain the line direction; S13. Cut the geological three-dimensional model along the route direction to obtain a three-dimensional cross-sectional view.

4. The cross-section drawing method based on three-dimensional geological modeling software and AutoCAD according to claim 1, characterized in that: The specific operation method of coordinate transformation in S23 is as follows: Obtain the point set coordinates of the geological boundary on the 3D profile based on AutoCAD; The distances between the points in the three-dimensional point set and the lines are calculated respectively, and the obtained distances are the X coordinates of the corresponding two-dimensional geological boundary point set; the Z coordinates of the point set on the three-dimensional geological boundary are the Y coordinates of the two-dimensional geological boundary point set.

5. The cross-section drawing method based on three-dimensional geological modeling software and AutoCAD according to any one of claims 1 to 4, characterized in that: The specific operation process of S24 is as follows: S241, performing surface analysis on the two-dimensional geological boundaries of the same layer based on two-dimensional drawing software to obtain multiple surfaces with the same stratum description; S242. Draw geological description symbols one by one in the center of the obtained surface area based on two-dimensional drawing software to obtain a two-dimensional cross-section diagram with stratigraphic description.

6. The cross-section drawing method based on three-dimensional geological modeling software and AutoCAD according to claim 5, characterized in that: The method further includes S3, which performs full pattern filling on the two-dimensional cross-section according to the geological description information of the two-dimensional cross-section.

7. A profile drawing system based on 3D geological modeling software and AutoCAD, characterized in that: The invention comprises at least one processor and a memory in communication with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the profile drawing method based on three-dimensional geological modeling software and AutoCAD as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • ActiveX-technology-based integrated drawing method for two-dimensional and three-dimensional profiles of engineering geology

    CN106504324A

  • Method for converting slope three-dimensional geologic model into two-dimensional calculation slope surface

    CN111553008A

  • Multi-dimensional drawing method for engineering geological profile map

    CN114359436A

  • AutoCAD-based automatic mapping method for adaptive curve trend

    CN114428990A

  • Cross geological section boundary line adjusting method based on two-dimensional and three-dimensional real-time linkage

    CN115690340A

Cited By

  • Three-dimensional geological profile illustration rapid drawing method based on Autolisp

    CN120973277A