Lightweight industrial three-dimensional terrace modeling method and system for digital twin factory

By extracting key two-dimensional design elements from the factory's vertical layout drawing and generating three-dimensional spatial vectors, and utilizing the sweeping operation of the geometric modeling kernel, the problem of low efficiency and insufficient accuracy in existing industrial three-dimensional floor modeling has been solved. This achieves efficient and lightweight continuous smooth surface modeling, ensuring model accuracy and design consistency.

CN121744429APending Publication Date: 2026-03-27CHINA NAT PETROLEUM CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-11
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing technologies for industrial 3D floor modeling suffer from low modeling efficiency, insufficient model accuracy, massive data volume, and difficulty in reflecting professional design intent. Especially when dealing with the specific object of factory floors, traditional methods cannot accurately describe continuous slope and curvature changes, resulting in visually rough models, bloated data, and an inability to realistically reflect design requirements such as drainage paths.

Method used

This paper presents a lightweight industrial 3D floor modeling method for digital twin factories. It automatically extracts key 2D design elements from the vertical layout of the factory, converts them into 3D spatial vectors, and uses the sweep operation of the geometric modeling kernel to generate continuous and smooth surfaces, ensuring that the accuracy of the model is consistent with the design intent.

Benefits of technology

It achieves efficient and automated conversion from design drawings to 3D models, generating high-precision, lightweight, continuous and smooth surface models that can accurately describe the continuous slope and curvature changes of industrial floors, realistically reflect design requirements such as drainage paths, and improve modeling efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121744429A_ABST
    Figure CN121744429A_ABST
Patent Text Reader

Abstract

The invention discloses a digital twinning factory-oriented lightweight industrial three-dimensional floor modeling method and system, and relates to the technical field of digital twinning, and the method comprises the steps: automatically extracting key two-dimensional design elements from a vertical layout diagram of a factory; converting the key two-dimensional design elements into three-dimensional space vectors; the three-dimensional space vector is subjected to sweeping operation of a geometric modeling kernel, and a continuous smooth curved surface is generated; and obtaining a terrace and road three-dimensional curved surface model by using the continuous smooth curved surface. According to the method, automatic conversion from a design drawing to a three-dimensional model is realized, and the efficiency and quality of industrial three-dimensional terrace modeling of the digital twin factory are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of digital twinning, in particular to a lightweight industrial three-dimensional floor modeling method and system for digital twinning factory. BACKGROUND

[0002] In the construction process of digital twinning factory, industrial three-dimensional floor modeling as a key link of basic environment construction, its technical implementation directly affects the accuracy, efficiency and usability of the whole digital twinning system. At present, in the conversion process from two-dimensional design drawings to three-dimensional models, the field is facing multiple challenges such as low modeling efficiency, insufficient model accuracy, large data volume and difficulty in reflecting professional design intent, and urgently needs a special modeling method that can balance engineering practicability and model quality.

[0003] In the prior art, in addition to general three-dimensional modeling, BIM or real scene reconstruction methods, some modeling systems for industrial scenes also appear. The invention patent with publication number CN118332771A and subject name "an industrial digital twinning modeling system and its construction method", by constructing a layered architecture including hardware layer, data system layer, data layer, platform layer and performance layer, integrating visualization scene modeling platform and model library management function, supporting quick three-dimensional layout of workshop and production line through drag and drop method. Another invention patent with publication number CN112669454A and subject name "a three-dimensional scene construction method, system, device and storage medium for digital factory", automatically extracts equipment feature graphics from the equipment layer of two-dimensional workshop drawings, retrieves corresponding three-dimensional models in the model library through image matching technology, and automatically arranges and adjusts the scale according to the position anchor point and spacing information, in order to improve the scene construction efficiency.

[0004] However, these existing technologies still have obvious limitations when applied to the specific object of factory floor. The mainstream method generally uses tens of thousands of triangular facets to approximate the floor terrain in a grid discretization manner similar to finite elements. This expression based on low-order geometric elements results in a model with obvious corners in the visual, which does not conform to human aesthetic cognition of smooth floors. More importantly, it fundamentally violates the core functional concept of "smooth surface transition" in industrial floor professional design, cannot accurately describe continuous slope and curvature changes, and is difficult to truly reflect design requirements such as drainage path. In addition, the real scene modeling technology based on oblique photography or laser scanning also outputs a large number of triangular facets, which passively records the current situation of the ground (including construction errors), but cannot actively express idealized design surfaces. A few parametric platforms with the ability to construct smooth surfaces are difficult to popularize in engineering practice due to complex operations and high technical thresholds. Even the scene construction method in the aforementioned two patents has certain automation capabilities, but its core processing object is still discrete entities such as equipment, and it does not optimize for objects such as floors and roads that have continuous curved surface characteristics and need to strictly follow vertical design specifications, resulting in models with visual roughness, data bloat, and functional misalignment.

[0005] In summary, due to the disconnection between the expression method and the design concept, the existing technologies do not achieve satisfactory results in the field of industrial three-dimensional floor modeling. There is an urgent need for a special modeling method and system that can embed factory floor design specifications and directly start from the concept of "smooth surface" to achieve efficient conversion from design drawings to lightweight and high-precision three-dimensional models. SUMMARY

[0006] The technical problem to be solved by the present application is to overcome the shortcomings of the prior art. Specifically, a lightweight industrial three-dimensional floor modeling method and system for digital twin factories are provided, as follows: 1) In a first aspect, the present application provides a lightweight industrial three-dimensional floor modeling method for digital twin factories, and the specific technical solutions are as follows: automatically extracting key two-dimensional design elements from the vertical layout of the factory; converting the key two-dimensional design elements into three-dimensional space vectors; using the sweep operation of the geometric modeling kernel on the three-dimensional space vectors to generate a continuous smooth surface; obtaining a three-dimensional curved surface model of the floor and road using the continuous smooth surface.

[0007] The lightweight industrial three-dimensional floor modeling method for digital twin factories provided by the present application has the following beneficial effects: The key two-dimensional design elements are converted into three-dimensional space vectors, and a direct bridge from two-dimensional design to three-dimensional model is established. The continuous smooth surface is generated by using the sweeping operation of the geometric modeling kernel on the three-dimensional space vector, which fundamentally avoids the visual angle problem caused by the traditional triangular facet discretization method. The three-dimensional surface model of the floor and the road is obtained by using the continuous smooth surface, which ensures the high consistency of the model precision and the design intention. The continuous smooth surface generated by this method can accurately describe the continuous slope and curvature change required by the industrial floor, and truly reflect the professional design requirements such as the drainage path. At the same time, compared with the massive triangular facet model, the continuous smooth surface based on mathematical expression has smaller data amount, and realizes the lightweight of the model. The whole process realizes the automatic conversion from design drawings to three-dimensional model, and greatly improves the efficiency and quality of the digital twin factory industrial three-dimensional floor modeling.

