Method and device for positioning and arranging component positions
By generating centerlines and determining positioning spacing in 3D model components, the problem of poor component positioning accuracy is solved, achieving efficient and accurate component positioning.
Patent Information
- Application Number
- CN202511061099.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-12-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In existing technologies, the accuracy of component positioning and arrangement is poor, and the amount of manual operation is large, resulting in inaccurate positioning.
The center lines of the expected arrangement of components are generated in the 3D model component, the positioning spacing and target components are determined, and the array distance is configured based on the positioning spacing to achieve centralized positioning and arrangement of components.
It improves the accuracy and efficiency of component positioning and arrangement, reduces the tediousness of manual operation, and achieves precise arrangement of multiple components.
Smart Images

Figure CN121145293A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method and apparatus for locating and arranging components. Background Technology
[0002] With the gradual optimization of my country's infrastructure construction, designers often use open-source 3D software for modeling when designing infrastructure such as subways or bridges to meet different design requirements. In particular, to ensure accurate alignment of components of different shapes and functions in the 3D model during arrangement, it is necessary to position the components.
[0003] Currently, the existing method for locating component positions typically uses the mileage of the component's centerline for alignment. In this case, the mileage is used as a parameter value from external drawings to determine the component's position during manual layout. However, manually locating components using mileage data from external drawings requires moving each component to a designated station and then placing it in space, which significantly increases the workload and reduces the accuracy of component positioning and layout. Summary of the Invention
[0004] In view of this, this application provides a method and apparatus for positioning and arranging components, the main purpose of which is to solve the problem of poor positioning and arrangement accuracy of existing components.
[0005] According to one aspect of this application, a method for locating and arranging component positions is provided, comprising:
[0006] In the 3D model components, the center lines of the expected arrangement of components are generated according to the arrangement requirement plane;
[0007] Determine the positioning spacing of at least two of the intended arrangement components on the center line, and determine at least one selected target component;
[0008] The array distance of the target components is configured based on the positioning spacing to complete the arrangement of all the target components.
[0009] Furthermore, generating the centerline of the expected arrangement of components according to the arrangement requirement plane in the three-dimensional model component includes:
[0010] Start the 3D model component and load the planar parameters of the required planes;
[0011] Draw at least two plane centerlines based on the aforementioned plane parameters;
[0012] The centerline of the expected arrangement of components is generated based on the longitudinal section parameters of the plane centerline.
[0013] Further, generating the centerline of the expected arrangement of components based on the longitudinal section parameters of the plane centerline includes:
[0014] Configure the longitudinal profile parameters of the plane centerline through the longitudinal profile interface of the plane centerline;
[0015] The centerline is obtained by fitting the longitudinal line activated based on the longitudinal parameters.
[0016] Further, determining the positioning spacing of at least two of the expected arrangement components includes:
[0017] Determine the first mileage position of the preceding expected arrangement component and the second mileage position of the following expected arrangement component, wherein the preceding and following expected arrangement components include adjacent components or non-adjacent components;
[0018] The positioning distance is determined based on the difference between the second mileage position and the first mileage position.
[0019] Further, determining the selected at least one target component includes:
[0020] Display the component selection options in the 3D model component;
[0021] The target component is determined based on the component selected from the component selection options.
[0022] Furthermore, configuring the array distance of the target components based on the positioning spacing to complete the arrangement of all the target components includes:
[0023] One of the target components is positioned at the starting point of the centerline;
[0024] Configure the array attribute of the target component as a path attribute, and configure the positioning spacing as the array distance of the target component;
[0025] The array properties are activated to configure the arrangement of the target components, and the arrangement of all the target components is completed.
[0026] Furthermore, the method also includes:
[0027] The arrangement of the target components on the center line is output according to the preset positioning ratio.
[0028] According to another aspect of this application, a positioning and arrangement device for component positions is provided, comprising:
[0029] The generation module is used to generate the centerlines of the components to be arranged according to the layout requirements plane in the 3D model components.
[0030] A determining module is used to determine the positioning spacing of at least two of the expected arrangement components on the center line, and to determine at least one selected target component;
[0031] The arrangement module is used to configure the array distance of the target components based on the positioning spacing, and to complete the arrangement of all the target components.
[0032] Furthermore, the generation module is specifically used to activate the three-dimensional model component and load the planar parameters of the arrangement requirement plane; draw at least two planar centerlines based on the planar parameters; and generate the centerlines of the expected arrangement components based on the longitudinal parameters of the planar centerlines.
[0033] Furthermore, the generation module is specifically used to configure the longitudinal profile parameters of the plane centerline through the longitudinal profile interface of the plane centerline; and to fit the longitudinal profile activated based on the longitudinal profile parameters to obtain the centerline.
[0034] Furthermore, the determining module is specifically used to determine the first mileage position of the previous expected arrangement component and the second mileage position of the subsequent expected arrangement component, wherein the previous expected arrangement component and the subsequent expected arrangement component include adjacent components or non-adjacent components; and to determine the positioning distance based on the difference between the second mileage position and the first mileage position.
[0035] Furthermore, the determining module is specifically used to display component selection items in the three-dimensional model component; and to determine the target component based on the component selected from the component selection items.
[0036] Furthermore, the arrangement module is specifically used to configure a target component at the starting position of the center line; configure the array attribute of the target component as a path attribute, and configure the positioning spacing as the array distance of the target component; activate the array attribute to arrange the target component, and complete the arrangement of all the target components.
[0037] Furthermore, the device also includes:
[0038] The output module is used to output the arrangement result of the target component on the center line according to a preset positioning ratio.
[0039] According to another aspect of this application, a storage medium is provided, wherein at least one executable instruction is stored therein, the executable instruction causing a processor to perform an operation corresponding to the above-described method for arranging the positions of the components.
[0040] According to another aspect of this application, a terminal is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;
[0041] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the above-mentioned component position positioning and arrangement method.
[0042] By employing the above technical solutions, the technical solutions provided in the embodiments of this application have at least the following advantages:
[0043] This application provides a method and apparatus for locating and arranging component positions. Compared with the prior art, the embodiments of this application generate center lines of the expected arrangement components in a three-dimensional model component according to the arrangement requirement plane; determine the positioning distance between at least two of the expected arrangement components on the center line, and determine at least one selected target component; configure the array distance of the target component based on the positioning distance, and complete the arrangement of all the target components. This realizes the direct positioning and arrangement of components in the three-dimensional model and the centralized positioning and arrangement of multiple components, which greatly improves the arrangement efficiency and reduces the tediousness of manual operation, thereby improving the accuracy of component positioning and arrangement.
[0044] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0045] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0046] Figure 1 A flowchart illustrating a method for locating and arranging components according to an embodiment of this application is shown.
[0047] Figure 2 This illustration shows a planar distribution diagram provided in an embodiment of this application;
[0048] Figure 3 This illustration shows a schematic diagram of activating and fitting a longitudinal section line according to an embodiment of this application;
[0049] Figure 4 This illustration shows a schematic diagram of a centerline provided in an embodiment of this application;
[0050] Figure 5 This illustration shows a schematic diagram of arranging a target component according to an embodiment of this application;
[0051] Figure 6 This illustration shows a schematic diagram of the arrangement of all components according to an embodiment of this application;
[0052] Figure 7 This illustration shows a block diagram of a component positioning and arrangement device according to an embodiment of this application;
[0053] Figure 8 A schematic diagram of the structure of a terminal provided in an embodiment of this application is shown. Detailed Implementation
[0054] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0055] This application provides a method for locating and arranging components, such as... Figure 1 As shown, the method includes:
[0056] 101. In the 3D model component, generate the centerline of the expected arrangement of components according to the layout requirement plane.
[0057] In this embodiment, the current execution end is the execution subject that arranges and sets the components. It can be a terminal processor or a processing server, so as to start the open-source 3D model component to arrange different types of components. The components are suitable for different application scenarios. For example, in the construction of urban road models, the components can be road building components, and in the construction of urban subway models, the components can be subway station components, etc. This embodiment does not make specific limitations.
[0058] It should be noted that the layout requirement plane is the plane to be constructed, which can be obtained in the 3D model component by placing the plane or inputting the plane's spatial position. There can be multiple layout requirement planes or a single layout requirement plane, and the corresponding centerline is generated according to this plane. This application embodiment does not impose specific limitations. Furthermore, the 3D model component in this application embodiment can be Bentley software or other 3D model development software, without specific limitations.
[0059] 102. Determine the positioning distance between at least two of the expected arrangement components on the center line, and determine at least one selected target component.
[0060] In this embodiment, to achieve simultaneous arrangement of multiple components while reducing the tediousness of positioning each component individually, the current execution end determines the positioning spacing between the components to be arranged. This positioning spacing can be the distance between two adjacent components or the distance between multiple non-adjacent components; this embodiment does not impose a specific limitation. Simultaneously, the user can select a target component from multiple types of components. The target component can be of the same type or different types; this embodiment does not impose a specific limitation.
[0061] It should be noted that, since the required layout plane can be a plane set or selected in three-dimensional space in different directions, the resulting center line can also be a straight line in different directions in three-dimensional space to determine the positioning spacing on the center line. This application embodiment does not make specific limitations.
[0062] 103. Configure the array distance of the target components based on the positioning spacing to complete the arrangement of all the target components.
[0063] In this embodiment of the application, after determining the positioning spacing, the array distance of the target component is configured according to this positioning spacing so as to arrange the target component on the center line, realize the replication of the construction position on the center line, and complete the arrangement configuration.
[0064] This application embodiment generates centerlines of expected component layouts in a 3D model component according to the layout requirement plane; determines the positioning distance between at least two expected component layouts on the centerline, and identifies at least one target component; configures the array distance of the target component based on the positioning distance, and completes the layout of all the target components. This enables direct component positioning and layout in the 3D model, and achieves centralized positioning and layout of multiple components, greatly improving layout efficiency and reducing the tediousness of manual operation, thereby improving the accuracy of component positioning and layout.
[0065] In another embodiment of this application, for further definition and explanation, the step of generating the centerline of the expected arrangement of components in the three-dimensional model component according to the arrangement requirement plane includes:
[0066] Start the 3D model component and load the planar parameters of the required planes;
[0067] Draw at least two plane centerlines based on the aforementioned plane parameters;
[0068] The centerline of the expected arrangement of components is generated based on the longitudinal section parameters of the plane centerline.
[0069] To achieve effective and accurate component positioning and arrangement by arranging components along centerlines in a single operation, the current execution end first activates the 3D model component and loads the planar parameters of the arrangement requirement plane when generating the centerlines. At this point, the user can enter the planar parameters of the arrangement requirement plane in tabular form and load these tabular parameters into the 3D model component via its file loading interface to obtain the planar parameters for different arrangement requirement planes. These planar parameters can include planar coordinates or planar vectors in 3D space; this embodiment does not impose specific limitations. Furthermore, at least two planar centerlines are drawn in the 3D component using these planar parameters, such as... Figure 2 As shown, the centerline is generated according to the longitudinal parameters of the plane centerline.
[0070] In another embodiment of this application, for further definition and explanation, the step of generating the centerline of the expected arrangement of components based on the longitudinal section parameters of the plane centerline includes:
[0071] Configure the longitudinal profile parameters of the plane centerline through the longitudinal profile interface of the plane centerline;
[0072] The centerline is obtained by fitting the longitudinal line activated based on the longitudinal parameters.
[0073] To generate effective centerlines that match the layout requirements in three-dimensional space, the current execution end, when generating centerlines based on longitudinal profile parameters, specifically first launches the longitudinal profile tool for planar centerlines. The longitudinal profile parameters of the planar centerlines are configured through the tool's interface. Based on the preset longitudinal profile parameters, the longitudinal profile lines of each planar centerline are activated and fitted, such as... Figure 3 As shown, this yields at least one centerline in three-dimensional space, such as... Figure 4 As shown.
[0074] In another embodiment of this application, for further definition and explanation, the step of determining the positioning spacing of at least two of the intended arrangement components includes:
[0075] Determine the first mileage position of the previous expected arrangement component and the second mileage position of the subsequent expected arrangement component;
[0076] The positioning distance is determined based on the difference between the second mileage position and the first mileage position.
[0077] To achieve flexible arrangement of multiple components, when determining the positioning spacing, the current execution end first determines the position to be constructed in the previous expected arrangement, i.e., the first mileage position in three-dimensional space. Simultaneously, it determines the position to be constructed in the next expected arrangement, i.e., the second mileage position in three-dimensional space. At this point, the user can input the information using a three-dimensional model component; this embodiment does not impose specific limitations. Furthermore, the previous and next expected arrangement components may be adjacent or non-adjacent, thus enabling precise positioning of the expected arrangement positions. The positioning spacing is then obtained by calculating the difference between the second mileage position and the first mileage position.
[0078] In another embodiment of this application, for further definition and explanation, the step of determining the selected at least one target component includes:
[0079] Display the component selection options in the 3D model component;
[0080] The target component is determined based on the component selected from the component selection options.
[0081] To meet the flexibility requirements of the overall arrangement of different components, when determining the target component, the current execution end first retrieves the component selection tool in the 3D modeling component and displays the component selection options for the user to choose from. Then, after the user selects multiple components from the component selection options, these are determined as the target component. In this embodiment, the selected target component can be multiple components of the same type or multiple components of different types, without specific limitations.
[0082] In another embodiment of this application, for further definition and explanation, the step of configuring the array distance of the target components based on the positioning spacing to complete the arrangement of all the target components includes:
[0083] One of the target components is positioned at the starting point of the centerline;
[0084] Configure the array attribute of the target component as a path attribute, and configure the positioning spacing as the array distance of the target component;
[0085] The array properties are activated to configure the arrangement of the target components, and the arrangement of all the target components is completed.
[0086] To achieve the goal of one-time arrangement based on component location, in this embodiment, when configuring the array distance according to the positioning interval, a target component is first positioned at the starting position of the center line, such as... Figure 5As shown, the configuration tool for the array properties of this target component is launched. The array properties summarized in the configuration tool are configured as along the path property. At the same time, the positioning distance is configured as the array distance of the target component, and the arrangement command for all target components is launched, so that all target components are arranged sequentially on the center line according to the positioning spacing configured in the array properties, realizing the purpose of arranging all components based on position at one time, which greatly improves the arrangement effect of components.
[0087] It should be noted that during the process of arranging the target components on the center line, a trigger button can be set to provide users with a one-by-one arrangement method. That is, triggering the button once will arrange one target component on the center line according to the positioning interval, and so on to complete the arrangement of all target components.
[0088] In another embodiment of this application, for further definition and explanation, the steps also include:
[0089] The arrangement of the target components on the center line is output according to the preset positioning ratio.
[0090] To meet the need for flexible and visually appealing arrangement of components, the current execution terminal, during the target component arrangement process in this embodiment, outputs the arrangement result displayed on the center line according to a preset positioning ratio corresponding to the center line. Since the length of the center line varies, different display ratios can be pre-configured to expand or shrink the display ratio of the component arrangement as a preset positioning ratio, for example, 1:20, 1:5, etc. Figure 6 As shown, the embodiments in this application are not specifically limited.
[0091] This application provides a method for locating and arranging component positions. Compared with the prior art, this application generates center lines of the expected component arrangement in a three-dimensional model component according to the arrangement requirement plane; determines the positioning distance between at least two of the expected component arrangement on the center line, and determines at least one selected target component; configures the array distance of the target component based on the positioning distance, and completes the arrangement of all the target components. This method enables direct component positioning and arrangement in the three-dimensional model and achieves centralized positioning and arrangement of multiple components, greatly improving the arrangement efficiency and reducing the tediousness of manual operation, thereby improving the accuracy of component positioning and arrangement.
[0092] Furthermore, as a response to the above Figure 1 To implement the method shown, this application provides a device for positioning and arranging component positions, such as... Figure 7 As shown, the device includes:
[0093] Generation module 21 is used to generate the center lines of the expected arrangement components in the three-dimensional model components according to the arrangement requirement plane;
[0094] The determining module 22 is used to determine the positioning spacing of at least two of the expected arrangement components on the center line, and to determine at least one selected target component;
[0095] The arrangement module 23 is used to configure the array distance of the target components based on the positioning spacing, and to complete the arrangement of all the target components.
[0096] Furthermore, the generation module is specifically used to activate the three-dimensional model component and load the planar parameters of the arrangement requirement plane; draw at least two planar centerlines based on the planar parameters; and generate the centerlines of the expected arrangement components based on the longitudinal parameters of the planar centerlines.
[0097] Furthermore, the generation module is specifically used to configure the longitudinal profile parameters of the plane centerline through the longitudinal profile interface of the plane centerline; and to fit the longitudinal profile activated based on the longitudinal profile parameters to obtain the centerline.
[0098] Furthermore, the determining module is specifically used to determine the first mileage position of the previous expected arrangement component and the second mileage position of the subsequent expected arrangement component, wherein the previous expected arrangement component and the subsequent expected arrangement component include adjacent components or non-adjacent components; and to determine the positioning distance based on the difference between the second mileage position and the first mileage position.
[0099] Furthermore, the determining module is specifically used to display component selection items in the three-dimensional model component; and to determine the target component based on the component selected from the component selection items.
[0100] Furthermore, the arrangement module is specifically used to configure a target component at the starting position of the center line; configure the array attribute of the target component as a path attribute, and configure the positioning spacing as the array distance of the target component; activate the array attribute to arrange the target component, and complete the arrangement of all the target components.
[0101] Furthermore, the device also includes:
[0102] The output module is used to output the arrangement result of the target component on the center line according to a preset positioning ratio.
[0103] This application provides a component positioning and arrangement device. Compared with the prior art, this application generates the center line of the expected arrangement of components in a three-dimensional model component according to the arrangement requirement plane; determines the positioning distance between at least two of the expected arrangement components on the center line, and determines at least one selected target component; configures the array distance of the target component based on the positioning distance, and completes the arrangement of all the target components. This realizes the direct positioning and arrangement of components in the three-dimensional model and the centralized positioning and arrangement of multiple components, which greatly improves the arrangement efficiency and reduces the tediousness of manual operation, thereby improving the accuracy of component positioning and arrangement.
[0104] According to one embodiment of this application, a storage medium is provided, the storage medium storing at least one executable instruction, which can execute the component positioning and arrangement method in any of the above method embodiments.
[0105] Figure 8 The diagram shows a structural schematic of a terminal according to one embodiment of the present application. The specific embodiments of the present application do not limit the specific implementation of the terminal.
[0106] like Figure 8 As shown, the terminal may include: a processor 302, a communications interface 304, a memory 306, and a communications bus 308.
[0107] The processor 302, communication interface 304, and memory 306 communicate with each other via communication bus 308.
[0108] Communication interface 304 is used to communicate with other network elements such as clients or other servers.
[0109] The processor 302 is used to execute program 310, specifically to execute the relevant steps in the above embodiment of the method for locating and arranging the positions of components.
[0110] Specifically, program 310 may include program code that includes computer operation instructions.
[0111] Processor 302 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The terminal includes one or more processors, which may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.
[0112] Memory 306 is used to store program 310. Memory 306 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0113] Specifically, program 310 can be used to cause processor 302 to perform the following operations:
[0114] In the 3D model components, the center lines of the expected arrangement of components are generated according to the arrangement requirement plane;
[0115] Determine the positioning spacing of at least two of the intended arrangement components on the center line, and determine at least one selected target component;
[0116] The array distance of the target components is configured based on the positioning spacing to complete the arrangement of all the target components.
[0117] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0118] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for locating and arranging components, characterized in that, include: In the 3D model components, the center lines of the expected arrangement of components are generated according to the arrangement requirement plane; Determine the positioning spacing of at least two of the intended arrangement components on the center line, and determine at least one selected target component; The array distance of the target components is configured based on the positioning spacing to complete the arrangement of all the target components.
2. The method according to claim 1, characterized in that, In the three-dimensional model component, generating the centerline of the expected arrangement of components according to the arrangement requirement plane includes: Start the 3D model component and load the planar parameters of the required planes; Draw at least two plane centerlines based on the aforementioned plane parameters; The centerline of the expected arrangement of components is generated based on the longitudinal section parameters of the plane centerline.
3. The method according to claim 2, characterized in that, The process of generating the centerline of the expected arrangement of components based on the longitudinal section parameters of the plane centerline includes: Configure the longitudinal profile parameters of the plane centerline through the longitudinal profile interface of the plane centerline; The centerline is obtained by fitting the longitudinal line activated based on the longitudinal parameters.
4. The method according to claim 1, characterized in that, Determining the positioning spacing of at least two of the expected arrangement components includes: Determine the first mileage position of the preceding expected arrangement component and the second mileage position of the following expected arrangement component, wherein the preceding and following expected arrangement components include adjacent components or non-adjacent components; The positioning distance is determined based on the difference between the second mileage position and the first mileage position.
5. The method according to claim 1, characterized in that, The determination of at least one selected target component includes: Display the component selection options in the 3D model component; The target component is determined based on the component selected from the component selection options.
6. The method according to claim 1, characterized in that, The step of configuring the array distance of the target components based on the positioning spacing to complete the arrangement of all the target components includes: One of the target components is positioned at the starting point of the centerline; Configure the array attribute of the target component as a path attribute, and configure the positioning spacing as the array distance of the target component; The array properties are activated to configure the arrangement of the target components, and the arrangement of all the target components is completed.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: The arrangement of the target components on the center line is output according to the preset positioning ratio.
8. A device for positioning and arranging components, characterized in that, include: The generation module is used to generate the centerlines of the components to be arranged according to the layout requirements plane in the 3D model components. A determining module is used to determine the positioning spacing of at least two of the expected arrangement components on the center line, and to determine at least one selected target component; The arrangement module is used to configure the array distance of the target components based on the positioning spacing, and to complete the arrangement of all the target components.
9. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method of claim 1.
10. A computer device, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method of claim 1.