Classified display method and device for components
By extracting component attribute information from 3D modeling software and classifying and marking it according to tree relationships, the problem of cumbersome component display operations in existing technologies is solved, enabling fast and flexible component display and improving component modeling efficiency.
Patent Information
- Application Number
- CN202511061100.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-12-19
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing 3D modeling software has cumbersome component display operations and cannot quickly and specifically filter and save configuration attributes, resulting in low component modeling efficiency.
By extracting the attribute information of the component collection, obtaining the tree relationship conditions for classification and labeling, and responding to display commands for rendering, the components are displayed in a classified manner.
It improves the display efficiency and diversity of components in 3D models, meets the display needs of different users, and reduces the waste of human resources.
Smart Images

Figure CN121170097A_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 classifying and displaying 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 order to ensure the effective construction of 3D scene models using different components, it is necessary to display various components to meet the requirements for flexible component placement.
[0003] Currently, existing 3D modeling software typically displays components by configuring attributes based on their spatial location, such as floor level, and then filtering for components with these attributes. However, when displaying specific components, batch manual modifications are required. For example, components on the same floor might need to be displayed separately. Furthermore, the filtering conditions for configured attributes cannot be saved, leading to repetitive configurations for the same modeling needs, requiring extensive time to rewrite all attributes after selection. This consumes significant manpower and increases the complexity of component-based 3D modeling. Therefore, a method for classifying and displaying components is urgently needed to solve these problems. Summary of the Invention
[0004] In view of this, this application provides a method and apparatus for classifying and displaying components, the main purpose of which is to solve the problems of cumbersome operation and poor effectiveness of existing component display methods.
[0005] According to one aspect of this application, a method for classifying and displaying components is provided, comprising:
[0006] Extract attribute information of component sets from the 3D model components. The component sets include different numbers and types of components. The attribute information is determined when the component sets are generated.
[0007] Obtain the tree relationship conditions for classifying the attribute information, and classify and label the components based on the tree relationship conditions to obtain the components with different classification labels. The tree relationship conditions are used to characterize the tree structure conditions for classifying components or attributes.
[0008] In response to a display instruction for a component or attribute, the target component to be displayed in the arranged model is determined according to the classification label carried in the display instruction, and the target component is rendered to display the rendered target component.
[0009] Furthermore, before extracting the attribute information of the component set from the 3D model components, the method further includes:
[0010] When all components are loaded from the component list, attribute information corresponding to different components is extracted from the component list according to attribute items, and a component set containing the components and their corresponding attribute information is generated; or,
[0011] Output a component selection list, and after outputting attribute configuration items based on the selected components, generate a component set containing the components and corresponding attribute information based on the configured attribute information;
[0012] The attribute information includes at least one of spatial attributes, material attributes, structural attributes, and functional attributes.
[0013] Furthermore, before obtaining the tree relationship conditions for classifying the attribute information, the method further includes:
[0014] The attribute retrieval interface outputs classification condition options for different attribute information, and performs tree structure transformation on the selected classification conditions based on preset structural conditions to obtain the tree relationship conditions.
[0015] The preset structural conditions include the attribute classification or component classification corresponding to different tree nodes.
[0016] Further, determining the target component to be displayed according to the classification label includes:
[0017] Determine the selected category label, and query the target component in the display interface according to the selected category label;
[0018] If the target component matches multiple classification labels, then multiple classification labels are displayed, and the target component corresponding to the selected target classification label is determined based on the selected target classification label.
[0019] Furthermore, rendering the target component includes:
[0020] If the target components belong to the same category label, the same rendering strategy is used to color the target components so that the target components are displayed in the same color.
[0021] If the target component belongs to different category tags, a differential rendering strategy is used to color the target component to display the target component in different colors.
[0022] Furthermore, before rendering the target component, the method further includes:
[0023] Output the display style configuration interface of the target component, and obtain the display style of the target component, wherein the display style includes at least one of fill display, transparent display, and overlay display;
[0024] After rendering the target component, the method further includes:
[0025] The rendered target component is displayed according to the display style.
[0026] Furthermore, the method also includes:
[0027] Output the display control interface and display the display / hide filtering conditions corresponding to different category tags;
[0028] Create a view filter based on the selected explicit / implicit filtering conditions;
[0029] The step of displaying the rendered target component according to the display style includes:
[0030] The target components are filtered and displayed according to the display style using the view filter.
[0031] According to another aspect of this application, a component classification display device is provided, comprising:
[0032] An extraction module is used to extract attribute information of a component set from a 3D model component. The component set includes a different number and different types of components, and the attribute information is determined when the component set is generated.
[0033] The classification module is used to obtain tree relationship conditions for classifying the attribute information, and classify and label the components based on the tree relationship conditions to obtain the components with different classification labels. The tree relationship conditions are used to characterize the tree structure conditions for classifying components or attributes.
[0034] The display module is used to respond to the display instructions of the component or attribute, determine the target component to be displayed in the arranged model according to the classification label carried in the display instructions, and render the target component to display the rendered target component.
[0035] Furthermore, the device also includes:
[0036] The first generation module is used to, when all components are loaded from the component list, extract attribute information corresponding to different components according to attribute items, and generate a component set containing the components and their corresponding attribute information; or,
[0037] The second generation module is used to output a component selection list, and after outputting attribute configuration items based on the selected components, it generates a component set containing the components and corresponding attribute information based on the configured attribute information.
[0038] The attribute information includes at least one of spatial attributes, material attributes, structural attributes, and functional attributes.
[0039] Furthermore, the device also includes:
[0040] The conversion module is used to output classification condition options with different attribute information through the attribute retrieval interface, and to perform tree structure conversion on the selected classification conditions based on preset structural conditions to obtain the tree relationship conditions.
[0041] The preset structural conditions include the attribute classification or component classification corresponding to different tree nodes.
[0042] Furthermore, the display module is specifically used to determine the selected category label, query the target component in the display interface according to the selected category label; if the target component matches multiple category labels, then display multiple category labels, and determine the target component corresponding to the selected target category label based on the selected target category label.
[0043] Furthermore, the display module is further configured to, if the target components belong to the same category label, apply the same rendering strategy to color the target components so as to display target components with the same color; and if the target components belong to different category labels, apply a different rendering strategy to color the target components so as to display target components with different colors.
[0044] Furthermore, the device also includes: an output module,
[0045] The output module is used to output the display style configuration interface of the target component and obtain the display style of the target component. The display style includes at least one of fill display, transparent display, and overlay display.
[0046] The display module is also used to display the rendered target component according to the display style.
[0047] Furthermore, the device also includes: a creation module,
[0048] The output module is also used to output a display / hide control interface and display the display / hide filtering conditions corresponding to different category tags.
[0049] The creation module is used to create view filters based on the selected explicit / implicit filtering conditions;
[0050] The display module is further configured to filter and display the target components according to the display style using the view filter.
[0051] According to another aspect of this application, a storage medium is provided that stores at least one executable instruction, which causes a processor to perform an operation corresponding to the classification display method of the above-described components.
[0052] 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;
[0053] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the classification display method of the above-mentioned components.
[0054] By employing the above technical solutions, the technical solutions provided in the embodiments of this application have at least the following advantages:
[0055] This application provides a method and apparatus for classifying and displaying components. Compared with the prior art, the embodiments of this application extract attribute information of a component set from a three-dimensional model component. The component set includes components of different quantities and types, and the attribute information is determined when the component set is generated. A tree relationship condition for classifying the attribute information is obtained, and the components are classified and labeled based on the tree relationship condition to obtain components with different classification labels. The tree relationship condition is used to characterize the tree structure condition for classifying components or attributes. In response to a display instruction for a component or attribute, the target component to be displayed in the arranged model is determined according to the classification label carried in the display instruction, and the target component is rendered to display the rendered target component. This achieves the purpose of quickly displaying components of different categories, greatly enhancing the display variety of components during the arrangement process, meeting the display needs of different users when arranging components, and thus improving the display efficiency of component arrangement.
[0056] 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
[0057] 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:
[0058] Figure 1 A flowchart illustrating a component classification and display method according to an embodiment of this application is shown;
[0059] Figure 2 This illustration shows a block diagram of a component classification display device according to an embodiment of this application;
[0060] Figure 3 A schematic diagram of the structure of a terminal provided in an embodiment of this application is shown. Detailed Implementation
[0061] 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.
[0062] This application provides a method for classifying and displaying components, such as... Figure 1 As shown, the method includes:
[0063] 101. Extract the attribute information of the component set from the 3D model component.
[0064] In this embodiment, the current execution end is the entity that displays and arranges the components. It can be a terminal processor or a processing server to launch open-source 3D model components to display and arrange different types of components. These components are suitable for different application scenarios; for example, in building a city road model, the components can be road and building structures, and in building a city subway model, the components can be subway station components. This embodiment does not impose specific limitations. The 3D model component in this embodiment can be Bentley software or other 3D model development software; no specific limitations are imposed.
[0065] It should be noted that the component set includes multiple components selected and arranged by the user for a specific application scenario. That is, the component set includes different numbers and types of components. In this case, the type can include different shape types and different function types, which are not specifically limited in this embodiment. Different components are set with different attribute information, which is determined when the component set is generated. The attribute information includes at least one of spatial attributes, material attributes, structural attributes, and functional attributes.
[0066] 102. Obtain the tree relationship conditions for classifying the attribute information, and classify and label the components based on the tree relationship conditions to obtain the components with different classification labels.
[0067] In this embodiment, after the current execution terminal obtains the attribute information, it obtains the tree relationship conditions. These tree relationship conditions characterize the tree structure conditions for classifying components or attributes. Based on these conditions, the components are classified and labeled, resulting in components with different classification labels. The component set can be stored as cached data, and the components with different classification labels are stored as a classification dictionary. For example, they can be categorized into a unified standard system according to the attributes of walls, doors, windows, and pipes. Preferably, different floor attributes can be used as the standard for distinguishing them; however, this embodiment does not impose specific limitations. Furthermore, attribute information can be represented by attribute values; this embodiment does not impose specific limitations on this either.
[0068] 103. In response to a display instruction for a component or attribute, determine the target component to be displayed in the arranged model according to the classification label carried in the display instruction, and render the target component to display the rendered target component.
[0069] In this embodiment, the user can trigger a display command for a component or attribute when needed to meet different display requirements. Specifically, the current execution terminal can configure component category display buttons and attribute category display buttons on the front-end interface of the component arrangement. When the user triggers a display button, specific category options are displayed to determine the required category label. Then, the current execution terminal determines the target component to be displayed in the arranged model according to the category label carried in the display command, and renders the target component to display the rendered target component.
[0070] In another embodiment of this application, for further definition and explanation, before the step of extracting the attribute information of the component set in the 3D model component, the method further includes:
[0071] When all components are loaded from the component list, attribute information corresponding to different components is extracted from the component list according to attribute items, and a component set containing the components and their corresponding attribute information is generated; or,
[0072] Output a component selection list, and after outputting attribute configuration items based on the selected components, generate a component set containing the components and corresponding attribute information based on the configured attribute information;
[0073] To meet users' needs for selecting component sets and thus improve the effectiveness of component classification and display, in one specific embodiment, users can upload the required components to the current execution terminal, i.e., upload all components in the form of a component list file. Therefore, the current execution terminal can load all components from this component list and then extract the attribute information corresponding to different components according to attribute items. Specifically, when uploading the component list file, users can set the corresponding attribute information for the selected components through attribute items, so that the current execution terminal can identify and extract the information to generate a component set containing the components and their corresponding attribute information.
[0074] In another specific embodiment, the current execution terminal can pre-set an output component selection list to allow users to select the required components and their corresponding attribute information. The component selection list includes all components of the 3D model assembly for selection. Furthermore, after selecting a component, an attribute configuration item is output. Users can then select and input corresponding attribute information based on this configuration item to generate a component set containing the component and its corresponding attribute information.
[0075] It should be noted that the attribute information in the embodiments of this application includes at least one of spatial attributes, material attributes, structural attributes, and functional attributes. Among them, spatial attributes are used to characterize the spatial position of the components in three-dimensional space, including but not limited to the characterization by position information such as three-dimensional coordinates, floors, and horizontal height. Material attributes are used to characterize the material content of the components, including but not limited to steel, iron, alloy, wood, plastic, etc. Structural attributes are used to characterize the structure of the components as a model assembly, including but not limited to rectangular components, arched components, etc. Functional attributes are used to characterize the role played by the components in the arrangement process, including but not limited to support components, base components, etc. The embodiments of this application do not make specific limitations.
[0076] In another embodiment of this application, to further define and illustrate, before obtaining the tree relationship conditions for classifying the attribute information, the method further includes:
[0077] The attribute retrieval interface outputs classification condition options for different attribute information, and performs tree structure transformation on the selected classification conditions based on preset structural conditions to obtain the tree relationship conditions.
[0078] To improve the effectiveness and speed of component classification display by classifying attribute information based on tree relationship conditions, the current execution terminal pre-outputs classification condition options for attribute information through the attribute retrieval interface. These options include all attribute categories for user selection. After the user selects a category condition, a tree structure transformation is performed based on preset structural conditions to obtain tree relationship conditions. These preset structural conditions include attribute or component categories corresponding to different tree nodes. Specifically, the tree structure transformation can be performed automatically based on a classification tree view control (TreeView), meaning each tree node corresponds to an attribute or component category. This embodiment does not impose specific limitations on this approach.
[0079] In some embodiments, in the current execution phase, the dynamic classification logic engine, which serves as the condition for constructing the tree relationship, can receive user-input classification conditions, such as "material = concrete", through an attribute retrieval boundary (e.g., a WPF window). Then, it converts these classification conditions into a LINQ expression tree. <Func<Element,bool> > After completing the grouping operation on the cached data and generating the category dictionary. <string,List <elementid>> The different components after classification and their corresponding classification labels are stored. For example, components with labels such as walls, doors, windows and pipes are cached. This application embodiment does not make specific limitations.
[0080] In another embodiment of this application, for further definition and explanation, the step of determining the target component to be displayed according to the classification label includes:
[0081] Determine the selected category label, and query the target component in the display interface according to the selected category label;
[0082] If the target component matches multiple classification labels, then multiple classification labels are displayed, and the target component corresponding to the selected target classification label is determined based on the selected target classification label.
[0083] To meet the need for flexible display of components and achieve precise display by category, the current execution terminal first determines the selected category label when identifying the target component. Specifically, the current execution terminal can first output all category labels on the front-end interface of the component arrangement, that is, the current execution terminal configures component category display buttons and attribute category display buttons. When the user triggers the display button, the specific category options are displayed to determine the required category label. Then, the target component in the display interface is queried according to the selected category label. At this time, querying the target component can specifically be extracted from the arranged model according to the category label, which is not specifically limited in this embodiment.
[0084] In some embodiments, since multiple components with the same category label can be arranged when arranging components, and correspondingly, the same component can also be classified into multiple labels when categorizing. Therefore, if a target component matches multiple category labels, the current execution terminal displays multiple category labels to show the category to which the target component belongs to the user, so as to determine the target component corresponding to the target category label based on the selected target category label. At this time, the target category label is determined by the user through selection. This application embodiment does not make specific limitations.
[0085] In another embodiment of this application, for further definition and explanation, the step of rendering the target component includes:
[0086] If the target components belong to the same category label, the same rendering strategy is used to color the target components so that the target components are displayed in the same color.
[0087] If the target component belongs to different category tags, a differential rendering strategy is used to color the target component to display the target component in different colors.
[0088] To achieve diverse visualization effects for categorized components and thus improve their display quality, the current execution end, when rendering target components, first determines whether they belong to the same category label. In a specific implementation scenario, if target components belong to the same category label, they are colored using the same rendering strategy to display components with the same color. In a specific implementation scenario, if target components belong to different category labels, they are colored using a differentiated rendering strategy to display components with different colors.
[0089] It should be noted that during rendering, color encoding can be performed based on a color picker, for example, by automatically generating differential colors using the HSV color space. This application does not impose any specific limitations on the embodiments.
[0090] In another embodiment of this application, for further definition and explanation, before rendering the target component, the method further includes:
[0091] Output the display style configuration interface of the target component and obtain the display style of the target component.
[0092] To meet the diverse display needs of 3D models constructed based on component arrangement, the current execution terminal can output a display style configuration interface for the target components before rendering, allowing users to select different display styles for different components. The display style includes at least one of filled display, transparent display, and overlay display, and can be configured using the View.SetElementOverrides() function in the 3D modeling software. This embodiment does not impose specific limitations on the display style.
[0093] Correspondingly, after rendering the target component, the process further includes:
[0094] The rendered target component is displayed according to the display style.
[0095] In another embodiment of this application, for further definition and explanation, the steps also include:
[0096] Output the display control interface and display the display / hide filtering conditions corresponding to different category tags;
[0097] Create a view filter based on the selected explicit / implicit filtering conditions.
[0098] To meet the diverse display needs of 3D models constructed based on component arrangement, the current execution end can also provide a show / hide control function. This allows for the control of which component content needs to be shown or hidden through view filters, achieving more diverse display effects. Specifically, the current execution end first outputs a show / hide control interface, displaying the show / hide filtering conditions corresponding to different category tags for user configuration. These display / hide filtering conditions include orientation conditions, structural conditions, and 3D coordinate conditions for showing or hiding target components. This embodiment does not impose specific limitations on these conditions, ensuring that when the above conditions are triggered, a view filter is created according to the selected show / hide filtering conditions.
[0099] Correspondingly, the step of displaying the rendered target component according to the display style includes:
[0100] The target components are filtered and displayed according to the display style using the view filter.
[0101] The view filter can be a ParameterFilterElement from 3D modeling software, or it can use VisibilityGraphicSettings to override display rules, for example, changing only the display style of the current view without affecting the style of other views. This application does not impose specific limitations on this embodiment. Furthermore, when displaying target components, the view filter can also filter based on the aforementioned configured display style, filtering out target components that should be displayed according to the style, thereby hiding non-target components.
[0102] It should be noted that the current execution end can use WPF to develop a DockablePane floating panel to display corresponding content as multiple front-end interfaces, and this application embodiment does not make specific limitations.
[0103] In other embodiments, when controlling visibility, the open-source visual programming tool Dynamo can be used to read component attribute values and control the visibility effect. Specific steps include: first, reading component attribute values by batch acquiring model components through the "All Elements of Category" node in the tool, or manually selecting specific components through the "Select ModelElements" node. Then, directly reading instance parameters, such as "floor to which it belongs," through the "Element.GetParameterValueByName" node in the tool. After reading the attribute values, conditional judgments are performed based on the attribute values. For example, using an If node to write conditional expressions for text matching, such as "floor to which it belongs.Contains("B1F")" returns true, otherwise false. The final output is a list of boolean values (true / false), used for subsequent visibility control. Specifically, when setting visibility control, instance parameters, such as "visible or not," can be created in Revit with the type "yes / no," so that the boolean list can be assigned to this instance parameter through the "Element.SetParameterByName" node in the tool, directly controlling the visibility of the component in the view.
[0104] This application provides a method for classifying and displaying components. Compared with the prior art, this application extracts attribute information of a component set from a 3D model component. The component set includes components of different quantities and types, and the attribute information is determined when the component set is generated. It obtains tree relationship conditions for classifying the attribute information and classifies and labels the components based on these tree relationship conditions to obtain components with different classification labels. The tree relationship conditions characterize the tree structure conditions for classifying components or attributes. In response to a display instruction for a component or attribute, it determines the target component to be displayed in the already arranged model according to the classification label carried in the display instruction, and renders the target component to display it. This achieves the goal of quickly displaying components of different categories, greatly enhancing the display variety of components during the arrangement process, meeting the display needs of different users when arranging components, and thus improving the display efficiency of component arrangement.
[0105] Furthermore, as a response to the above Figure 1 The implementation of the method shown in this application provides a component classification display device, such as... Figure 2 As shown, the device includes:
[0106] Extraction module 21 is used to extract attribute information of component set from three-dimensional model components. The component set includes different numbers and different types of components. The attribute information is determined when the component set is generated.
[0107] The classification module 22 is used to obtain the tree relationship conditions for classifying the attribute information, and to classify and label the components based on the tree relationship conditions to obtain the components with different classification labels. The tree relationship conditions are used to characterize the tree structure conditions for classifying components or attributes.
[0108] Display module 23 is used to respond to display instructions for components or attributes, determine the target component to be displayed in the arranged model according to the classification label carried in the display instructions, and render the target component to display the rendered target component.
[0109] Furthermore, the device also includes:
[0110] The first generation module is used to, when all components are loaded from the component list, extract attribute information corresponding to different components according to attribute items, and generate a component set containing the components and their corresponding attribute information; or,
[0111] The second generation module is used to output a component selection list, and after outputting attribute configuration items based on the selected components, it generates a component set containing the components and corresponding attribute information based on the configured attribute information.
[0112] The attribute information includes at least one of spatial attributes, material attributes, structural attributes, and functional attributes.
[0113] Furthermore, the device also includes:
[0114] The conversion module is used to output classification condition options with different attribute information through the attribute retrieval interface, and to perform tree structure conversion on the selected classification conditions based on preset structural conditions to obtain the tree relationship conditions.
[0115] The preset structural conditions include the attribute classification or component classification corresponding to different tree nodes.
[0116] Furthermore, the display module is specifically used to determine the selected category label, query the target component in the display interface according to the selected category label; if the target component matches multiple category labels, then display multiple category labels, and determine the target component corresponding to the selected target category label based on the selected target category label.
[0117] Furthermore, the display module is further configured to, if the target components belong to the same category label, apply the same rendering strategy to color the target components so as to display target components with the same color; and if the target components belong to different category labels, apply a different rendering strategy to color the target components so as to display target components with different colors.
[0118] Furthermore, the device also includes: an output module,
[0119] The output module is used to output the display style configuration interface of the target component and obtain the display style of the target component. The display style includes at least one of fill display, transparent display, and overlay display.
[0120] The display module is also used to display the rendered target component according to the display style.
[0121] Furthermore, the device also includes: a creation module,
[0122] The output module is also used to output a display / hide control interface and display the display / hide filtering conditions corresponding to different category tags.
[0123] The creation module is used to create view filters based on the selected explicit / implicit filtering conditions;
[0124] The display module is further configured to filter and display the target components according to the display style using the view filter.
[0125] This application provides a component classification and display device. Compared with the prior art, this application extracts attribute information of a component set from a three-dimensional model component. The component set includes components of different quantities and types, and the attribute information is determined when the component set is generated. It obtains tree relationship conditions for classifying the attribute information and classifies and labels the components based on these tree relationship conditions to obtain components with different classification labels. The tree relationship conditions characterize the tree structure conditions for classifying components or attributes. In response to a display instruction for a component or attribute, it determines the target component to be displayed in the already arranged model according to the classification label carried in the display instruction, and renders the target component to display the rendered target component. This achieves the goal of quickly displaying components of different categories, greatly enhancing the display variety of components during the arrangement process, meeting the display needs of different users when arranging components, and thus improving the display efficiency of component arrangement.
[0126] According to one embodiment of this application, a storage medium is provided, the storage medium storing at least one executable instruction that can execute the classification display method of the components in any of the above method embodiments.
[0127] Figure 3 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.
[0128] like Figure 3 As shown, the terminal may include: a processor 302, a communications interface 304, a memory 306, and a communications bus 308.
[0129] The processor 302, communication interface 304, and memory 306 communicate with each other via communication bus 308.
[0130] Communication interface 304 is used to communicate with other network elements such as clients or other servers.
[0131] The processor 302 is used to execute program 310, specifically to execute the relevant steps in the above-mentioned component classification display method embodiment.
[0132] Specifically, program 310 may include program code that includes computer operation instructions.
[0133] 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.
[0134] 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.
[0135] Specifically, program 310 can be used to cause processor 302 to perform the following operations:
[0136] Extract attribute information of component sets from the 3D model components. The component sets include different numbers and types of components. The attribute information is determined when the component sets are generated.
[0137] Obtain the tree relationship conditions for classifying the attribute information, and classify and label the components based on the tree relationship conditions to obtain the components with different classification labels. The tree relationship conditions are used to characterize the tree structure conditions for classifying components or attributes.
[0138] In response to a display instruction for a component or attribute, the target component to be displayed in the arranged model is determined according to the classification label carried in the display instruction, and the target component is rendered to display the rendered target component.
[0139] 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.
[0140] 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.< / elementid>
Claims
1. A method for classifying and displaying components, characterized in that, include: Extract attribute information of component sets from the 3D model components. The component sets include different numbers and types of components. The attribute information is determined when the component sets are generated. Obtain the tree relationship conditions for classifying the attribute information, and classify and label the components based on the tree relationship conditions to obtain the components with different classification labels. The tree relationship conditions are used to characterize the tree structure conditions for classifying components or attributes. In response to a display instruction for a component or attribute, the target component to be displayed in the arranged model is determined according to the classification label carried in the display instruction, and the target component is rendered to display the rendered target component.
2. The method according to claim 1, characterized in that, Before extracting the attribute information of the component set from the 3D model component, the method further includes: When all components are loaded from the component list, attribute information corresponding to different components is extracted from the component list according to attribute items, and a component set containing the components and their corresponding attribute information is generated; or, Output a component selection list, and after outputting attribute configuration items based on the selected components, generate a component set containing the components and corresponding attribute information based on the configured attribute information; The attribute information includes at least one of spatial attributes, material attributes, structural attributes, and functional attributes.
3. The method according to claim 2, characterized in that, Before obtaining the tree relationship conditions for classifying the attribute information, the method further includes: The attribute retrieval interface outputs classification condition options for different attribute information, and performs tree structure transformation on the selected classification conditions based on preset structural conditions to obtain the tree relationship conditions. The preset structural conditions include the attribute classification or component classification corresponding to different tree nodes.
4. The method according to claim 3, characterized in that, The step of determining the target component to be displayed according to the classification label includes: Determine the selected category label, and query the target component in the display interface according to the selected category label; If the target component matches multiple classification labels, then multiple classification labels are displayed, and the target component corresponding to the selected target classification label is determined based on the selected target classification label.
5. The method according to claim 4, characterized in that, The rendering of the target component includes: If the target components belong to the same category label, the same rendering strategy is used to color the target components so that the target components are displayed in the same color. If the target component belongs to different category tags, a differential rendering strategy is used to color the target component to display the target component in different colors.
6. The method according to any one of claims 1-5, characterized in that, Before rendering the target component, the method further includes: Output the display style configuration interface of the target component, and obtain the display style of the target component, wherein the display style includes at least one of fill display, transparent display, and overlay display; After rendering the target component, the method further includes: The rendered target component is displayed according to the display style.
7. The method according to claim 6, characterized in that, The method further includes: Output the display control interface and display the display / hide filtering conditions corresponding to different category tags; Create a view filter based on the selected explicit / implicit filtering conditions; The step of displaying the rendered target component according to the display style includes: The target components are filtered and displayed according to the display style using the view filter.
8. A component classification display device, characterized in that, include: An extraction module is used to extract attribute information of a component set from a 3D model component. The component set includes a different number and different types of components, and the attribute information is determined when the component set is generated. The classification module is used to obtain tree relationship conditions for classifying the attribute information, and classify and label the components based on the tree relationship conditions to obtain the components with different classification labels. The tree relationship conditions are used to characterize the tree structure conditions for classifying components or attributes. The display module is used to respond to the display instructions of the component or attribute, determine the target component to be displayed in the arranged model according to the classification label carried in the display instructions, and render the target component to display the rendered target component.
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.