[0008] On the basis of the above scheme, the lightweight industrial three-dimensional floor modeling method for digital twin factory of the application can be further improved as follows.

[0009] Further, the key two-dimensional design elements include: contour line with elevation annotation, road center line with elevation annotation, two-dimensional contour line of road and two-dimensional contour line of floor; The key two-dimensional design elements are converted into three-dimensional space vectors, including: The contour line with elevation annotation and the road center line with elevation annotation are subjected to the elevation modification operation to generate three-dimensional contour line and three-dimensional road center line, and the two-dimensional contour line of road and the two-dimensional contour line of floor are treated as closed polylines; the three-dimensional space vectors include: three-dimensional contour line, three-dimensional road center line and closed polylines.

[0010] The beneficial effects of the above further scheme are: the three-dimensional contour line and the three-dimensional road center line are generated by the elevation modification operation on the contour line with elevation annotation and the road center line with elevation annotation, which realizes the accurate transmission of the design elevation information. The two-dimensional contour line of road and the two-dimensional contour line of floor are treated as closed polylines, which maintains the geometric integrity of the design contour. The three-dimensional space vectors generated by this conversion method include three-dimensional contour line, three-dimensional road center line and closed polylines, which provide accurate geometric basis for subsequent surface construction. The whole conversion process ensures the data consistency from two-dimensional design to three-dimensional model, avoids information loss or distortion, and creates conditions for automatic modeling process.

[0011] Further, the continuous smooth surface is generated by using the sweeping operation of the geometric modeling kernel on the three-dimensional space vector, including: A sweeping operation is performed between each pair of adjacent 3D contour lines to form a continuous 3D surface. The 3D road centerline is shifted to both sides by half the road width and the road camber is shifted downward to generate a 3D road edge line. Guided by the 3D road centerline and the 3D road edge line, a continuous road 3D surface is formed through the sweeping operation. The continuous smooth surface includes: a continuous 3D surface and a continuous road 3D surface.

[0012] The beneficial effects of adopting the above-mentioned further scheme are as follows: By using the sweep operation of the geometric modeling kernel to generate continuous smooth surfaces, sweeping operations are performed between each adjacent pair of 3D contour lines to form continuous 3D surface surfaces, ensuring smooth transitions and continuous slope changes on the surface, accurately reflecting the drainage path requirements in industrial floor design. Simultaneously, by offsetting the 3D road centerline to both sides by half the road width and offsetting the road camber downwards to generate 3D road edge lines, and then using the 3D road centerline and 3D road edge lines as guides for sweeping operations to form continuous 3D road surfaces, the camber design and geometric accuracy of the road model are guaranteed. The continuous smooth surfaces generated by this method include continuous 3D surface surfaces and continuous road surfaces, fundamentally avoiding the visual sharp angle problems caused by traditional triangular patch discretization modeling, and achieving high-precision model representation. The surface generation process based on sweeping operations directly constructs high-order geometric surfaces based on design vectors, ensuring the lightweight characteristics of the model, improving modeling efficiency, and maintaining consistency with professional design concepts.

[0013] Furthermore, using continuous smooth surfaces, a three-dimensional surface model of the ground and road is obtained, including: By performing Boolean intersection operations on the contour extrusion body generated by extruding closed polylines and the generated continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road, the three-dimensional surface models of the ground and the road are obtained.

[0014] The advantages of adopting the above-mentioned further solution are: it ensures that the 3D surface models of the ground and roads have complex curved boundaries that are completely consistent with the design drawings, eliminating the boundary deviation problems common in traditional modeling methods. The Boolean intersection operation automatically completes the accurate intersection between the surface and the solid, preserving the geometric characteristics of the continuous smooth surface while achieving boundary normalization. The final model obtained by this method maintains the smooth transition characteristics of the continuous 3D surface of the ground and the continuous 3D surface of the road, and also has accurate design contours, providing a high-quality model foundation. The entire trimming process is executed automatically in a programmed manner, ensuring modeling efficiency and geometric accuracy.

[0015] 2) Secondly, the present invention also provides a lightweight industrial 3D floor modeling system for digital twin factories, the specific technical solution of which is as follows: It includes a design element extraction module, a conversion module, a first generation module, and a second generation module; The design element extraction module is used to automatically extract key two-dimensional design elements from the vertical layout drawing of the factory. The conversion module is used to convert key two-dimensional design elements into three-dimensional spatial vectors; The first generation module is used to: apply a sweeping operation of the geometric modeling kernel to three-dimensional space vectors to generate continuous and smooth surfaces; The second generation module is used to obtain three-dimensional surface models of the ground and roads using continuous smooth surfaces.

[0016] Based on the above solution, the lightweight industrial 3D floor modeling system for digital twin factories of the present invention can be further improved as follows.

[0017] Furthermore, key two-dimensional design elements include: contour lines with elevation markings, road centerlines with elevation markings, two-dimensional road outlines, and two-dimensional ground outlines. The conversion module is specifically used for: The elevation of contour lines and road centerlines with elevation markings is adjusted to generate three-dimensional contour lines and three-dimensional road centerlines. The two-dimensional contour lines of the road and the two-dimensional contour lines of the ground are treated as closed polylines. The three-dimensional spatial vectors include: three-dimensional contour lines, three-dimensional road centerlines, and closed polylines.

[0018] Furthermore, the first generation module is specifically used for: A sweeping operation is performed between each pair of adjacent 3D contour lines to form a continuous 3D surface. The 3D road centerline is shifted to both sides by half the road width and the road crown is shifted downward to generate a 3D road edge line. Guided by the 3D road centerline and the 3D road edge line, a continuous 3D road surface is formed through the sweeping operation. Continuous smooth surfaces include: continuous three-dimensional ground surfaces and continuous three-dimensional road surfaces.

[0019] Furthermore, the second generation module is specifically used to: perform Boolean intersection operations on the contour extrusion body generated by extruding closed polylines and the generated continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road to obtain the three-dimensional surface models of the ground and the road.

[0020] 3) In a third aspect, the present invention also provides an electronic device, the electronic device including a processor coupled to a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor, so that the electronic device implements any of the above-mentioned lightweight industrial three-dimensional floor modeling methods for digital twin factories.

