Flat arc top modeling method and device, computer equipment and medium
By acquiring and processing the top surface skeleton of the flat-arched roof of the sunroom, generating and determining the positional relationship between the line model and the skeleton axis, and constructing the arc path, the problem of low modeling accuracy of the flat-arched roof of the sunroom is solved, and higher modeling accuracy and parametric model deformation capability are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
- Filing Date
- 2023-07-12
- Publication Date
- 2026-07-14
Smart Images

Figure CN117010058B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of modeling technology, and in particular to a modeling method, apparatus, computer equipment, and storage medium for flat arc tops. Background Technology
[0002] A sunroom is a building constructed using transparent materials. The design and construction of a sunroom requires consideration of many factors, such as roof materials, the number and size of windows and doors, shading and insulation performance, and interior decoration. However, the modeling capabilities for sunrooms are limited in related technologies, especially in terms of the accuracy of modeling flat or arched roofs. Summary of the Invention
[0003] The purpose of this application is to propose a modeling method for flat arc tops to solve the problem of low accuracy in flat arc top modeling in related technologies.
[0004] To address the aforementioned technical problems, this application provides a method for modeling a flat arc top, comprising the following steps:
[0005] Obtain the top surface skeleton of the flat arc top, wherein the top surface skeleton includes a skeleton axis and a skeleton surface, and the skeleton surface includes a flat top skeleton surface and an arc top skeleton surface;
[0006] Generate multiple line models based on the flat-top skeleton surface;
[0007] Determine the positional relationship between each line model and the skeleton axis;
[0008] The first arc path is determined based on the positional relationship between each line model and the skeleton axis;
[0009] Determine the path of the second circular arc based on the arc apex skeleton surface;
[0010] Construct a flat arc top model based on the first and second arc paths.
[0011] To address the aforementioned technical problems, this application provides a modeling device for flat arc tops, comprising:
[0012] The skeleton surface acquisition module is used to acquire the top skeleton of the flat arc top. The top skeleton includes a skeleton axis and a skeleton surface, and the skeleton surface includes a flat top skeleton surface and an arc top skeleton surface.
[0013] The line generation module is used to generate multiple line models based on the flat-top skeleton surface;
[0014] The position determination module is used to determine the positional relationship between each line model and the skeleton axis;
[0015] The first determining module is used to determine the first arc path based on the positional relationship between each line model and the skeleton axis;
[0016] The second determining module is used to determine the second arc path based on the arc apex skeleton surface;
[0017] The model building module is used to construct a flat arc top model based on the first and second arc paths.
[0018] To address the aforementioned technical problems, this application also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described flat arc top modeling method.
[0019] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the aforementioned flat arc top modeling method.
[0020] Compared with related technologies, the embodiments of this application have the following main advantages:
[0021] By acquiring the top surface skeleton of the flat-arched roof, which includes a skeleton axis and skeleton surfaces, and the skeleton surfaces include flat-top skeleton surfaces and arched-top skeleton surfaces, multiple line models are generated based on the flat-top skeleton surfaces. The positional relationship between each line model and the skeleton axis is determined. Based on the positional relationship between each line model and the skeleton axis, a first arc path is determined. A second arc path is determined based on the arched-top skeleton surfaces. Based on the first and second arc paths, the flat-arched roof model is constructed. That is, the flat-arched roof structure of the sunroom is realized based on the line models of the flat-top skeleton surfaces and the arched-top skeleton surfaces. At the same time, based on the positional relationship between each line model and the skeleton axis, the deformation capability of the parametric model is more accurate, thus improving the modeling accuracy. Attached Figure Description
[0022] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;
[0024] Figure 2 This is a flowchart illustrating the modeling method for a flat arc top provided in an embodiment of this application;
[0025] Figure 3 This is a schematic diagram illustrating the process of constructing a sunroom roof according to an embodiment of this application;
[0026] Figure 4 This is a schematic diagram of the structure of one embodiment of the modeling device for flat arc tops provided in this application;
[0027] Figure 5 This is a schematic diagram of the structure of one embodiment of the computer device provided in this application. Detailed Implementation
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0030] To address the aforementioned problems and to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0031] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0032] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc.
[0033] Terminal devices 101, 102, and 103 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0034] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.
[0035] It should be noted that the modeling method for flat arc tops provided in this application embodiment is generally executed by a server / terminal device, and correspondingly, the modeling device for flat arc tops is generally set in the server / terminal device.
[0036] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0037] In the embodiments of this application, such as Figure 2 As shown, Figure 2 This is a flowchart illustrating the modeling method for a flat arc top provided in this application embodiment. The specific implementation of the modeling method for a flat arc top includes:
[0038] S201: Obtain the top surface skeleton of the flat arc top, wherein the top surface skeleton includes the skeleton axis and the skeleton surface, and the skeleton surface includes the flat top skeleton surface and the arc top skeleton surface.
[0039] Specifically, users can draw the foundation of the sunroom using modeling software on the terminal. After completing the foundation drawing, the facade framework of the sunroom can be generated in the interface. Then, users can set the roof type of the sunroom to a flat-arched roof type and further adjust parameters such as the total roof height, arch width, and height. Based on the facade framework, the total roof height, arch width, and height of the sunroom, the modeling software automatically generates the flat-arched roof's top surface framework. The roof type can be a sloping roof, a polygonal roof, or a flat roof, etc. This application uses a flat-arched roof type as an example and provides a detailed explanation. The top surface framework refers to the flat-arched roof framework of the sunroom.
[0040] It should be noted that, in addition to obtaining the top surface skeleton using the aforementioned 3D modeling software, the top surface skeleton can also be obtained through image processing algorithms (such as skeletonization algorithms).
[0041] S202: Generate multiple line models based on the flat-top skeleton surface.
[0042] Specifically, the flat-top skeleton surface is converted into skeleton surface data such as point sets, line segment sets, triangular meshes, or gratings. Geometric analysis or image processing algorithms are then used to extract line models from the skeleton surface data. Common methods include edge detection, curve fitting, or curve sampling.
[0043] In some implementations, multiple line models are generated based on the flat-top skeleton surface, including:
[0044] Generate flat-top raster data based on the flat-top skeleton surface;
[0045] Multiple line models are generated based on the flat-top grid data.
[0046] Flat-top raster data can be generated based on a flat-top skeleton surface, and arc-top raster data can be generated based on an arc-top skeleton surface. The methods for generating flat-top raster data and arc-top raster data are the same; the following example uses the generation of flat-top raster data.
[0047] Specifically, each point or line segment in the flat-top skeleton surface is traversed, and the corresponding raster pixel is set to a non-zero value. Interpolation or rounding is used to determine the specific pixel position in order to obtain the flat-top raster data.
[0048] Furthermore, at least one smoothing or filling process, including filtering, dilation, and erosion, can be applied to the generated flat-top raster data to eliminate noise or connect discontinuous areas.
[0049] Furthermore, the flat-top raster data can be saved as an image or other format for later use or visualization.
[0050] In some implementations, since edges can represent the boundaries of different regions or the transition of specific values in flat-top raster data, points on the boundaries of the flat-top raster data, i.e., edge points, can be extracted. Line models are created based on the connection methods of these edge points. Line models can be divided into straight segment models and curved segment models based on their geometry; for example, curved segment models can be arc segment models or circular arc models. Line models can also be divided into main beam line models, secondary beam line models, side beam line models, glass grid models, main beam cover plate line models, and secondary beam cover plate line models, etc., based on their attribute types.
[0051] For example, modeling software can be used to extract line models such as the main beam line model, the secondary beam line model, and the glass grid model from the flat-top grid data, and then visualize them. For instance, the obtained line models such as the main beam line model, the secondary beam line model, the glass grid model, the main beam cover plate model, and the secondary beam cover plate model can be placed on the corresponding main beam, secondary beam, glass grid surface, main beam cover plate, and secondary beam cover plate line models of the flat-top arch.
[0052] In some implementations, the skeleton axis includes an arc-shaped skeleton axis, and the method further includes the following steps before determining the positional relationship between each line model and the skeleton axis:
[0053] Determine the flat-top axis corresponding to the line model;
[0054] Determine the endpoint positions of the flat-top axis;
[0055] When the height of the endpoint is equal to the height of the arc in the axis of the arc top skeleton, and the axis of the flat top does not coincide with the axis of the arc top skeleton, then the arc in the axis of the arc top skeleton is determined to be associated with the line model.
[0056] Specifically, the flat-top axis corresponding to the line model can be determined based on its position on the top surface skeleton of the flat-top. The endpoints can include the start or end points of the flat-top axis. When the start or end point of the flat-top axis coincides with the higher z-coordinate point of the arc in the cylindrical surface of the arc-shaped top corresponding to the axis of the arc-shaped top, that is, the height of the endpoint is equal to the height of the arc in the axis of the arc-shaped top skeleton, and the flat-top axis does not coincide with the axis of the arc-shaped top skeleton, then the arc in the axis of the arc-shaped top skeleton is determined to be associated with the line model.
[0057] For example, the center point of the arc along the axis of the apex skeleton can typically be calculated using a point-to-line distance formula or a line-to-line distance formula. The radius of the arc can be determined by the location of the center point. The radius of the arc is equal to or slightly greater than the length of the main beam line model. Based on the arc radius and the length of the main beam line segment, the arc associated with the axis of the apex skeleton can be found.
[0058] S203: Determine the positional relationship between each line model and the skeleton axis.
[0059] The positional relationship between the line model and the skeleton axis can include the positional relationship between the main beam model and the arc in the arc top skeleton axis, the positional relationship between the side beam model and the arc in the arc top skeleton axis, and the positional relationship between the main beam cover plate model and the arc in the arc top skeleton axis.
[0060] S204: Determine the first arc path based on the positional relationship between each line model and the skeleton axis.
[0061] Since the positional relationship between each line model and the skeleton axis is not the same, when calculating the first arc path, it is necessary to establish a local coordinate system based on the coordinate system of each line model, and perform operations such as connection, shrinking, and expanding based on the positional relationship between the line model and the skeleton axis to obtain the first arc path.
[0062] In some implementations, the first arc path is determined based on the positional relationship between each line model and the skeleton axis, including:
[0063] Construct a first local coordinate system using a line model;
[0064] In the first local coordinate system, based on the positional relationship between the line model and the skeleton axis, the arcs in the flat top axis and the arc top skeleton axis are used to generate the first arc path.
[0065] For example, the first local coordinate system is a local coordinate system constructed with the main beam line model, a local coordinate system constructed with the secondary beam line model, and a local coordinate system constructed with the main beam cover plate model, etc.
[0066] In some implementations, in a first local coordinate system, based on the positional relationship between the line model and the skeleton axis, a first arc path is generated from the arcs in the flat-top axis and the arc-top skeleton axis, including:
[0067] By transforming the flat-top axis and the circular arc into the local coordinate system, multiple first line segments are obtained;
[0068] Connect multiple first line segments into a second line segment according to a preset arrangement order;
[0069] Based on the positional relationship between the line model and the skeleton axis, the second line segment is deformed to obtain the first arc path.
[0070] Specifically, the associated flat-top axis and arc are transformed into a first local coordinate system, resulting in multiple first line segments. To better connect these first line segments in an orderly manner, the Y-axis in the local coordinate system is discarded, and the X and Z axes are used to construct a two-dimensional planar coordinate system. The arrangement order is then based on ascending order along the X-axis, connecting the multiple first line segments into multiple second line segments. Deformation processing can involve operations such as shrinking or expanding the second line segments. In the local coordinate system, based on the positional relationship between the line model and the skeleton axis, the second line segments are deformed by shrinking and / or expanding. These deformed second line segments can then be connected to form new line segments. This process is repeated to obtain the first arc path.
[0071] S205: Determine the path of the second arc based on the arc top skeleton surface.
[0072] Specifically, the second circular arc path is constructed using a planar parametric model of the arc-shaped skeleton surface. For example, if the planar parametric model is an arc-shaped glass model, the obtained arc-shaped glass model is placed on the arc-shaped glass grid surface, and a local coordinate system is constructed based on the arc-shaped glass model. Then, according to the positional relationship between the arc-shaped glass model and the plane containing the chord in the arc-shaped skeleton surface, a mapping relationship is constructed. Finally, the arc-shaped glass model is deformed through the mapping relationship to obtain the second circular arc path.
[0073] In some implementations, determining the second arc path based on the arc apex skeleton surface includes:
[0074] Generate an arched glass model based on the arched skeletal surface;
[0075] A second local coordinate system is constructed using the arched glass model;
[0076] Project the chord segment and the arc segment in the arc top skeleton surface onto the second local coordinate system to obtain the positional relationship between the chord segment and the arc segment;
[0077] The path of the second circular arc is determined based on the positional relationship between the chord segment and the circular arc segment.
[0078] First, generate arc-top grid data from the arc-top skeleton surface. Each cell in the grid data can represent a transparent or opaque area. Based on the dimensions of the arc-top grid data, a blank glass model can be created using a graphics library or modeling software. The blank glass model can be a two-dimensional plane or a three-dimensional object. Iterate through each cell in the arc-top grid data, mapping the transparent or opaque areas onto the blank glass model to obtain the arc-top glass model. The process of generating the arc-top grid data from the arc-top skeleton surface is the same as described in step S202, and will not be repeated here.
[0079] In the embodiments of this application, different material properties, such as transparency and refractive index, can be set for the dome glass model as needed. Surface textures can also be added to the dome glass model, and the thickness and shape of the glass can be adjusted.
[0080] Specifically, the positional information of the chord segments and arc segments is extracted from the arc apex skeleton surface. This information could include the endpoint positions of the chord segments and the center point position, radius, starting angle, and ending angle of the arc segments. This positional information is then projected onto a second local coordinate system. The projection method is a prior art technique and will not be detailed here. Based on the projected endpoint positions of the chord segments and the center point positions of the arc segments, the positional relationship between the chord segments and arc segments can be calculated using mathematical geometry methods or relevant function libraries, such as trigonometric functions and vector operations.
[0081] Furthermore, based on the positional relationship between the chord segment and the arc segment, the arc-shaped glass model is deformed to obtain the second arc path.
[0082] S206: Construct a flat arc top model based on the first and second arc paths.
[0083] Based on the center point, radius, starting angle, and ending angle of the first arc path obtained from the flat-top skeleton surface and the second arc path obtained from the arc-top skeleton surface, further inward and outward expansion operations are performed on the first and second arc paths to obtain the flat arc-top model.
[0084] By acquiring the top surface skeleton of the flat-arched roof, which includes a skeleton axis and skeleton surfaces, and the skeleton surfaces include flat-top skeleton surfaces and arched-top skeleton surfaces, multiple line models are generated based on the flat-top skeleton surfaces. The positional relationship between each line model and the skeleton axis is determined. Based on the positional relationship between each line model and the skeleton axis, a first arc path is determined. A second arc path is determined based on the arched-top skeleton surfaces. Based on the first and second arc paths, the flat-arched roof model is constructed. That is, the flat-arched roof structure of the sunroom is realized based on the line models of the flat-top skeleton surfaces and the arched-top skeleton surfaces. At the same time, based on the positional relationship between each line model and the skeleton axis, the deformation capability of the parametric model is more accurate, thus improving the modeling accuracy.
[0085] In some implementations, reference Figure 3 , Figure 3 This is a schematic diagram of the construction process of a sunroom roof provided in this application embodiment. The specific implementation process includes the front end and the back end of the sunroom. The specific implementation process of the front end includes: drawing a flat arc roof for the sunroom on the front end (in the terminal device interface); processing the flat arc roof skeleton through the back end to generate the skeleton and grid data of the flat arc roof; generating side beam models, main beam models, and cover plate models based on the skeleton and grid data of the flat arc roof, and finding the arcs on the arc surfaces associated with the side beam models, main beam models, and cover plate models respectively; constructing local coordinate systems based on the center points of the side beam models, main beam models, and cover plate models respectively; and connecting the aforementioned arcs with the side beam models, main beam models, and cover plate models. Connecting line segments, and based on the positional relationship between the arc and the side beam model, main beam model, and cover plate model and the associated line segments, performing deformation processing such as inward shrinking or outward expansion to obtain several line segment arc paths; similarly, generating a glass model on the lake surface based on raster data, constructing a local coordinate system with the center point of the glass model, and establishing a mapping relationship with the arc and chord segments of the curved surface; calculating the deformed arc path based on the positional relationship between the glass model and the chord segments of the curved surface; and using the backend to calculate the deformation result of the arc path, constructing a flat arc roof model from the deformation result. Based on the above flat arc roof skeleton and raster data, it is possible to accurately generate on the flat arc roof skeleton of the sunroom, realizing the structure of the flat arc roof of the sunroom. The flat arc roof modeling method provided in this application can not only be applied to the flat arc roof of the sunroom, but is also suitable for other business scenarios that require parametric model deformation.
[0086] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0087] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0088] Further reference Figure 4 As a response to the above Figure 2 To implement the method shown, this application provides an embodiment of a modeling device for flat arc tops, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0089] like Figure 4 The diagram shown is a structural schematic of an embodiment of the flat arc top modeling device provided in this application. The flat arc top modeling device further includes: a skeleton surface acquisition module 41, a line generation module 42, a position determination module 43, a first determination module 44, a second determination module 45, and a model construction module 46.
[0090] The skeleton surface acquisition module 41 is used to acquire the top surface skeleton of the flat arc top, wherein the top surface skeleton includes a skeleton axis and a skeleton surface, and the skeleton surface includes a flat top skeleton surface and an arc top skeleton surface.
[0091] Line generation module 42 is used to generate multiple line models based on the flat-top skeleton surface;
[0092] Position determination module 43 is used to determine the positional relationship between each line model and the skeleton axis;
[0093] The first determining module 44 is used to determine the first arc path based on the positional relationship between each line model and the skeleton axis;
[0094] The second determining module 45 is used to determine the second arc path based on the arc top skeleton surface;
[0095] Model building module 46 is used to build a flat arc top model based on the first arc path and the second arc path.
[0096] In some implementations, the line generation module 42 includes:
[0097] The data generation submodule is used to generate flat-top raster data based on the flat-top skeleton surface.
[0098] The line generation submodule is used to generate multiple line models based on flat-top grid data.
[0099] In some embodiments, the skeleton axis includes the arc-shaped skeleton axis, and the position determination module 43 includes:
[0100] The line determination submodule is used to determine the flat-top axis corresponding to the line model;
[0101] The endpoint determination submodule is used to determine the endpoint positions of the flat-top axis.
[0102] The association submodule is used to determine the association between the arc in the arc top skeleton axis and the line model when the height of the endpoint position is equal to the arc height in the arc top skeleton axis and the flat top axis does not coincide with the arc top skeleton axis.
[0103] In some implementations, the first determining module 44 includes:
[0104] The first coordinate system submodule is used to construct the first local coordinate system using the line model;
[0105] The arc generation submodule is used to generate the first arc path in the flat top axis and the arc top skeleton axis according to the positional relationship between the line model and the skeleton axis in the first local coordinate system.
[0106] In some implementations, the arc generation submodule includes:
[0107] The first line segment generation unit is used to transform the flat-top axis and the circular arc to the local coordinate system to obtain multiple first line segments;
[0108] The second line segment generation unit is used to connect multiple first line segments into a second line segment according to a preset arrangement order;
[0109] The line segment deformation unit is used to deform the second line segment according to the positional relationship between the line model and the skeleton axis to obtain the first arc path.
[0110] In some implementations, the second determining module 45 includes:
[0111] The grid generation submodule is used to generate an arched glass model based on the arched skeletal surface;
[0112] The second coordinate system submodule is used to construct a second local coordinate system based on the arched glass model;
[0113] The position determination submodule is used to project the chord segments and arc segments in the arc top skeleton surface onto the second local coordinate system to obtain the positional relationship between the chord segments and the arc segments;
[0114] The path determination submodule is used to determine the path of the second circular arc based on the positional relationship between the chord segment and the circular arc segment.
[0115] Regarding the modeling device for the flat arc top in the above embodiments, the specific methods by which each module performs its operations have been described in detail in the embodiments of the relevant method, and will not be elaborated here.
[0116] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment.
[0117] The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected via a system bus. It should be noted that only the computer device 5 with components 51-53 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0118] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.
[0119] The memory 51 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or D-type modeling memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 51 may be an internal storage unit of the computer device 5, such as the hard disk or memory of the computer device 5. In other embodiments, the memory 51 may also be an external storage device of the computer device 5, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 5. Of course, the memory 51 may include both the internal storage unit and the external storage device of the computer device 5. In this embodiment, the memory 51 is typically used to store the operating system and various application software installed on the computer device 5, such as the program code of the modeling method for flat arc tops. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or will be output.
[0120] In some embodiments, the processor 52 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 52 is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to run program code stored in the memory 51 or process data, for example, to run program code for the modeling method of the flat arc top.
[0121] The network interface 53 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 5 and other electronic devices.
[0122] This application also provides another embodiment, namely, a computer-readable storage medium storing a flat arc top modeling program, which can be executed by at least one processor to perform the steps of the flat arc top modeling method as described above.
[0123] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0124] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.
Claims
1. A method for modeling a flat arc top, characterized in that, The method includes: Obtain the top surface skeleton of the flat arc top, wherein the top surface skeleton includes a skeleton axis and a skeleton surface, and the skeleton surface includes a flat top skeleton surface and an arc top skeleton surface; Generating multiple line models based on the flat-top skeleton surface includes: generating flat-top grid data based on the flat-top skeleton surface; and generating multiple line models based on the flat-top grid data. Determine the flat-top axis corresponding to the line model; determine the endpoint position of the flat-top axis; when the height of the endpoint position is equal to the arc height in the arc-top skeleton axis, and the flat-top axis does not coincide with the arc-top skeleton axis, then determine that the arc in the arc-top skeleton axis is associated with the line model; Determine the positional relationship between each of the line models and the skeleton axis; Determining a first arc path based on the positional relationship between each line model and the skeleton axis includes: constructing a first local coordinate system using the line models; and generating the first arc path by generating arcs in the flat-top axis and the arc-top skeleton axis according to the positional relationship between the line models and the skeleton axis in the first local coordinate system. Determining a second arc path based on the arc-top skeleton surface includes: generating an arc-top glass model based on the arc-top skeleton surface; constructing a second local coordinate system using the arc-top glass model; projecting chord segments and arc segments in the arc-top skeleton surface onto the second local coordinate system to obtain the positional relationship between the chord segments and the arc segments; and determining the second arc path based on the positional relationship between the chord segments and the arc segments. Construct a flat arc top model based on the first arc path and the second arc path.
2. The modeling method for flat arc tops according to claim 1, characterized in that, In the first local coordinate system, based on the positional relationship between the line model and the skeleton axis, generating the first arc path from the arcs in the flat-top axis and the arc-top skeleton axis includes: The flat-top axis and the circular arc are transformed into the local coordinate system to obtain multiple first line segments; According to a preset arrangement order, connect multiple first line segments to form a second line segment; Based on the positional relationship between the line model and the skeleton axis, the second line segment is deformed to obtain the first arc path.
3. A modeling apparatus for a flat arc top, used to perform the modeling method for a flat arc top as described in claim 1 or 2, characterized in that, The modeling device for the flat arc top includes: The skeleton surface acquisition module is used to acquire the top surface skeleton of the flat arc top, wherein the top surface skeleton includes a skeleton axis and a skeleton surface, and the skeleton surface includes a flat top skeleton surface and an arc top skeleton surface; A line generation module is used to generate multiple line models based on the flat-top skeleton surface; A position determination module is used to determine the positional relationship between each of the line models and the skeleton axis; The first determining module is used to determine the first arc path based on the positional relationship between each line model and the skeleton axis; The second determining module is used to determine the second arc path based on the arc apex skeleton surface; The model building module is used to construct a flat arc top model based on the first arc path and the second arc path.
4. The modeling device for flat arc tops according to claim 3, characterized in that, The line generation module includes: The data generation submodule is used to generate flat-top grid data based on the flat-top skeleton surface; The line generation submodule is used to generate multiple line models based on the flat-top grid data.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the modeling method for a flat arc top as described in any one of claims 1 to 2.
6. 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 steps of the modeling method for a flat arc top as described in any one of claims 1 to 2.