Self-arrangement positioning method and device of three-dimensional component, medium and equipment
By using a custom positioning interface in conjunction with an external data source and combining mileage markers and layout baselines for calculation, automated positioning of 3D components is achieved, solving the problem of low efficiency in manual operation in existing technologies and improving positioning accuracy and data consistency.
Patent Information
- Application Number
- CN202611275665.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for 3D component positioning rely on manual operation, resulting in high repetitive labor, low efficiency, difficulty in guaranteeing positioning accuracy, and poor engineering adaptability.
By using a custom positioning interface in conjunction with an external data source, and combining mileage markers and layout baselines for calculation, the automatic layout and positioning of target components in a 3D model can be achieved.
It improves the efficiency of 3D component layout and the consistency of positioning data, reduces deviations and repetitive work introduced by manual operation, and ensures the accuracy of positioning results and data synchronization.
Smart Images

Figure CN123181710A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, and more specifically, to a method, apparatus, medium, and device for the self-arrangement and positioning of three-dimensional components. Background Technology
[0002] With the gradual advancement of infrastructure construction, 3D modeling technology has been widely applied in engineering fields such as rail transit, urban roads, and bridges. In 3D models, designers need to arrange and position a large number of components (such as overhead contact line supports, signaling equipment, and track fasteners) according to their designed locations.
[0003] In related technologies, a common method for component positioning is as follows: designers refer to external drawings containing mileage station data in 3D software, manually locate the corresponding positions one by one according to the mileage information on the drawings, and then manually move the components to the designated station positions to complete the spatial placement. However, this method relies excessively on manual operation. Designers need to manually find the station positions by comparing them with the drawings one by one and manually move the components. When there are many components, the proportion of repetitive work is high and the layout efficiency is low. At the same time, positional deviations are easily generated during manual searching and placement, making it difficult to guarantee the accuracy of component positioning. In addition, this method is highly dependent on external drawings as the positioning basis. When the design data changes, manual alignment and placement adjustments are required again, resulting in poor project adaptability. Summary of the Invention
[0004] This disclosure provides at least one method, apparatus, medium, and device for the self-arrangement and positioning of three-dimensional components. By combining a custom positioning interface with an external data source and calculating positioning coordinates based on mileage markers and arrangement baselines, the automated arrangement and positioning of target components in a three-dimensional model is achieved, improving the efficiency of arrangement operations and the consistency of positioning data.
[0005] This disclosure provides a method for the self-arrangement and positioning of three-dimensional components, including: A custom positioning interface is loaded into the 3D model component; wherein, the custom positioning interface establishes a joint driving relationship with the external data source; The location data of the target components stored in the external data source is obtained through the customized location interface; wherein, the location data includes at least the mileage marker number corresponding to each target component; Obtain the layout baseline configured in the three-dimensional model component; For each target component, the initial positioning coordinates of the target component on the layout reference line are determined based on the positioning data and the layout reference line; Based on the initial positioning coordinates and positioning data corresponding to each target component, the arrangement result of all target components is generated on the arrangement reference line.
[0006] This disclosure provides a self-arranging and positioning device for three-dimensional components, including: An interface loading module is used to load a custom positioning interface into a 3D model component; wherein, the custom positioning interface establishes a joint driving relationship with an external data source; The data acquisition module is used to acquire the positioning data of the target components stored in the external data source through the custom positioning interface; wherein, the positioning data includes at least the mileage marker number corresponding to each target component; A baseline acquisition module is used to acquire the layout baselines configured in the three-dimensional model component; The coordinate determination module is used to determine the initial positioning coordinates of each target component on the layout reference line based on the positioning data and the layout reference line. The result generation module is used to generate the arrangement result of all the target components on the arrangement reference line based on the initial positioning coordinates and positioning data corresponding to each target component.
[0007] This disclosure provides a computer device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform a self-arrangement and positioning method for three-dimensional components as described in any of the above possible embodiments.
[0008] This disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the self-arrangement and positioning method for three-dimensional components as described in any of the possible embodiments above.
[0009] The self-arrangement and positioning method, apparatus, medium, and device for three-dimensional components provided in this disclosure achieve direct acquisition and automatic synchronization of positioning data through the joint driving relationship between a customized positioning interface and an external data source, avoiding deviations and repetitive operations caused by manual data entry or conversion. Simultaneously, based on the combined calculation of mileage markers and layout baselines, initial positioning coordinates on the layout baseline are determined for each target component, generating the layout result for all components. This enables automated positioning and sequential arrangement of batch components within the three-dimensional model component, improving the efficiency and data consistency of the layout operation. It also ensures accurate correspondence between the layout result and the original positioning information in the external data source, reducing layout errors caused by data asynchrony or inconsistent positioning baselines.
[0010] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0011] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings referenced in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort.
[0012] Figure 1 A flowchart of a self-arrangement and positioning method for three-dimensional components provided in an embodiment of this disclosure is shown; Figure 2 A flowchart of a method for generating an arrangement result provided by an embodiment of this disclosure is shown; Figure 3 A schematic diagram of the structure of a self-arranging and positioning device for three-dimensional components provided in an embodiment of this disclosure is shown; Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of this disclosure is shown. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. The components of the embodiments of this disclosure described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0014] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0015] In this document, the term "and / or" merely describes a relationship, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0016] To facilitate understanding of this embodiment, the executing entity of the self-arrangement and positioning method for three-dimensional components provided in this disclosure will first be described in detail. The executing entity of the self-arrangement and positioning method for three-dimensional components provided in this disclosure is a computer device. This computer device can be a terminal device or a server. The terminal device can also be a mobile device, a user terminal, a terminal, a handheld device, a computing device, an in-vehicle device, a wearable device, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data, and artificial intelligence platforms. Optionally, this method can also be applied to an implementation environment composed of computer devices and servers.
[0017] The self-arrangement and positioning method for three-dimensional components provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings. See also Figure 1 The diagram shows a flowchart of a self-arrangement and positioning method for three-dimensional components provided in an embodiment of this disclosure. The method includes the following steps S101 to S105: S101, Load a custom positioning interface in the 3D model component.
[0018] Understandably, 3D model components refer to computer software programs that provide a 3D modeling environment. They serve as an operational platform for designers to create, edit, and manage 3D engineering models, supporting the construction and spatial arrangement of component models in linear engineering projects such as railways, subways, and bridges. Here, professional 3D modeling software such as OpenRail Designer and OpenRoads Designer from the Bentley suite can be used, as well as other 3D modeling software with 3D modeling capabilities and secondary development interfaces, such as Revit and Civil 3D. Customized functional extensions of the aforementioned software can also be implemented according to specific project requirements.
[0019] Specifically, the custom positioning interface is a functional extension interface independent of the native interface of the 3D model component. It is a human-computer interaction panel built on the secondary development framework provided by the 3D model component. It integrates dedicated functional modules such as data import, parameter configuration, component selection, and layout triggering, and can be used to support batch positioning and layout operations of 3D components. In order to import positioning data from external data sources into the 3D model component in batches and drive the automatic layout of components, the custom positioning interface can establish a joint driving relationship with the external data source. That is, the custom positioning interface can directly read the positioning data stored in the external data source and map the read positioning data to the component attributes inside the 3D model component, driving the 3D model component to perform the corresponding positioning and layout operations according to the positioning data.
[0020] External data sources refer to computer files or database systems that store positioning data independently of the 3D model components. They are data carriers that can be independently edited and updated by designers outside of the 3D model components. Depending on the project needs, Excel spreadsheet files can be used as external data sources, or other forms such as CSV files, XML files, or database tables can be used to store positioning data.
[0021] Here, loading a custom positioning interface into the 3D model component is a prerequisite for executing the 3D component self-layout positioning method. The custom positioning interface can be embedded as a functional extension module into the main interface of the 3D model component, serving as the entry point for subsequent batch import of positioning data and triggering automatic layout.
[0022] For example, a configuration window for a custom positioning interface can be displayed within the 3D model component. This configuration window floats above the main view of the 3D model component as an independent panel. The configuration window is a visual interface unit that supports human-computer interaction, and it can include a data import area and a component list display area. The data import area allows designers to select positioning data files stored in an external data source and transfer the selected file path to the 3D model component's backend. The component list display area displays the positioning information of each target component recorded in the positioning data file in a list format after the positioning data file is parsed, allowing designers to verify and confirm the information before performing the layout operation.
[0023] In some other embodiments, the custom positioning interface can be directly embedded into the menu bar or toolbar of the 3D model component, presented as a menu item or tool button, and a configuration window will pop up after clicking. No specific limitation is made here.
[0024] S102, obtain the positioning data of the target component stored in the external data source through the customized positioning interface.
[0025] Understandably, the 3D model component can access the positioning data file stored in the external data source through the data reading path configured in the custom positioning interface, extract the relevant positioning information of the target component to be arranged, and temporarily store the extracted positioning information in the memory space of the 3D model component. The target component refers to the 3D model unit that needs to be positioned and arranged in the 3D model component. It is a model object with specific geometric shape and engineering attributes retrieved from the component library of the 3D model component. It can be classified according to the engineering category and design requirements. For example, in urban rail transit engineering, the target component can be a catenary support, and in bridge engineering, the target component can be a bridge pier or beam.
[0026] The positioning data refers to the set of basic parameters used to determine the arrangement position of the target components in three-dimensional space. It is a data record that is uniquely associated with each target component and can provide a basis for the three-dimensional model components to calculate the specific placement position of the target components. It includes at least the mileage station number corresponding to each target component, and may also include parameters such as the lateral offset, vertical offset and rotation angle corresponding to each target component, so as to determine the specific position of each target component in the extension direction of the arrangement baseline and adjust the posture of the component in three-dimensional space.
[0027] Specifically, the mileage marker refers to the numerical value indicating the distance along the extension direction of the layout baseline. In the 3D model component, it represents the distance between the target component and its relative position on the layout baseline, indicating their order and location. In rail transit engineering, it is usually marked in kilometers plus meters, for example, K100+200 indicates that the location is 100 kilometers plus 200 meters from the starting point of the line. Lateral offset refers to the deviation of the target component from its reference position in the horizontal plane, perpendicular to the extension direction of the layout baseline. It is used to move the target component from its reference position on the layout baseline to the left or right side of the layout baseline to its actual designed position. When the target component needs to be placed on the left side of the layout baseline, the lateral offset is negative; when the target component needs to be placed on the right side of the layout baseline, the lateral offset is positive. Vertical offset refers to the numerical deviation of the target component from its reference position in the vertical direction. It is used to move the target component upwards or downwards from the plane of the layout reference line to the actual design elevation. The vertical offset is positive when the target component needs to be placed above the plane of the layout reference line, and negative when it needs to be placed below the plane of the layout reference line. Rotation angle refers to the numerical angle by which the target component rotates around its vertical axis in three-dimensional space. Specifically, it can include the horizontal rotation angle around the vertical axis and the pitch rotation angle around the horizontal axis. It is used to adjust the orientation of the target component on the layout reference line to adapt to changes in the direction of the line in different sections and the component's own attitude requirements.
[0028] Here, when reading external data sources through a custom positioning interface in the 3D model component backend, the custom positioning interface can first access the storage path where the external data source is located, obtain a file list of all data files stored under that path, and display the file identifier of at least one positioning data file stored in the external data source through the custom positioning interface. Each entry in this file list corresponds to a readable positioning data file, and the custom positioning interface will display this list in the data import area of the custom positioning interface in the form of file identifiers. File identifiers are identification information that distinguishes different positioning data files, and can be displayed in the form of filename, file creation time, or file size.
[0029] Furthermore, the 3D model component continuously monitors the designer's input on the custom positioning interface. In response to a selection operation targeting a file identifier, it identifies the selected positioning data file as the target file. This target file is the source of positioning data specified by the designer for this layout operation, and it stores the positioning data records of each target component according to a preset data format. Subsequently, the data reading process in the 3D model component's background parses the file content line by line according to the target file's data format, reading the positioning data of each target component stored in the target file and temporarily storing the read positioning data in a structured form in the 3D model component's memory space.
[0030] In this way, through the joint driving mechanism between the custom positioning interface and the external data source, the 3D model component can directly obtain the positioning data of all target components in batches from the external data source, eliminating the need for designers to manually input or search for positioning information by comparing drawings within the 3D model component. Furthermore, the positioning data in the external data source can be independently edited and updated outside the 3D model component. When design conditions change, designers only need to modify the positioning data in the external data source, and the 3D model component can automatically adapt to the updated positioning requirements after rereading.
[0031] S103, Obtain the layout baseline configured in the three-dimensional model component.
[0032] Here, the layout baseline refers to a virtual reference path located in the three-dimensional space of the three-dimensional model component. It is a spatial reference object pre-configured by the designer in the three-dimensional model component according to the engineering layout requirements. It can define the overall distribution direction and extension trajectory of all target components in the three-dimensional space, and serve as a spatial carrier for subsequently determining the positioning position of each target component.
[0033] For example, when obtaining the layout baseline, at least one path line drawn in the 3D model component according to the layout requirement plane can be obtained first. This path line is a continuous curve or polyline drawn by the designer on the layout requirement plane according to the actual direction of the line in the project. Its geometric shape reflects the overall layout direction of the target component on the horizontal projection plane. Then, the path line is determined as the layout baseline. That is, the 3D model component directly uses the path line drawn by the designer as the spatial reference path for subsequent positioning and layout operations.
[0034] In some application scenarios, when the layout path of an engineering project branches or merges on a plane, designers can draw multiple path lines. The 3D model component will then merge these path lines and use them as the layout baseline to ensure that subsequent component positioning and placement can cover components on all branch paths. In other application scenarios, the existing centerline of the engineering project in the 3D model component can be directly used as the layout baseline, eliminating the need for designers to draw path lines separately; no specific limitations are made here.
[0035] S104, for each target component, determine the initial positioning coordinates of the target component on the layout reference line based on the positioning data and the layout reference line.
[0036] Understandably, the positioning data can provide the mileage position information of each target component along the extension direction of the layout baseline, as well as the offset information from the baseline position. The mileage markers in the positioning data can mark the distance position of the target component along the layout baseline, while the lateral and vertical offsets can mark the distance and direction of the target component's deviation from the layout baseline. The layout baseline provides a continuous path in three-dimensional space, which can map the distance position marked by the mileage markers to specific coordinate points in three-dimensional space, serving as the geometric basis for determining the positioning position of each target component. Based on the mileage markers of each target component in the positioning data and the spatial orientation of the layout baseline, the baseline position of each target component on the layout baseline can be determined. Then, by correcting the baseline position based on the lateral and vertical offsets in the positioning data, the initial positioning coordinates of each target component in three-dimensional space can be obtained. These coordinates are recorded in the memory space of the three-dimensional model component in the form of three-dimensional spatial coordinate values and are associated with the corresponding target component.
[0037] Here, determining the initial positioning coordinates of each target component based on the positioning data and the layout baseline can include the following steps (1) to (2): (1) Determine the reference position of the target component on the layout baseline based on the mileage station number; (2) Correct the reference position based on the horizontal and vertical offsets to obtain the initial positioning coordinates of the target component.
[0038] Specifically, the distance represented by each target component can be mapped onto the layout baseline based on the mileage markers recorded in the positioning data, thus obtaining the reference position of the target component on the layout baseline. The layout baseline is represented as a parametric spatial curve in the 3D model component. The 3D model component calculates the 3D spatial coordinates of the corresponding points on the curve based on the parametric equation of the curve and the mileage marker values. This reference position is the original position point of the target component on the layout baseline without offset correction, and can be used as the basic reference point for subsequent offset correction.
[0039] Furthermore, since the lateral offset in the positioning data can provide the offset value of the target component from the reference position in the horizontal plane perpendicular to the extension direction of the layout reference line, and the vertical offset in the positioning data can provide the offset value of the target component from the reference position in the vertical direction, after determining the reference position, the reference position can be corrected according to the lateral and vertical offsets. That is, the three-dimensional model component moves the reference position horizontally along the normal direction of the layout reference line according to the value and direction of the lateral offset, and then moves the reference position vertically according to the value and direction of the vertical offset, thereby obtaining the corrected initial positioning coordinates of the target component. The three-dimensional spatial coordinates obtained after the movement are the initial positioning coordinates of the target component.
[0040] S105, Based on the initial positioning coordinates and positioning data corresponding to each target component, generate the arrangement result of all target components on the arrangement reference line.
[0041] Furthermore, after obtaining the initial positioning coordinates of each target component, the layout result of all target components can be generated on the layout baseline based on the initial positioning coordinates and positioning data corresponding to each target component. Here, the layout result is the overall distribution state of all target components after they have been positioned in the three-dimensional space of the three-dimensional model component according to their respective initial positioning coordinates and positioning data. It can be presented in the form of a three-dimensional model view, engineering drawings, or data reports to show the spatial distribution of all target components along the layout baseline. After obtaining the layout result, the layout result of all target components on the layout baseline can be output in the three-dimensional model component and displayed to the designer in a visual manner for subsequent inspection, verification, or modification.
[0042] In some possible embodiments, considering the need to convert abstract coordinate data into concrete, visible component models when generating the layout results, and in order to intuitively present the layout of all target components in the 3D model component, refer to Figure 2 As shown, the following steps S201~S204 may be included when generating the layout result: S201, retrieve all component models corresponding to the target component from the component library of the three-dimensional model component.
[0043] Here, the 3D model component stores a pre-built component library. This library is a database that stores 3D model files of various engineering components categorized by component type and model. It includes data such as the geometry, dimensions, and material properties of different types of components. When performing component layout, the corresponding component model can be retrieved and called from this library based on the type identifier of the target component. Therefore, before generating the layout result, all the component models corresponding to the target components can be retrieved from the component library of the 3D model component for use in generating visualized component instances on the layout baseline.
[0044] S202, according to the initial positioning coordinates corresponding to each target component, determine the target position of each component model on the arrangement reference line.
[0045] Furthermore, the target position of each component model can be determined on the layout reference line according to the initial positioning coordinates corresponding to each target component. The initial positioning coordinates are point coordinates in three-dimensional space. The three-dimensional model component can use these point coordinates as the positioning reference point of the corresponding component model to determine the placement position of the component model on the layout reference line.
[0046] S203, based on the rotation angle corresponding to each target component, determine the target orientation of each component model at the corresponding target position.
[0047] Here, based on the rotation angle corresponding to each target component in the positioning data, the target orientation of each component model at its corresponding target position can be determined. The rotation angle refers to the numerical value of the angle by which the target component rotates around a vertical axis in three-dimensional space. It can be used to adjust the orientation of the target component on the layout baseline to adapt to changes in the direction of the line in different sections. The target orientation is the direction in which the component model points after rotating around the vertical axis at the target position. It ensures that the orientation of the component model is consistent with the tangent direction of the layout baseline at that position or maintains a preset angular relationship.
[0048] S204, Based on the target position and target orientation of each component model, generate the arrangement result of all the target components on the arrangement reference line.
[0049] Specifically, based on the target position and target orientation of each component model, the 3D model component can configure each component model to the corresponding position on the layout baseline according to the calculated target position and target orientation, so that each component model can complete the positioning and layout in the 3D space of the 3D model component, thereby enabling all component models to form a complete layout result on the layout baseline according to their respective positioning data, and generating the layout result of all target components.
[0050] In some other embodiments, multiple layout baselines for the target components can be set according to engineering needs. Each layout baseline corresponds to a component group, and the above positioning and layout steps are executed respectively to meet the engineering requirements of using different layout baselines in different sections. No specific limitations are made here.
[0051] The self-arrangement and positioning method, apparatus, medium, and device for three-dimensional components provided in this disclosure achieve direct acquisition and automatic synchronization of positioning data through the joint driving relationship between a customized positioning interface and an external data source, avoiding deviations and repetitive operations caused by manual data entry or conversion. Simultaneously, based on the combined calculation of mileage markers and layout baselines, initial positioning coordinates on the layout baseline are determined for each target component, generating the layout result for all components. This enables automated positioning and sequential arrangement of batch components within the three-dimensional model component, improving the efficiency and data consistency of the layout operation. It also ensures accurate correspondence between the layout result and the original positioning information in the external data source, reducing layout errors caused by data asynchrony or inconsistent positioning baselines.
[0052] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0053] Based on the same inventive concept, this disclosure also provides a self-arrangement and positioning device for three-dimensional components corresponding to the self-arrangement and positioning method for three-dimensional components. Since the principle of the device in this disclosure for solving the problem is similar to the self-arrangement and positioning method for three-dimensional components described above, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0054] Reference Figure 3 The diagram shown is a schematic of a self-arranging and positioning device 300 for three-dimensional components provided in an embodiment of this disclosure. The device includes: The interface loading module 301 is used to load a custom positioning interface into a 3D model component; wherein the custom positioning interface establishes a joint driving relationship with an external data source. The data acquisition module 302 is used to acquire the positioning data of the target components stored in the external data source through the custom positioning interface; wherein, the positioning data includes at least the mileage marker number corresponding to each target component; The baseline acquisition module 303 is used to acquire the layout baselines configured in the three-dimensional model component; The coordinate determination module 304 is used to determine the initial positioning coordinates of each target component on the layout reference line based on the positioning data and the layout reference line. The result generation module 305 is used to generate the arrangement result of all the target components on the arrangement reference line based on the initial positioning coordinates and positioning data corresponding to each target component.
[0055] In some possible embodiments, the data acquisition module 302 is specifically used for: The custom positioning interface displays the file identifier of at least one positioning data file stored in the external data source; In response to the selection operation for the file identifier, the selected location data file is determined as the target file; Read the positioning data of each target component stored in the target file.
[0056] In some possible embodiments, the positioning data further includes lateral and vertical offsets corresponding to each target component; the coordinate determination module 304 is specifically used for: The reference position of the target component on the layout baseline is determined based on the mileage marker. The reference position is corrected based on the lateral and vertical offsets to obtain the initial positioning coordinates of the target component.
[0057] In some possible embodiments, the positioning data further includes the rotation angle corresponding to each of the target components; the result generation module 305 is specifically used for: Retrieve all component models corresponding to the target component from the component library of the 3D model component; According to the initial positioning coordinates corresponding to each target component, the target position of each component model is determined on the arrangement reference line; Based on the rotation angle corresponding to each target component, the target orientation of each component model at the corresponding target position is determined respectively; Based on the target position and target orientation of each component model, the arrangement result of all the target components is generated on the arrangement reference line.
[0058] In some possible embodiments, the baseline acquisition module 303 is specifically used for: Obtain at least one path line drawn in the 3D model component according to the layout requirements plane; The path line is determined as the layout baseline.
[0059] In some possible embodiments, the result generation module 305 is further configured to: The arrangement of all the target components on the arrangement reference line is output in the three-dimensional model component.
[0060] In some possible embodiments, the interface loading module 301 is specifically used for: The configuration window for the custom positioning interface is displayed in the 3D model component; wherein, the configuration window includes a data import area and a component list display area.
[0061] Based on the same technical concept, this disclosure also provides a computer device. (See also...) Figure 4 The diagram shown is a structural schematic of a computer device 400 provided in an embodiment of this disclosure, including a processor 401, a memory 402, and a bus 403. The memory 402 is used to store execution instructions and includes a main memory 4021 and an external memory 4022. The main memory 4021, also called internal memory, is used to temporarily store computational data in the processor 401, as well as data exchanged with external memory 4022 such as a hard disk. The processor 401 exchanges data with the external memory 4022 through the main memory 4021.
[0062] In this embodiment, the memory 402 is specifically used to store application code that executes the solution of this application, and its execution is controlled by the processor 401. That is, when the computer device 400 is running, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the application code stored in the memory 402, and then executes the method described in any of the foregoing embodiments.
[0063] The memory 402 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.
[0064] Processor 401 may be an integrated circuit chip with signal processing capabilities. The aforementioned processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can 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 gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor.
[0065] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the computer device 400. In other embodiments of this application, the computer device 400 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0066] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the self-arrangement and positioning method for three-dimensional components described in the above-described method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0067] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the self-arrangement and positioning method for three-dimensional components described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0068] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0069] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.
[0070] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0071] In addition, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0072] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0073] Finally, it should be noted that the above-described embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit them. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure.
Claims
1. A method for self-arrangement and positioning of three-dimensional components, characterized in that, include: A custom positioning interface is loaded into the 3D model component; wherein, the custom positioning interface establishes a joint driving relationship with the external data source; The location data of the target components stored in the external data source is obtained through the customized location interface; wherein, the location data includes at least the mileage marker number corresponding to each target component; Obtain the layout baseline configured in the three-dimensional model component; For each target component, the initial positioning coordinates of the target component on the layout reference line are determined based on the positioning data and the layout reference line; Based on the initial positioning coordinates and positioning data corresponding to each target component, the arrangement result of all target components is generated on the arrangement reference line.
2. The method according to claim 1, characterized in that, The step of obtaining the location data of the target component stored in the external data source through the customized positioning interface includes: The custom positioning interface displays the file identifier of at least one positioning data file stored in the external data source; In response to the selection operation for the file identifier, the selected location data file is determined as the target file; Read the positioning data of each target component stored in the target file.
3. The method according to claim 2, characterized in that, The positioning data also includes the lateral and vertical offsets corresponding to each target component; determining the initial positioning coordinates of the target component on the layout reference line based on the positioning data and the layout reference line includes: The reference position of the target component on the layout baseline is determined based on the mileage marker. The reference position is corrected based on the lateral and vertical offsets to obtain the initial positioning coordinates of the target component.
4. The method according to claim 1, characterized in that, The positioning data also includes the rotation angle corresponding to each target component; the step of generating the arrangement result of all target components on the arrangement reference line based on the initial positioning coordinates corresponding to each target component and the positioning data includes: Retrieve all component models corresponding to the target component from the component library of the 3D model component; According to the initial positioning coordinates corresponding to each target component, the target position of each component model is determined on the arrangement reference line; Based on the rotation angle corresponding to each target component, the target orientation of each component model at the corresponding target position is determined respectively; Based on the target position and target orientation of each component model, the arrangement result of all the target components is generated on the arrangement reference line.
5. The method according to claim 1, characterized in that, The step of obtaining the layout baseline configured in the three-dimensional model component includes: Obtain at least one path line drawn in the 3D model component according to the layout requirements plane; The path line is determined as the layout baseline.
6. The method according to claim 1, characterized in that, After generating the arrangement result of all the target components on the arrangement reference line according to the initial positioning coordinates corresponding to each target component, the method further includes: The arrangement of all the target components on the arrangement reference line is output in the three-dimensional model component.
7. The method according to claim 1, characterized in that, The loading of a custom positioning interface into the 3D model component includes: The configuration window for the custom positioning interface is displayed in the 3D model component; wherein, the configuration window includes a data import area and a component list display area.
8. A self-arranging and positioning device for three-dimensional components, characterized in that, include: An interface loading module is used to load a custom positioning interface into a 3D model component; wherein, the custom positioning interface establishes a joint driving relationship with an external data source; The data acquisition module is used to acquire the positioning data of the target components stored in the external data source through the custom positioning interface; wherein, the positioning data includes at least the mileage marker number corresponding to each target component; A baseline acquisition module is used to acquire the layout baselines configured in the three-dimensional model component; The coordinate determination module is used to determine the initial positioning coordinates of each target component on the layout reference line based on the positioning data and the layout reference line. The result generation module is used to generate the arrangement result of all the target components on the arrangement reference line based on the initial positioning coordinates and positioning data corresponding to each target component.
9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
10. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 7.