[0021] 4) In a fourth aspect, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-mentioned lightweight industrial three-dimensional floor modeling methods for digital twin factories.

[0022] It should be noted that the beneficial effects of the technical solutions of the second to fourth aspects of the present invention and their corresponding possible implementations can be found in the above description of the technical effects of the first aspect and its corresponding possible implementations, and will not be repeated here. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments of the present invention will be briefly introduced below: Figure 1 This is a flowchart illustrating a lightweight industrial 3D floor modeling method for digital twin factories, according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of a lightweight industrial 3D floor modeling system for digital twin factories, according to an embodiment of the present invention. Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0024] The principles and features of the present invention are described below. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0025] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present invention will now be described with reference to the accompanying drawings.

[0026] like Figure 1 As shown in the figure, a lightweight industrial 3D floor modeling method for digital twin factories according to an embodiment of the present invention includes the following steps: S1. Automatically extract key two-dimensional design elements from the factory's vertical layout drawing. These key two-dimensional design elements include: contour lines with elevation markings, road centerlines with elevation markings, two-dimensional road outlines, and two-dimensional ground outlines.

[0027] The geometry kernel is a software component that provides advanced geometric modeling capabilities, such as surface generation, Boolean operations, and sweep operations. Based on mathematical theories, such as non-uniform rational B-splines, it can create and manipulate continuous, smooth geometries. In a 3D modeling system, the geometry kernel is responsible for handling the internal representation of geometric data, ensuring the accuracy and editability of the model. Common examples include ACIS and Parasolid, which are integrated into CAD platforms to support the procedural construction of complex 3D models.

[0028] The vertical layout plan of a factory is a professional design drawing for the factory's overall layout, showcasing the vertical arrangement of the terrain, roads, and ground level within the factory area. It includes elements such as contour lines, elevation markings, road centerlines, and outlines to represent changes in ground elevation and drainage design. While a two-dimensional design document, the vertical layout plan contains elevation information, providing the foundational data for three-dimensional modeling. These drawings are typically generated by specialized design software, such as AutoCAD, ensuring the accurate transmission of design intent.

[0029] S2. Convert key two-dimensional design elements into three-dimensional spatial vectors, specifically: The elevation of contour lines and road centerlines with elevation markings is adjusted to generate three-dimensional contour lines and three-dimensional road centerlines. The two-dimensional contour lines of the road and the two-dimensional contour lines of the ground are treated as closed polylines. The three-dimensional spatial vectors include: three-dimensional contour lines, three-dimensional road centerlines, and closed polylines.

[0030] For contour lines and road centerlines with elevation labels, the elevation modification operation is automated through a programmed process. Specifically, the two-dimensional geometric data of the contour lines and road centerlines in the vertical layout drawing are first read, including their vertex coordinates and associated elevation label text. The elevation label text typically represents height values ​​in numerical form, which are extracted using a text parsing algorithm. Then, for each vertex of each contour line or road centerline, the two-dimensional plane coordinates are combined with the corresponding elevation value to generate three-dimensional coordinates. For example, for a two-dimensional vertex with plane coordinates (x, y) and an elevation value of h, the three-dimensional coordinates are represented as (x, y, h). This transformation is achieved by modifying the Z-coordinate value, thus elevating the two-dimensional line element to a three-dimensional spatial vector. This operation is performed in batches, traversing all relevant elements to ensure the accurate generation of three-dimensional contour lines and three-dimensional road centerlines. The entire process relies on a geometric calculation engine, automatically handling coordinate transformation and elevation assignment, avoiding manual intervention, and ensuring data consistency and efficiency.

[0031] In this process, the 2D contour lines of roads and ground surfaces are identified as closed polylines. A closed polyline is a closed shape composed of a series of continuous line segments, representing the boundary of the ground or road. The closure is verified by checking that the start and end points of the polyline coincide, ensuring there are no gaps or breaks. These closed polylines serve as the basis for subsequent surface generation, defining the spatial extent of the ground and road. During the conversion process, the vertex order and geometric properties of the polylines are preserved for accurate use in 3D modeling. This step does not involve elevation modification but focuses on maintaining the integrity and topology of the contours, preparing for subsequent extrusion and Boolean operations.

[0032] The entire implementation process is algorithm-driven, using automated scripts to handle data input and transformation. First, the vertical layout map is loaded, key elements are identified and extracted, and then coordinate transformation rules are applied to generate 3D vectors. All operations are performed in the background, ensuring the continuity and repeatability of the process. Ultimately, the generated 3D spatial vectors include 3D contour lines, 3D road centerlines, and 2D road and ground contour lines as closed polylines, laying the foundation for subsequent surface construction steps.

[0033] Contour lines with elevation labels refer to curves used in the vertical layout of a factory site plan to represent changes in terrain elevation. Each curve is accompanied by a text label indicating the elevation value it represents. Contour lines themselves are two-dimensional geometric elements, but the elevation labels give them a third dimension, thus defining the undulations of the terrain in three-dimensional space. These curves are typically formed by a series of connected vertices, and the elevation labels explicitly specify the height in numerical form, allowing contour lines to be converted from a plan view into continuous lines in a three-dimensional model. During the modeling process, contour lines with elevation labels serve as input data to generate accurate three-dimensional terrain surfaces.

[0034] In this context, the road centerline with elevation annotation refers to the line indicating the center position of the road in the vertical layout drawing of the plant site plan, accompanied by a text label indicating the elevation value of that line. The road centerline is a two-dimensional vector used to define the road's direction and slope, while the elevation annotation provides vertical height information. By combining planar coordinates and elevation values, the road centerline can be converted into a guide line in three-dimensional space for subsequent road surface generation. This element ensures that the road model accurately reflects the design intent in the three-dimensional environment, including slope variations and drainage paths.

[0035] In 3D modeling, the two-dimensional outline of a road refers to the closed lines depicting the shape of the road boundary in the vertical layout drawing of a factory site plan. These lines consist of a series of line segments forming a continuous and uninterrupted loop, defining the projected range of the road on the plane. The two-dimensional outline of a road does not contain elevation information; it only represents the horizontal spatial constraints and is used in 3D modeling as the basis for trimming and defining the boundaries of the road model. By maintaining closure, these outlines ensure the accuracy of the road model in Boolean operations.

