Three-dimensional model curved surface unfolding method and device, electronic equipment and storage medium
By determining the intersection of the arc wall and the circular hole and drawing on the two -dimensional plan, the problem of the existing three -dimensional model cannot intuitively express the projection relationship between the curved wall and the hole position. , Improved user observation efficiency.
Patent Information
- Application Number
- CN202411206242.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-08-30
AI Technical Summary
The existing three-dimensional model cannot intuitively express the position projection relationship between curved walls and holes, which brings inconvenience to user observations.
By determining the intersection of the arc wall and the circular hole, the arc length of the intersection point along the height of the arc wall is used as the X value of the two -dimensional flat plane diagram, and the height of the intersection point is used as the Y value. , Generate the edges of the holes to expand lines.
The three -dimensional graphical data information of the arc wall and the hole on the wall is realized in the form of a two -dimensional drawing, which is convenient for users to generate pictures and graphic observations, and improve work efficiency.
Smart Images

Figure CN119379961A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of three-dimensional models, and in particular to a method and device for unfolding a three-dimensional model surface, an electronic device, and a storage medium. Background Art
[0002] In civil engineering design, curved walls are often used as a support for drilling holes or installing tray brackets on the curved walls. However, the current three-dimensional model can only present the three-dimensional relationship between the curved wall and the hole, and cannot intuitively show the positional projection relationship between the curved wall and the hole, which brings inconvenience to users' observation. Summary of the invention
[0003] In view of the above situation, the embodiments of the present application provide a method and device for unfolding a three-dimensional model surface, an electronic device, and a storage medium, aiming to solve the above problems or at least partially solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for unfolding a three-dimensional model surface, characterized in that the three-dimensional model surface is an arc wall, and a circular hole is arranged on the arc wall, and the method includes: determining n intersection points of the circular hole and the arc surface of the arc wall, where n is an integer greater than 1; based on the n intersection points, determining the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall; using the arc lengths of the n intersection points as x values and the distances of the n intersection points from the second reference line of the arc surface of the arc wall as y values, and displaying the n intersection points on a two-dimensional plane; based on the n intersection points, generating an edge line where the circular hole intersects with the arc surface of the arc wall.
[0005] In some embodiments, determining the n intersection points of the circular hole and the arc surface of the circular wall includes: determining the circle equation of the arc surface of the circular wall; establishing n straight line equations through the coordinates of n points on the inner arc surface of the circular hole; combining the n straight line equations and the circle equation to determine the n intersection points of the circular hole and the arc surface of the circular wall.
[0006] In some embodiments, determining the n straight line equations of the circular hole includes: dividing the central circular cross-section of the circular hole into n equal parts, and determining the coordinates of the n equally divided points where the circular cross-section intersects the inner arc surface of the circular hole; using the z-axis of the local coordinate system of the circular hole as the direction vector, and establishing n straight line equations passing through the coordinates of the n equally divided points respectively.
[0007] In some embodiments, determining the coordinates of the n equally divided points where the circular cross section intersects the inner arc surface of the circular hole includes: determining the coordinates of the n equally divided points in the local coordinate system through the local coordinate system of the circular hole; and converting the coordinates of the n equally divided points in the local coordinate system into the coordinates of the n equally divided points in the global coordinate system based on a coordinate system conversion function.
[0008] In some embodiments, determining the circle equation of the arc wall surface includes: obtaining the circle radius and center coordinates of the arc wall surface through the arc wall model attributes; and establishing the circle equation of the arc wall surface based on the circle radius and the center coordinates.
[0009] In some embodiments, based on the n intersections, determining the arc length from each of the n intersections to the same elevation of the first reference line of the arc surface of the arc wall includes: obtaining a horizontal line formed by connecting each intersection with the center of the circle at the same elevation of the arc wall; and determining the arc length from the intersection to the same elevation of the first reference line of the arc surface of the arc wall based on the angle and phase angle between the horizontal line and the X-axis of the three-dimensional model.
[0010] In a second aspect, an embodiment of the present application further provides a device for unfolding a three-dimensional model surface, the device comprising: a processing module, for determining n intersection points between the circular hole and the arc surface of the arc wall, where n is an integer greater than 1; based on the n intersection points, determining the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall; a display module, for displaying the n intersection points on a two-dimensional plan view of the unfolded arc wall, using the arc lengths of the n intersection points as x values and the heights of the n intersection points from the second reference line of the arc surface of the arc wall as y values; based on the n intersection points, generating an edge line where the circular hole intersects with the arc surface of the arc wall.
[0011] In some embodiments, the processing module is used to determine the circle equation of the arc wall surface; establish n straight line equations through the coordinates of n points on the arc surface inside the circular hole; and combine the n straight line equations and the circle equation to determine n intersection points between the circular hole and the arc wall surface.
[0012] In some embodiments, the processing module 201 is used to divide the central circular cross-section of the circular hole into n equal parts, determine the coordinates of the n equally divided points where the circular cross-section intersects with the inner arc surface of the circular hole; use the z-axis of the local coordinate system of the circular hole as the direction vector, pass through the coordinates of the n equally divided points respectively, and establish n straight line equations.
[0013] In some embodiments, the processing module 201 is used to determine the coordinates of n equally divided points in the local coordinate system through the local coordinate system of the circular hole; based on the coordinate system conversion function, the coordinates of the n equally divided points in the local coordinate system are converted into the coordinates of n equally divided points in the global coordinate system.
[0014] In some embodiments, the processing module 201 is used to obtain the radius and center coordinates of the arc surface of the arc wall through the arc wall model attributes; based on the radius and center coordinates, establish the circle equation of the arc surface of the arc wall.
[0015] In some embodiments, the processing module 201 is used to obtain a horizontal line formed by connecting each intersection with the center of the circle at the same elevation of the arc wall; based on the angle and phase angle between the horizontal line and the X-axis of the three-dimensional model, determine the arc length from the intersection to the first reference line of the arc surface of the arc wall at the same elevation.
[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform the steps of the first aspect described above.
[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the steps of the first aspect above.
[0018] At least one of the above-mentioned technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: by determining the intersection of the arc wall and the circular hole, taking the arc length of the intersection along the arc wall at the same height as the x value of the two-dimensional plane diagram, and drawing the height of the intersection as the y value on the two-dimensional plane diagram, and connecting the intersection points in sequence, the edge expansion line of the hole can be obtained, thereby realizing the conversion of the three-dimensional graphic data information of the arc wall and the hole on the wall into the form of a two-dimensional drawing, which greatly facilitates the user's drawing display and plane observation, thereby improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 A three-dimensional schematic diagram of an arc wall model provided in an embodiment of the present application is shown;
[0021] Figure 2 A schematic diagram of the process of developing a three-dimensional model surface provided in an embodiment of the present application is shown;
[0022] Figure 3 A three-dimensional schematic diagram of the intersection of the arc wall and the circular hole provided in an embodiment of the present application is shown;
[0023] Figure 4A two-dimensional schematic diagram of the intersection of the arc wall and the circular hole provided in an embodiment of the present application is shown;
[0024] Figure 5 A two-dimensional schematic diagram of an arc wall and a circular hole provided in an embodiment of the present application is shown;
[0025] Figure 6 A schematic diagram showing a straight line equation of a circular hole provided in an embodiment of the present application;
[0026] Figure 7 A schematic diagram showing the intersection of a straight line equation of a circular hole and a circle equation of an arc wall provided in an embodiment of the present application;
[0027] Figure 8 A structural diagram of a three-dimensional model surface unfolding device provided in an embodiment of the present application is shown;
[0028] Fig. 9 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such use is interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".
[0031] As described in the background technology, in civil engineering design, curved walls are often used as a support for drilling holes or installing pallet brackets on the curved walls. However, the current three-dimensional model can only present the three-dimensional relationship between the curved wall and the hole, and cannot intuitively show the positional projection relationship between the curved wall and the hole, which brings inconvenience to users' observation.
[0032] Based on this, an embodiment of the present application proposes a method for unfolding a three-dimensional model surface. By determining the intersection of the arc wall and the circular hole, the arc length of the intersection along the arc wall at the same height is used as the x value of the two-dimensional plane diagram, and the height of the intersection is used as the y value to be drawn on the two-dimensional plane diagram. The intersection points are connected sequentially to obtain the edge unfolding lines of the hole, thereby realizing the conversion of the three-dimensional graphic data information of the arc wall and the hole on the wall into the form of a two-dimensional drawing, which greatly facilitates the user's drawing display and plane observation, thereby improving work efficiency.
[0033] In some embodiments, the present application is applied to AVEVA Everything3D and AVEVA PDMS system software, such as Figure 1 As shown, Figure 1 The figure shows a circular wall model displayed in AVEVA Everything3D software, with horizontal circular holes on the circular wall model.
[0034] The present application is described in detail below through specific embodiments.
[0035] Figure 2 A schematic diagram of the process of unfolding a three-dimensional model surface provided in an embodiment of the present application is shown. Figure 2 It can be seen that the present application at least includes steps S101 to S104:
[0036] Step S101: determine n intersection points between the circular hole and the arc surface of the arc wall, where n is an integer greater than 1.
[0037] like Figure 3 As shown, the intersection point is the point on the intersection line of the edge line of the circular hole and the arc surface of the arc wall. Figure 3 Only the intersection point between one side of the circular hole and the outer arc surface of the circular arc wall is shown. It should be understood that the other side of the circular hole and the inner arc surface of the circular arc wall also have an intersection point.
[0038] Step S102: Based on the n intersection points, determine the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall.
[0039] The first baseline is Figure 3 In other embodiments, the first reference line can also be Figure 3 The right edge line of the arc surface of the middle arc wall, the embodiment of the present application takes the left edge line as an example for explanation.
[0040] Step S103: Using the arc lengths of the n intersection points as x values, and the heights of the n intersection points from the second reference line of the arc surface of the arc wall as y values, the n intersection points are displayed on the two-dimensional plane of the arc wall.
[0041] The second reference line is the lower edge line of the outer arc surface of the arc wall. In other embodiments, the second reference line may be the upper edge line of the outer arc surface of the arc wall. The embodiment of the present application is described by taking the lower edge line as an example.
[0042] The coordinate system to which the x value and the y value mentioned in step S103 belong refers to the coordinate system established by the two-dimensional plane diagram of the arc wall. Figure 4 As shown, the rectangle is a two-dimensional plane diagram of the unfolded arc wall. A coordinate system is established with the bottom of the unfolded arc wall as the x-axis and the left side as the y-axis, and n intersection points are displayed in the rectangle.
[0043] Step S104: Based on the n intersection points, an edge line where the circular hole intersects with the arc surface of the arc wall is generated.
[0044] like Figure 5 As shown, after connecting n intersection points in sequence, an edge line where the circular hole intersects the outer arc surface of the arc wall is formed, which is also a two-dimensional plane diagram of the arc wall and the circular hole after unfolding.
[0045] In an embodiment of the present application, by determining the intersection of the arc wall and the circular hole, the arc length of the intersection along the arc wall at the same height is used as the x value of the two-dimensional plane diagram, and the height of the intersection is used as the y value to be drawn on the two-dimensional plane diagram, and the intersection points are connected in sequence to obtain the edge expansion line of the hole, thereby realizing the conversion of the three-dimensional graphic data information of the arc wall and the hole on the wall into the form of a two-dimensional drawing, which greatly facilitates the user's drawing display and plane observation, thereby improving work efficiency.
[0046] In some embodiments of the present application, in the above method, in step S102, n intersection points of the circular hole and the arc surface of the arc wall are determined based on the following method:
[0047] Determine the circle equation of the arc wall surface, establish n straight line equations through the coordinates of n points on the arc surface inside the circular hole, combine the n straight line equations and the circle equation, and determine the n intersection points of the circular hole and the arc wall surface.
[0048] like Figure 6 As shown, the arc wall and the circular hole have multiple intersection points, and the coordinates of the intersection points can be solved by the circle equation of the arc wall and the straight line equation passing through the circular hole.
[0049] In some embodiments, the radius and center coordinates of the arc surface of the arc wall are obtained through the arc wall model attributes; based on the radius and center coordinates, the circle equation of the arc surface of the arc wall is established.
[0050] In some embodiments, the central circular section of the circular hole is divided into n equal parts, and the coordinates of the n equal-division points where the circular section intersects with the inner arc surface of the circular hole are determined; the z-axis of the local coordinate system of the circular hole is used as the direction vector, and the n straight line equations are established by passing through the coordinates of the n equal-division points respectively. Figure 7 As shown, the red dotted line is the equation of the line.
[0051] Specifically, the coordinates of n equally divided points in the local coordinate system are determined through the local coordinate system of the circular hole; based on the coordinate system conversion function, the coordinates of n equally divided points in the local coordinate system are converted into the coordinates of n equally divided points in the global coordinate system.
[0052] The coordinate system conversion function is provided by AVEVA Everything 3D or AVEVA PDMS software.
[0053] In some embodiments, AVEVA Everything3D and AVEVA PDMS software provide a line and arc object intersection function, and the coordinates of n intersection points can be determined by the intersection function.
[0054] In some embodiments of the present application, in the above method, step S104 determines the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall based on the following method:
[0055] Get the horizontal line formed by connecting each intersection point with the center point of the arc wall at the same elevation;
[0056] Based on the angle and phase angle between the horizontal line and the X-axis of the global coordinate system of the three-dimensional model, the arc length from the intersection point to the same elevation of the first reference line of the arc surface of the arc wall is determined.
[0057] In some embodiments of the present application, a device for unfolding a three-dimensional model surface is provided, and the device for unfolding a three-dimensional model surface corresponds to the method for unfolding a three-dimensional model surface in the above-mentioned embodiment. Figure 8 As shown, the three-dimensional model surface unfolding device includes: a processing module 201 and a display module 202. The detailed description of each functional module is as follows:
[0058] Processing module 201 is used to determine n intersection points between the circular hole and the arc surface of the arc wall, where n is an integer greater than 1; based on the n intersection points, determine the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall;
[0059] The display module 202 is used to display the n intersection points on a two-dimensional plane diagram of the unfolded arc wall, using the arc lengths of the n intersection points as x values and the heights of the n intersection points from the second reference line of the arc surface of the arc wall as y values; and based on the n intersection points, generate edge lines where the circular holes intersect the arc surface of the arc wall.
[0060] In some embodiments of the present application, in the above-mentioned device, the processing module 201 is used to determine the circle equation of the arc surface of the arc wall; establish n straight line equations through the coordinates of n points on the arc surface inside the circular hole; combine the n straight line equations and the circle equation to determine the n intersection points of the circular hole and the arc surface of the arc wall.
[0061] In some embodiments of the present application, in the above-mentioned device, the processing module 201 is used to divide the central circular cross-section of the circular hole into n equal parts, determine the coordinates of the n equally divided points where the circular cross-section intersects with the inner arc surface of the circular hole; use the z-axis of the local coordinate system of the circular hole as the direction vector, and pass through the coordinates of the n equally divided points to establish n straight line equations.
[0062] In some embodiments of the present application, in the above-mentioned device, the processing module 201 is used to determine the coordinates of n equally divided points in the local coordinate system through the local coordinate system of the circular hole; based on the coordinate system conversion function, the coordinates of n equally divided points in the local coordinate system are converted into the coordinates of n equally divided points in the global coordinate system.
[0063] In some embodiments of the present application, in the above device, the processing module 201 is used to obtain the radius and center coordinates of the arc surface of the arc wall through the arc wall model attributes; based on the radius and center coordinates, establish the circle equation of the arc surface of the arc wall.
[0064] In some embodiments of the present application, in the above-mentioned device, the processing module 201 is used to obtain a horizontal line formed by connecting each intersection with the center of the circle at the same elevation of the arc wall; based on the angle and phase angle between the horizontal line and the X-axis of the three-dimensional model, determine the arc length from the intersection to the first reference line of the arc surface of the arc wall at the same elevation.
[0065] It should be noted that any of the above-mentioned three-dimensional model surface unfolding devices can implement the above-mentioned three-dimensional model surface unfolding method in a one-to-one correspondence, which will not be repeated here.
[0066] Fig. 9 FIG. 1 is a schematic diagram showing the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.
[0067] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0068] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.
[0069] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a three-dimensional model surface unfolding device at the logical level. The processor executes the program stored in the memory and is specifically used to execute the above method.
[0070] The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0071] The electronic device can execute the three-dimensional model surface expansion method provided by multiple embodiments of the present application, and realize the three-dimensional model surface expansion device in Figure 8 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.
[0072] An embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs, and the one or more programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the three-dimensional model surface unfolding method provided by multiple embodiments of the present application.
[0073] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0074] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0075] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0077] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0078] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0079] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0080] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
[0081] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0082] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for unfolding a three-dimensional model surface, characterized in that: The three-dimensional model curved surface is an arc wall, and circular holes are arranged on the arc wall. The method includes: Determine n intersection points between the circular hole and the arc surface of the arc wall, where n is an integer greater than 1; Based on the n intersection points, determine the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall; Using the arc lengths of the n intersections as x values, and the heights of the n intersections from the second reference line of the arc surface of the arc wall as y values, the n intersections are displayed on a two-dimensional plane diagram of the arc wall; Based on the n intersection points, an edge line where the circular hole intersects with the arc surface of the arc wall is generated.
2. The method according to claim 1, characterized in that The step of determining n intersection points between the circular hole and the arc surface of the arc wall includes: Determine the circle equation of the arc surface of the arc wall; Establishing n straight line equations through the coordinates of n points on the inner arc surface of the circular hole; The n straight line equations and the circle equation are combined to determine n intersection points between the circular hole and the arc surface of the arc wall.
3. The method according to claim 2, characterized in that The step of determining the n straight line equations of the circular hole comprises: Divide the central circular cross section of the circular hole into n equal parts, and determine the coordinates of n equal-divided points where the circular cross section intersects with the inner arc surface of the circular hole; Taking the z-axis of the local coordinate system of the circular hole as the direction vector, n straight line equations are established respectively through the coordinates of the n equally divided points.
4. The method according to claim 3, characterized in that The step of determining the coordinates of n equally divided points where the circular cross section intersects the inner arc surface of the circular hole comprises: Through the local coordinate system of the circular hole, determine the coordinates of n equally divided points in the local coordinate system; Based on the coordinate system conversion function, the coordinates of n equally divided points in the local coordinate system are converted to the coordinates of n equally divided points in the global coordinate system.
5. The method according to claim 2, characterized in that: The step of determining the circle equation of the arc wall surface comprises: Obtaining the radius and center coordinates of the arc surface of the arc wall through the arc wall model attributes; Based on the circle radius and the circle center coordinates, a circle equation of the arc wall surface is established.
6. The method according to any one of claims 1 to 5, characterized in that The step of determining, based on the n intersection points, the arc length from each of the n intersection points to a point at which the first reference line of the arc surface of the circular arc wall has the same elevation includes: Obtain a horizontal line formed by connecting each intersection point with the center of the arc wall at the same elevation; Based on the angle and phase angle between the horizontal line and the X-axis of the three-dimensional model, the arc length from the intersection point to the same elevation of the first reference line of the arc surface of the arc wall is determined.
7. A device for unfolding a three-dimensional model surface, characterized in that: The device comprises: A processing module, configured to determine n intersection points between the circular hole and the arc surface of the arc wall, where n is an integer greater than 1; based on the n intersection points, determine the arc length from each of the n intersection points to the same elevation of the first reference line of the arc surface of the arc wall; The display module is used to display the n intersection points on a two-dimensional plane diagram of the unfolded arc wall, using the arc lengths of the n intersection points as x values and the heights of the n intersection points from the second reference line of the arc surface of the arc wall as y values; and based on the n intersection points, generate an edge line where the circular hole intersects with the arc surface of the arc wall.
8. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the steps of the method for unfolding a three-dimensional model surface as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including multiple applications, enables the electronic device to perform the steps of the three-dimensional model surface unfolding method as described in any one of claims 1-6.
Citation Information
Patent Citations
Cambered surface model generating method and device
CN106846490A
Model contour segmentation method and device, storage medium, and terminal
CN109271654A
Wall model generation method, device, equipment and readable storage medium
CN112906112A
Method for carrying out plane arc marking in CAD in batches
CN114564770A
Method and device for free curved surface generation
JP1995334704A