[0036] In the context of flooring, the two-dimensional outline refers to the closed lines representing the boundaries of the flooring area in the vertical layout drawing of the plant site plan. These lines are formed by connecting multiple vertices to create a complete polygon, defining the shape of the flooring on the horizontal plane. The two-dimensional outline of the flooring is a two-dimensional design element used to specify the coverage area of ​​the flooring surface in 3D modeling. As closed polylines, they ensure the geometric integrity of the flooring model during generation and trimming.

[0037] A closed polyline is a closed geometric shape formed by a series of line segments connected end-to-end, representing a continuous and unbroken region in two-dimensional space. The start and end points of a closed polyline coincide, ensuring the shape's closure, and it is often used to define contours or boundaries. In 3D modeling, closed polylines serve as fundamental elements and can be converted into 3D solids through extrusion or other operations. In this method, the 2D contour lines of roads and ground surfaces are both processed as closed polylines to maintain their topological structure and provide input for subsequent steps.

[0038] S3. Apply a sweep operation of the geometric modeling kernel to the three-dimensional spatial vector to generate a continuous and smooth surface. Specifically: A sweeping operation is performed between each adjacent pair of 3D contour lines to form a continuous 3D surface. The 3D road centerline is offset to both sides by half the road width and downward by the road camber to generate 3D road edge lines. Guided by the 3D road centerline and 3D road edge lines, a continuous road 3D surface is formed through sweeping operations. The continuous smooth surface includes both the continuous ground 3D surface and the continuous road 3D surface. The specific implementation process is as follows: 1) An adjacent pair of 3D contour lines refers to two 3D contour lines with consecutive elevation values ​​in 3D space, such as one 3D contour line with an elevation of 100 meters and another with an elevation of 101 meters. All such adjacent pairs are automatically identified, ensuring that the elevation values ​​of each pair of 3D contour lines are adjacent and that the same pair is not used repeatedly for the sweep operation. This means traversing the entire set of 3D contour lines and performing a sweep operation once for each unique elevation interval. For example, if the sequence of 3D contour line elevation values ​​is 100 meters, 101 meters, and 102 meters, then the adjacent pairs between 100 meters and 101 meters, and between 101 meters and 102 meters, will be processed, with each adjacent pair processed only once. For each adjacent pair of 3D contour lines, the sweep operation function of the geometry modeling kernel is invoked. The sweep operation is implemented in the geometry modeling kernel as a loft command, which uses two 3D contour lines as input cross-sectional profiles. The geometric modeling kernel is based on the NURBS algorithm, which performs interpolation calculations between two 3D contour lines to generate a continuous and smooth surface segment. This surface segment is mathematically defined by parametric equations; for example, a point on the surface can be represented as... ,in and This is a parameter, and its value ranges from 0 to 1. The parameters vary along the three-dimensional contour lines. It varies between two three-dimensional contour lines. Parameters Controlling the change in the shape of the surface along the three-dimensional contour lines, parameters The system controls the transition of the surface between 3D contour pairs. The geometric modeling kernel ensures that each generated surface segment is visually smooth and conforms to the slope requirements of the floor design by minimizing curvature changes. All surface segments automatically connect at the boundaries to form a complete, continuous 3D floor surface. The entire process is automated, batch-processing all adjacent 3D contour pairs to generate a seamlessly integrated, continuous 3D floor surface without manual intervention.

[0039] 2) The 3D road centerline is a 3D spatial curve representing the road's central path. Based on the half-width of the road in the design parameters, the 3D road centerline is offset to both sides. This offset operation is performed within the geometry modeling kernel by calculating the normal vector at each point on the 3D road centerline. Let the 3D road centerline be defined by parametric equations... It means that, among them, This is a parameter, and its value ranges from 0 to 1. This indicates the position along the centerline of a three-dimensional road. At each point... Calculate the tangent vector Then the normal vector is calculated using the cross product. normal vector Perpendicular to the tangent vector And it points in the horizontal offset direction. Offset by half the road width to both sides. Then, two 3D road edge lines are generated, and their point coordinates can be represented as follows: and Simultaneously, road crown design is applied. The road crown is the lateral slope of the road cross-section, expressed as a slope value. Indicates the slope value. It is usually defined as a percentage, for example, two percent means the ratio of height decrease to horizontal distance is 0.02. When generating 3D road edge lines, the Z-coordinate value is adjusted downwards to reflect the road camber. The adjusted coordinates of the 3D road edge line points can be corrected to... and ,in This is the height value of the 3D road centerline point. Then, using the 3D road centerline and 3D road edge line as guide lines, the sweep operation of the geometry modeling kernel is invoked. The sweep operation generates a continuous 3D road surface along these guide lines; for example, a surface is constructed between the 3D road centerline and 3D road edge line using the loft command. This surface is also based on NURBS representation, ensuring that the surface is continuous, smooth, and has the correct camber slope. The entire process is executed automatically, generating a continuous 3D road surface.

[0040] The entire implementation process relies on the advanced functions of the geometry modeling kernel to ensure that the generated continuous and smooth surfaces include continuous 3D ground surfaces and continuous 3D road surfaces, with high model accuracy and lightweight data.

[0041] In 3D modeling, an adjacent pair of 3D contour lines refers to two 3D contour lines with adjacent elevation values ​​in 3D space. 3D contour lines are 3D curves representing the same elevation, extracted and converted from the vertical layout map. An adjacent pair of 3D contour lines has continuous elevation values; for example, one 3D contour line has an elevation of 100 meters, and another has an elevation of 101 meters. In 3D modeling, these curves are used to generate ground surfaces. Sweeping operations are used to create smooth transitional surface segments between them, ensuring the continuity of the terrain representation.

[0042] The road crown is a lateral slope design of the road cross-section, typically sloping from the center to the edges to facilitate drainage. The road crown slope is expressed as a percentage or angle; for example, a 2% slope means a decrease in height of 0.02 units per unit horizontal distance. In 3D road modeling, the road crown affects the shape of the road surface, achieved by offsetting the road edge line downwards. This design ensures that rainwater flows effectively to both sides of the road, meeting the functional requirements of industrial flooring.

[0043] The continuous 3D surface of the floor is generated by sweeping between adjacent pairs of 3D contour lines. Based on NURBS mathematical representation, this surface features continuous curvature and smooth surface properties, accurately reflecting the slope variations and drainage path design requirements of the factory floor. The continuous 3D surface covers the entire floor area in 3D space but has not undergone boundary trimming, therefore it may exceed the actual floor contour. During modeling, the continuous 3D surface serves as the input object for Boolean intersection operations to generate the final 3D floor surface model.

[0044] Continuous road 3D surfaces are generated through a sweeping operation, using the 3D road centerline and edgelines as guide lines. These surfaces also possess continuous and smooth characteristics and incorporate road camber design to ensure proper drainage. While representing the overall road surface in 3D space, continuous road 3D surfaces require contour trimming to match the actual road boundaries. In the modeling process, these surfaces participate in Boolean intersection operations, ultimately forming an accurate 3D road surface model.

[0045] S4. Using continuous smooth surfaces, obtain the 3D surface models of the ground and roads. Specifically, perform a Boolean intersection operation between the extruded contour body generated by extruding closed polylines and the generated continuous 3D surface models of the ground and roads to obtain the 3D surface models of the ground and roads. The specific implementation process is as follows: S40. Process the 2D contour lines of roads and floors that were previously identified as closed polylines. These closed polylines are automatically identified and converted into 3D solids. The conversion process is achieved through an extrusion operation, specifying an extrusion height for each closed polyline. The extrusion height is determined based on the actual dimensions of the factory area, ensuring that the extruded contour completely covers the corresponding continuous 3D surface of the floor or road. For example, for a closed polyline, apply extrusion along the Z-axis to generate a 3D solid. This extruded contour can be mathematically represented as the extrusion of a 2D region... Along vector Volume formed by stretching ,in, This is the stretch height. Parameter This represents the vertical extension distance of the extruded body. Its value is set according to the model range to ensure that the extruded body is high enough in three-dimensional space to completely pass through the surface to be cut.

[0046] S41. Perform a Boolean intersection operation. Boolean intersection is a geometric operation that preserves the volume of the overlapping portion of two 3D objects. Use an extruded body as the operation tool, and the continuous 3D surface of the ground and the continuous 3D surface of the road as the target objects. For each continuous 3D surface of the ground or the continuous 3D surface of the road, automatically identify the corresponding extruded body. For example, for the continuous 3D surface of the ground... Find the corresponding extruded surface profile. Then calculate the intersection. Similarly, for continuous road three-dimensional surfaces... ,calculate ,in, It is an stretched road profile. (Symbol) Representing a continuous 3D surface, it is a 3D surface object; symbol Representing a continuous 3D road surface, it is a 3D surface object; symbol This represents an extruded floor profile, a three-dimensional solid; symbol The road outline extrusion is a three-dimensional solid; symbol Represents the trimmed 3D surface model of the floor; symbol This represents the trimmed 3D road surface model. The intersection operation is performed using the INTERSECT command in the geometry kernel, which automatically detects the intersection areas between the surface and the solid, and deletes the non-intersecting parts.

[0047] During the computation process, precise handling of complex boundaries is ensured. For example, if a continuous 3D surface contains irregular shapes, the profile extrusion body acts as a trimming tool to precisely remove the portion of the surface that extends beyond the boundary. This process preserves the portion of the surface within the closed polyline, resulting in a 3D surface model of the ground and road with clear boundaries. All surface and profile extrusion body pairs are processed in batches, automatically performing multiple Boolean intersection operations through a loop structure without manual intervention. Ultimately, the generated 3D surface model of the ground and road geometrically matches the contour in the design drawings, ensuring the accuracy and usability of the model in the digital twin environment.

[0048] The 3D surface models of the floor and roads are the final 3D models obtained through Boolean intersection operations. These models are generated by intersecting the continuous 3D surface of the floor and roads with their corresponding extruded contours. They have precise boundary definitions and fully conform to the design contours in the factory's vertical layout drawings. The 3D surface models of the floor and roads retain the smoothness and geometric accuracy of the original surfaces while removing portions that exceed the boundaries, ensuring accurate integration and use in the digital twin factory environment. These models are output in a lightweight data format, supporting further application in mainstream factory designs.

[0049] Example 1: Example 1 presents a lightweight industrial 3D floor modeling method for digital twin factories, which realizes a paradigm shift from discrete triangular patch modeling to continuous smooth surface modeling, and includes the following steps: S101. Data Input and Extraction: From the vertical layout drawing of the factory general plan, key two-dimensional design elements are automatically extracted using automated algorithms. These key two-dimensional design elements include contour lines with elevation labels, road centerlines with elevation labels, and the planar projections of the road and ground contours. The program traverses specific layers in the drawing using custom commands and accurately identifies text labels and vector primitives using selection set filtering. For contour lines with elevation labels, their text content is parsed to obtain elevation values; for road centerlines with elevation labels, their geometric coordinates and elevation information are extracted; for the planar projections of the road and ground contours, their closure is verified and vertex data is recorded.

[0050] S102, 2D to 3D Vector Conversion: Converting extracted 2D design elements into 3D spatial vectors. This process achieves dimensionality enhancement of geometric data through a programmed method. Contour lines and road centerlines with elevation labels are directly converted into accurate 3D contour lines and 3D road centerlines through an elevation-modification operation. The elevation-modification operation is performed by converting 2D coordinate points... and the corresponding elevation value Combine to generate three-dimensional coordinate points The mathematical transformation process, in which, and Represents planar coordinates, This represents the elevation value. Road and ground contour lines are treated as closed polylines, which are closed shapes composed of continuous line segments, providing the foundation for subsequent surface generation. Ensure that all transformed 3D space vectors maintain geometric accuracy and topological integrity.

[0051] S103. Construction of Continuous Smooth Surfaces: Based on 3D spatial vectors, a continuous smooth surface is generated using the sweep operation of the geometric modeling kernel, rather than discrete triangular patches. The geometric modeling kernel is a software component that provides advanced geometric modeling capabilities and supports NURBS surface generation. Ground surface construction involves sweeping between adjacent pairs of 3D contour lines to generate a preliminary continuous 3D ground surface. An adjacent pair of 3D contour lines refers to two 3D curves with adjacent elevation values; the sweep operation constructs a continuous transition surface between them. Road surface construction first offsets the 3D road centerline to both sides by half the road width and offsets the road camber downwards, generating the 3D road edge line. The offset process is achieved through vector calculation. Let the coordinates of the 3D road centerline point be... , where the parameters This indicates the position along the curve, and the normal vector is... Half of the road width is The road arch slope is Then the coordinates of the points on the three-dimensional road edge line can be expressed as: Subsequently, guided by the 3D road centerline and 3D road edgeline, a continuous 3D road surface is generated through a sweep operation. The sweep operation is based on a parametric surface representation, and the points generating the surface can be represented as... , where parameters Controlling the variation along the guide line, parameters Controlling changes in cross-sectional shape.

[0052] S104. Contour Trimming and Precise Model Definition: Using a contour extrusion body generated by extruding a closed polyline and a continuous surface, a Boolean intersection operation is performed to precisely trim a 3D surface model of the ground and road with complex curved boundaries. The contour extrusion body is created by stretching the 2D contour lines of the road and ground along the Z-axis. The generated 3D entity, mathematically represented as: a 2D region Along vector Volume formed by stretching Boolean intersection operation is implemented through the INTERSECT command of the geometry modeling kernel. The operation process can be represented as follows: ,in, Represents a continuous surface. Represents a contour-extended body. This represents the trimmed 3D surface model of the ground and roads. This process ensures that the model is completely consistent with the design drawings, removing parts that exceed the boundaries and preserving the accurate geometry.

[0053] S105. Lightweight Data Output and Integration: The final continuous and smooth surface model is exported as a standard SAT file using the ACISOUT operation. ACISOUT is a data export command of the geometry modeling kernel, converting the boundary-based surface model into a standard file format. The SAT file describes the surface geometry with precise mathematical equations, significantly reducing the data volume compared to discrete triangular patch format. This file can be batch imported into mainstream factory design systems such as PDMS, E3D, or SP3D to form lightweight, high-precision 3D floor and road models. The import process maintains geometric accuracy and surface continuity, achieving seamless integration from design to the digital twin environment, supporting subsequent factory layout optimization and operation and maintenance management.

[0054] Example 1 achieves efficient conversion from two-dimensional design drawings to three-dimensional continuous surface models through an automated process, ensuring the unity of model accuracy and lightweight characteristics, and providing accurate terrain foundation data for digital twin factories.

[0055] Example 2: Example 2 presents a lightweight industrial 3D floor modeling method for digital twin factories. Through in-depth secondary development of AutoCAD software, an automated algorithm flow specifically designed for industrial floor modeling is built upon its original functions. Driven by a background program algorithm, this method achieves intelligent conversion from 2D site plans to 3D continuous surfaces, specifically including the following steps: S201. Intelligent identification and extraction of design elements: The program uses custom LISP commands, such as `C:eric_gcd_gen`, to automatically iterate and filter elevation annotation text on specific layers of drawings in the background. The algorithm uses the `ssget` function combined with filters `list(cons0"TEXT")` (`cons8"GCD")` to precisely select target objects, parse their text content, and convert it into elevation values. This process achieves automatic elevation information acquisition. For 2D vector primitives such as contour lines and road centerlines, the program uses the `C:ERIC_Contourline` command, employing interactive selection or automatic filtering, while the background algorithm uses the `entget` function to obtain the planar coordinate data of the primitives. Combined with the elevation values ​​extracted from the annotation text, a precise Z-coordinate is assigned to each primitive vertex, thereby batch generating 3D contour lines and 3D road centerlines. The mathematical expression for coordinate transformation is to convert 2D points... Convert to 3D points ,in, and Represents planar coordinates, This represents the elevation value. This process completes the automatic acquisition and 3D conversion of design information.

[0056] S202, Procedural Construction of Continuous Smooth Surfaces: The algorithm for generating the surface curvature of the floor uses the C:Eric_COLORLOFT command and the ssget command to interactively retrieve two adjacent 3D contour lines selected by the user in the background. The program then calls AutoCAD's built-in LOFT command, using the two 3D contour lines as cross-sectional profiles, and drives its geometric kernel to sweep between adjacent profiles, automatically fitting and generating a continuous and smooth NURBS surface. This surface can be mathematically represented as... , where the parameters Controlling the variation along the three-dimensional contour lines, parameters The transition between two 3D contour lines is controlled. This process directly generates high-order geometric surfaces from design vectors, avoiding the discretization approximation of traditional triangular patches.

[0057] The road surface generation algorithm first uses a 3D road centerline. The background algorithm then automatically generates 3D road edge lines based on preset road cross-section parameters, including half-width and camber, through vector calculations and offset operations. The offset calculation expression is as follows: ,in, Represents the coordinates of the centerline point of a three-dimensional road, parameters Indicates the position along the curve. Indicates half the road width. Represents the normal vector. This indicates the road camber slope. Subsequently, using the three-dimensional road centerline and three-dimensional road edgeline as spatial guide lines, a continuous road surface with a specific camber is constructed again through the sweep function of the geometric kernel.

[0058] S203. Precise trimming and solidification of the model outline: The program reads the two-dimensional closed contour lines of the ground and road, and uses the EXTRACUDE command to extrude them into a three-dimensional solid, which is then used as a tool for Boolean operations. The extrude operation transforms the two-dimensional region... Along vector Stretching to form volume ,in, This represents the extrusion height. The background algorithm uses the C:ERIC_SURFINT3D command, employing the entsel and ssget functions to obtain the extruded solid (as the tool) and the continuous surface (as the target), respectively. The program uses a loop structure to perform the INTERSECT Boolean operation on each pair of surfaces and solids. This operation is mathematically represented as... ,in, Represents a continuous surface. Represents a contour-extended body. This represents the trimmed 3D surface model of the ground and road. The algorithm automatically performs a series of operations such as copying and intersection, ultimately precisely trimming out a 3D surface model of the ground and road with regular boundaries that perfectly matches the design outline.

[0059] S204, Automated output of lightweight data format: The program uses the `C:\ERIC_region_sat` command to traverse all trimmed 3D surface models. The background algorithm automatically generates a unique filename for each model, containing a factory object ID and type code. The core output algorithm calls the `ACISOUT` command to export the boundary-representation-based continuous surface model as a standardized SAT file. Boundary representation is a geometric representation method that describes surfaces using precise boundaries and mathematical equations. Compared to mesh models described with massive amounts of triangular faces, such as STL or OBJ formats, this file format has a significantly smaller data size, achieving model lightweighting while ensuring geometric accuracy and editability in high-order CAD systems such as PDMS, E3D, or SP3D.

[0060] Example 2 utilizes a series of custom LISP programs to deeply extend the functionality and integrate the workflow of AutoCAD. The background algorithm automates the entire process from data recognition, 3D reconstruction, surface smoothing to precise trimming and lightweight output, completing a paradigm shift from discrete triangular patch modeling to continuous smooth surface modeling, thus improving the accuracy, efficiency, and professionalism of modeling.

[0061] Example 3: Example 3 presents a lightweight industrial 3D floor modeling method for digital twin factories. Based on the site plan's vertical layout as input, it first automatically extracts road centerline elevation labels and contour line elevation labels, obtaining elevation values ​​through numerical operations. Simultaneously, it identifies the road centerline's planar projection and the contour line's planar projection. Then, through elevation modification operations, it converts the road centerline's planar projection into a 3D road centerline and the contour line's planar projection into 3D contour lines. The elevation modification operation uses mathematical transformations to convert two-dimensional points... Upgrade to three-dimensional points ,here and Represents planar coordinates, This represents the elevation value; for road modeling, the 3D road centerline is offset to both sides by half the road width and downwards by the road camber through vector calculation to generate the 3D road edge line. The offset process can be represented as follows: ,in, Represents the coordinates of the centerline point of a three-dimensional road, parameters Indicates the position along the curve. Indicates half the road width. Represents the normal vector. The road camber slope is represented; then, guided by sweep operation object 1 (the 3D road centerline) and sweep operation object 2 (the 3D road edgeline), a continuous 3D road surface is generated through the sweep operation of the geometric modeling kernel. This surface can be mathematically represented as... , where the parameters Controlling the variation along the guide line, parameters Controlling the change in cross-sectional shape; for ground modeling, a sweeping operation is performed between adjacent pairs of 3D contour lines to generate a continuous 3D ground surface; simultaneously, the road outline planar projection and the ground outline planar projection are used as closed polylines, and an extrusion operation is performed to generate road outline extrusion bodies and ground outline extrusion bodies, respectively. The extrusion operation stretches the 2D region along the vector... Stretching forms a three-dimensional volume, in which, This represents the stretching height; subsequently, through Boolean intersection operations, the road profile stretching body is intersected with the continuous road 3D surface to obtain the 3D surface of the curved road profile, and the ground profile stretching body is intersected with the continuous ground 3D surface to obtain the 3D surface of the curved ground profile. The intersection operation is mathematically represented as... ,in, Represents a continuous surface. Represents a contour-extended body. The model represents the trimmed 3D surface model. Finally, the SAT files of the road surface and the ground surface are exported through the ACISOUT operation. These files store lightweight continuous surface data in a boundary representation format and can be batch imported into PDMS, E3D or SP3D systems to form high-precision 3D ground and road models, completing the integration from design to digital twin environment.

[0062] Compared with existing technologies, this invention abandons the traditional discrete modeling method of fitting terrain with massive amounts of triangular patches, and realizes a paradigm shift by directly generating continuous smooth surfaces from design vectors. Based on the vertical layout drawing of the factory general layout, key two-dimensional design elements such as contour lines with elevation labels, road centerlines with elevation labels, two-dimensional road outlines, and two-dimensional ground outlines are automatically extracted and converted into three-dimensional spatial vectors. Specifically, this involves re-elevating the contour lines and road centerlines with elevation labels to generate three-dimensional contour lines and three-dimensional road centerlines, and using the two-dimensional road outlines and ground outlines as closed polylines. Subsequently, a three-dimensional sweep operation using the geometric modeling kernel is used to generate a continuous three-dimensional ground surface between adjacent pairs of three-dimensional contour lines, and the three-dimensional road centerlines are offset to both sides by half the road width and offset downwards by the road camber to generate three-dimensional road edge lines. Then, guided by the three-dimensional road centerlines and three-dimensional road edge lines, a continuous three-dimensional road surface is generated through a sweep operation. Then, using the profile extrusion body generated by extruding closed polylines, Boolean intersection operations are performed with the continuous 3D surface of the ground and the continuous 3D surface of the road to accurately trim the 3D surface models of the ground and the road. The Boolean intersection operation can be expressed as a mathematical expression. ,here This represents the trimmed 3D surface model of the ground and road. Represents a continuous surface. This represents a contour-extruded body. Finally, the continuous smooth surface model is exported as a standard SAT file using the ACISOUT operation for integration into mainstream factory design systems such as PDMS and E3D. This method ensures model accuracy, lightweight characteristics, and consistency with design intent, improving modeling efficiency. For example, when completing the 3D modeling of the entire floor and roads of a large refinery, using traditional triangular patch modeling would take approximately 120 hours just for model processing and optimization. However, using the method of this invention, the entire process from data processing to generating the final usable model can be completed within 4 hours, improving efficiency by more than 30 times. This invention provides a more accurate modeling method, improving the efficiency of industrial 3D floor modeling in digital twin factories, and realizing a paradigm shift from discrete triangular patch modeling to continuous smooth surface modeling in digital twin factories.

[0063] In the above embodiments, although the steps are numbered S1, S2, etc., they are only specific embodiments given by the present invention. Those skilled in the art can adjust the execution order of S1, S2, etc. according to the actual situation. The scheme after adjusting the order is also within the protection scope of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.

[0064] like Figure 2 As shown, a lightweight industrial 3D floor modeling system 200 for digital twin factories according to an embodiment of the present invention includes a design element extraction module 201, a conversion module 202, a first generation module 203, and a second generation module 204. The design element extraction module 201 is used to automatically extract key two-dimensional design elements from the vertical layout drawing of the factory. The conversion module 202 is used to: convert key two-dimensional design elements into three-dimensional spatial vectors; The first generation module 203 is used to: apply a sweeping operation of the geometric modeling kernel to a three-dimensional space vector to generate a continuous and smooth surface; The second generation module 204 is used to: obtain a three-dimensional surface model of the ground and road using a continuous smooth surface.

[0065] Optionally, in the above technical solution, the key two-dimensional design elements include: contour lines with elevation markings, road centerlines with elevation markings, two-dimensional road outlines, and two-dimensional ground outlines; the conversion module 202 is specifically used to: perform elevation modification operations on the contour lines with elevation markings and the road centerlines with elevation markings to generate three-dimensional contour lines and three-dimensional road centerlines, and use the two-dimensional road outlines and the two-dimensional ground outlines as closed polylines; the three-dimensional spatial vectors include: three-dimensional contour lines, three-dimensional road centerlines, and closed polylines.

[0066] Optionally, in the above technical solution, the first generation module 203 is specifically used to: perform a sweeping operation between each pair of adjacent three-dimensional contour lines to form a continuous three-dimensional surface; offset the three-dimensional road centerline to both sides by half the road width and offset the road camber downward to generate a three-dimensional road edge line; and use the three-dimensional road centerline and the three-dimensional road edge line as guides to form a continuous three-dimensional road surface through the sweeping operation; the continuous smooth surface includes: a continuous three-dimensional surface and a continuous three-dimensional road surface.

[0067] Optionally, in the above technical solution, the second generation module 204 is specifically used to: perform Boolean intersection operation with the contour extrusion body generated by the extrusion of closed polylines and the generated continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road to obtain the three-dimensional surface model of the ground and the road.

[0068] It should be noted that the beneficial effects of the lightweight industrial 3D floor modeling system 200 for digital twin factories provided in the above embodiments are the same as those of the lightweight industrial 3D floor modeling method for digital twin factories described above, and will not be repeated here. Furthermore, the system provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.

[0069] The lightweight industrial 3D floor modeling system for digital twin factories of the present invention can be a computer program (including program code) running on a computer device. For example, the lightweight industrial 3D floor modeling system for digital twin factories of the present invention is an application software that can be used to execute the corresponding steps in the lightweight industrial 3D floor modeling method for digital twin factories of the present invention.

[0070] In some embodiments, the lightweight industrial 3D floor modeling system for digital twin factories of the present invention can be implemented in a combination of hardware and software. As an example, the lightweight industrial 3D floor modeling system for digital twin factories of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the lightweight industrial 3D floor modeling method for digital twin factories of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0071] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.

[0072] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned lightweight industrial 3D floor modeling methods for digital twin factories. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the lightweight industrial 3D floor modeling method for digital twin factories shown in any embodiment of the present invention by calling the computer program.

[0073] In one alternative embodiment, an electronic device is provided, such as Figure 3 As shown, Figure 3 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.

[0074] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0075] Bus 4002 may include a path for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The bus 4002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.

[0076] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0077] The memory 4003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 4001. The processor 4001 executes the application code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.

[0078] Among them, electronic devices can also be terminal devices, which can be any device that can install applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.

[0079] It should be noted that, Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0080] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described lightweight industrial 3D floor modeling methods for digital twin factories.

[0081] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.

[0082] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the above-described lightweight industrial 3D floor modeling methods for digital twin factories.

[0083] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0084] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0085] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EEPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0086] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.

[0087] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.

[0088] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of this application described herein can be implemented in an order other than that shown or described.

[0089] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.

[0090] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A lightweight industrial 3D floor modeling method for digital twin factories, characterized in that, include: Automatically extract key two-dimensional design elements from the factory's vertical layout drawing; Convert the key two-dimensional design elements into three-dimensional spatial vectors; A continuous and smooth surface is generated by applying a geometric modeling kernel sweep operation to the three-dimensional spatial vector. Using the continuous smooth surface, a three-dimensional surface model of the ground and road is obtained.

2. The lightweight industrial 3D floor modeling method for digital twin factories according to claim 1, characterized in that, The key two-dimensional design elements include: contour lines with elevation markings, road centerlines with elevation markings, two-dimensional road outlines, and two-dimensional ground outlines. Converting the key two-dimensional design elements into three-dimensional spatial vectors includes: The elevation of contour lines and road centerlines with elevation markings is adjusted to generate three-dimensional contour lines and three-dimensional road centerlines. The two-dimensional outlines of the road and the two-dimensional outlines of the ground are used as closed polylines. The three-dimensional spatial vector includes the three-dimensional contour lines, the three-dimensional road centerlines, and the closed polylines.

3. The lightweight industrial 3D floor modeling method for digital twin factories according to claim 2, characterized in that, A sweep operation using a geometric modeling kernel is applied to the three-dimensional spatial vector to generate a continuous and smooth surface, including: A sweeping operation is performed between each pair of adjacent three-dimensional contour lines to form a continuous three-dimensional surface. The three-dimensional road centerline is shifted to both sides by half the road width and the road camber is shifted downward to generate a three-dimensional road edge line. The three-dimensional road centerline and the three-dimensional road edge line are used as guides to form a continuous three-dimensional road surface through the sweeping operation. The continuous smooth surface includes: the continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road.

4. The lightweight industrial 3D floor modeling method for digital twin factories according to claim 3, characterized in that, Using the aforementioned continuous smooth surface, a three-dimensional surface model of the ground and road is obtained, including: By performing a Boolean intersection operation on the contour extrusion body generated by the extrusion of the closed polyline and the generated continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road, a three-dimensional surface model of the ground and the road is obtained.

5. A lightweight industrial 3D floor modeling system for digital twin factories, characterized in that, It includes a design element extraction module, a conversion module, a first generation module, and a second generation module; The design element extraction module is used to automatically extract key two-dimensional design elements from the vertical layout diagram of the factory. The conversion module is used to: convert the key two-dimensional design elements into three-dimensional spatial vectors; The first generation module is used to: apply a sweep operation of the geometric modeling kernel to the three-dimensional space vector to generate a continuous and smooth surface; The second generation module is used to: obtain a three-dimensional surface model of the ground and road using the continuous smooth surface.

6. A lightweight industrial 3D floor modeling system for digital twin factories according to claim 5, characterized in that, The key two-dimensional design elements include: contour lines with elevation markings, road centerlines with elevation markings, two-dimensional road outlines, and two-dimensional ground outlines. The conversion module is specifically used to: perform elevation modification operations on contour lines with elevation markings and road centerlines with elevation markings to generate three-dimensional contour lines and three-dimensional road centerlines, and use the two-dimensional outline of the road and the two-dimensional outline of the ground as closed polylines; the three-dimensional spatial vector includes: the three-dimensional contour lines, the three-dimensional road centerlines, and the closed polylines.

7. A lightweight industrial 3D floor modeling system for digital twin factories according to claim 6, characterized in that, The first generation module is specifically used for: A sweeping operation is performed between each pair of adjacent three-dimensional contour lines to form a continuous three-dimensional surface. The three-dimensional road centerline is shifted to both sides by half the road width and the road camber is shifted downward to generate a three-dimensional road edge line. The three-dimensional road centerline and the three-dimensional road edge line are used as guides to form a continuous three-dimensional road surface through the sweeping operation. The continuous smooth surface includes: the continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road.

8. A lightweight industrial 3D floor modeling system for digital twin factories according to claim 7, characterized in that, The second generation module is specifically used to: perform Boolean intersection operation with the contour extrusion body generated by the extrusion of the closed polyline and the generated continuous three-dimensional surface of the ground and the continuous three-dimensional surface of the road to obtain the three-dimensional surface model of the ground and the road.

9. An electronic device, characterized in that, The invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the lightweight industrial 3D floor modeling method for digital twin factories as described in any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the lightweight industrial 3D floor modeling method for digital twin factories as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Three-dimensional scene construction method, system and device for digital factory and storage medium

    CN112669454A

  • Industrial digital twin modeling system and construction method thereof

    CN118332771A