CN112257134B - Model management method and device and electronic equipment - Google Patents

Model management method and device and electronic equipment Download PDF

Info

Publication number
CN112257134B
CN112257134B CN202011196382.1A CN202011196382A CN112257134B CN 112257134 B CN112257134 B CN 112257134B CN 202011196382 A CN202011196382 A CN 202011196382A CN 112257134 B CN112257134 B CN 112257134B
Authority
CN
China
Prior art keywords
component
candidate
primitive
determining
rendered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011196382.1A
Other languages
Chinese (zh)
Other versions
CN112257134A (en
Inventor
尤勇敏
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiuling Shanghai Intelligent Technology Co ltd
Original Assignee
Jiuling Shanghai Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiuling Shanghai Intelligent Technology Co ltd filed Critical Jiuling Shanghai Intelligent Technology Co ltd
Priority to CN202011196382.1A priority Critical patent/CN112257134B/en
Publication of CN112257134A publication Critical patent/CN112257134A/en
Application granted granted Critical
Publication of CN112257134B publication Critical patent/CN112257134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Image Generation (AREA)

Abstract

The application provides a model management method, a model management device and electronic equipment, wherein the model management method comprises the following steps: rendering a first candidate component in the display object, and determining a first selected component by judging whether a rendering identifier exists in the framing range; determining a second selected component by judging whether the vertexes of the partial graphic primitives corresponding to the candidate graphic primitives of the second candidate component are in the framing range; and determining a third selected component by judging whether all the primitive vertexes corresponding to the candidate primitive of the third candidate component are in the frame selection range. According to the method and the device, the component is selected by combining the rendering identification judgment and the primitive vertex judgment, the complexity of primitive vertex judgment is simplified, and the time for executing component selection is shortened.

Description

Model management method and device and electronic equipment
Technical Field
The present application relates to the field of model management technologies, and in particular, to a model management method and apparatus, and an electronic device.
Background
In the BIM (Building Information Modeling), the number of members constituting a model is usually several tens of thousands, and the number of vertices and faces constituting the members is more than ten million. In the prior art, the operation of selecting part of components in the display interface of the BIM model is implemented by a vertex judgment method, that is: and sequentially judging whether the vertex of each component is in the frame selection range, and selecting the component when the vertex of the component is in the frame selection range. However, the method for selecting the component has many defects, one is that the number of vertexes of the component is huge, and the operation execution time for judging the vertexes is long, so that a user needs to wait for a long time; secondly, the method for judging the vertexes is used for solving the problem that the components of which the vertexes are not in the framing range and the local areas of the components are in the framing range cannot be selected, so that in order to overcome the defect, a user needs to perform framing operation for multiple times, and the selection of the components is difficult.
Therefore, when the BIM model is subjected to frame selection operation at present, the problems of overlong time for executing component selection and incomplete component selection exist.
Disclosure of Invention
The application provides a model management method, a model management device and electronic equipment, which are used for solving the problems that in the prior art, when a model is subjected to frame selection operation, the time for selecting a component is too long and the component is not selected completely.
The embodiment of the application provides a model management method, which comprises the following steps:
acquiring a frame selection instruction through a display interface, and determining a frame selection range corresponding to the frame selection instruction;
selecting a component to be rendered from a display object, wherein the display object comprises a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by a current model in the display interface, and the component to be rendered belongs to the first candidate component;
rendering the component to be rendered;
screening the components to be rendered with rendering identifiers in the framing range, and determining the components to be rendered as first selected components;
and determining a selected component corresponding to the framing instruction based on the first selected component.
Meanwhile, an embodiment of the present application further provides a model management apparatus, which includes:
the acquisition module is used for acquiring the framing instruction through a display interface and determining the framing range corresponding to the framing instruction;
the selection module is used for selecting a component to be rendered from a display object, wherein the display object comprises a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by a current model in the display interface, and the component to be rendered belongs to the first candidate component;
a rendering module for rendering the component to be rendered;
the screening module is used for screening the components to be rendered with the rendering identifiers in the framing range and determining the components to be rendered as first selected components; and
and the determining module is used for determining the selected component corresponding to the frame selection instruction based on the first selected component.
Meanwhile, the embodiment of the present application provides an electronic device, which includes a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps in the model management method as described above when executing the computer program.
Meanwhile, an embodiment of the present application provides a computer-readable storage medium, where a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to perform the steps in the model management method.
The beneficial effect of this application is: the model management method comprises the steps of rendering a first candidate component in a display object, determining a first selected component by judging whether a rendering identifier exists in a framing range, selecting the candidate component with the component vertex not in the framing range by the method, achieving complete selection and improving the efficiency of framing operation; and the model management method also comprises the steps of determining a second selected component by judging whether part of primitive vertexes corresponding to the candidate primitives of the second candidate component are in the framing range or not, and determining a third selected component by judging whether all primitive vertexes corresponding to the candidate primitives of the third candidate component are in the framing range or not.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic application scenario diagram of a model management method provided in an embodiment of the present application;
FIG. 2 is a flowchart of a model management method provided by an embodiment of the present application;
FIG. 3 is a flowchart of a method for determining a selected component by rendering an identifier according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a method for determining a selected component by combining rendering identifier determination and primitive vertex determination provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a first situation for component selection according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a second case of component selection according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a model management apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a model management method, which is used for executing selected management operation on a model component displayed in a display interface of equipment; the model management method comprises the steps of rendering a first candidate component in a display object, and determining a first selected component by judging whether a rendering identifier exists in a framing range, wherein the method for determining the selected component through the rendering identifier can be used for selecting the candidate component of which the component vertex is not in the framing range, so that complete selection is realized, and the efficiency of framing operation is improved; the model management method further comprises the steps of determining a second selected component by judging whether part of primitive vertexes corresponding to the candidate primitives of the second candidate component are in the framing range or not, determining a third selected component by judging whether all primitive vertexes corresponding to the candidate primitives of the third candidate component are in the framing range or not, and the method for determining the selected component by combining the rendering identifier judgment and the primitive vertex judgment simplifies the complexity of primitive vertex judgment and shortens the time for executing component selection while the selection is complete.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a model management method according to an embodiment of the present application. The model management method is applied to the frame selection operation of the model components displayed in the display interface, particularly the BIM model components, and realizes the quick, complete and accurate selection of the target model components. The model management system is a system for implementing the model management method, the display object displayed in the display interface of the model management system is a member form that the whole model member can present in the current display interface, for example, the whole model member is a three-dimensional member, but only a two-dimensional form of the three-dimensional member can be displayed through the current display interface, and the process of displaying the three-dimensional member in the current display interface as the two-dimensional form is similar to the projection form of the three-dimensional member in the current display interface, so that the model member displayed in the current display interface may be a part of the whole model member or may be the whole model member, and the display object is the model member displayed in the current display interface. The frame selection instruction is an instruction which is input to the model management system by a user through a display interface and is used for executing the operation of selecting the model, the frame selection range corresponding to the instruction can be determined in the display interface through the frame selection instruction, and the display object located in the frame selection range is a component needing to be selected.
It should be noted that the application scenario diagram of the model management method shown in fig. 1 is only an example, the model management system and the scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and as a person of ordinary skill in the art knows that along with the evolution of the model management system and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems, and the following detailed description is separately made below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 2, fig. 2 is a flowchart of a model management method according to an embodiment of the present disclosure. The model management method comprises the following steps:
and S101, acquiring a framing instruction through a display interface, and determining a framing range corresponding to the framing instruction.
Optionally, the display interface may be a display screen, or a display interface of a display screen; the display interface is used for displaying each candidate component, and each candidate component displayed through the display interface is a display object. The step of obtaining the frame selection instruction through the display interface comprises the following steps: displaying the display object through the display interface, and acquiring the frame selection instruction input by the user based on the display object; optionally, the frame selection instruction may be a frame selection frame input in the presentation interface by a user. The step of determining the frame selection range corresponding to the frame selection instruction comprises: determining a frame selection coordinate area in the display interface based on the frame selection instruction input by a user; determining the frame selection range in the display interface based on the frame selection coordinate area; optionally, the frame selection range may be an area covered by a frame selection frame input in the presentation interface by the user.
Step S102, selecting a component to be rendered from a display object, wherein the display object comprises a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by a current model in a display interface, and the component to be rendered belongs to the first candidate component.
Optionally, the current model may be a three-dimensional model comprising a plurality of members; the model components displayed in the display interface by the current model refer to part or all of the components of the current model which can be displayed in the display interface; the model component displayed in the display interface by the current model is displayed in a two-dimensional form.
The first candidate member may include a part or all of the model members displayed by the current model in the display interface. It should be noted that any two-dimensional model can be formed by splicing one or more triangular regions, and each triangular region forming the two-dimensional model is a primitive of the two-dimensional model; each triangular area is provided with three vertexes, and each vertex is a primitive vertex corresponding to a primitive forming the two-dimensional model; for example, in a two-dimensional plane, a quadrangle can be formed by splicing two triangular areas, and the vertex of each triangular area is the vertex of a primitive corresponding to the primitive of the quadrangle; the circle can also be formed by splicing the triangular areas, but the number of the triangular areas used for splicing the circle is large, and the number of the corresponding primitive vertexes is also large. Thus, the first candidate component may be composed of a plurality of candidate primitives, each having a corresponding primitive vertex.
The components to be rendered may be all or part of the first candidate components, and the components to be rendered include at least the first candidate components located within the frame selection range.
And step S103, rendering the component to be rendered.
Specifically, the step of rendering the component to be rendered includes: sequentially selecting each component to be rendered; and respectively adding rendering identification to the pixel points in the range of each component to be rendered. It should be noted that the component to be rendered may include a plurality of components, only one of the components is rendered in each rendering operation, and then the subsequent determination and selection operations are performed on each rendered component.
Optionally, the rendering identifier may be a specific color added to the pixel point. The step of respectively adding rendering identifiers to the pixel points in the range of each component to be rendered comprises the following steps of: and selecting the pixel points positioned in the range of the component to be rendered as target pixel points, and lighting the target pixel points by specific colors.
And step S104, screening the components to be rendered with rendering marks in the framing range, and determining the components to be rendered as first selected components.
Specifically, the step of screening the components to be rendered with rendering identifiers in the frame selection range and determining the components to be rendered as the first selected components includes: after the rendering of each component to be rendered is completed, judging whether pixel points in the framing range have the rendering identification; and when the pixel points in the frame selection range have the rendering identification, determining the component to be rendered as the first selected component. It should be noted that the determination of rendering identification performed on each component in the components to be rendered is performed separately, that is: and after one of the components to be rendered is rendered, immediately judging a rendering identifier of the rendered component, if a pixel point in the framing range has the rendering identifier, determining the component as the first selected component, and then sequentially judging other components in the components to be rendered.
In step S105, based on the first selected component, the selected component corresponding to the framing instruction is determined.
In one embodiment, please refer to fig. 3, fig. 3 is a flowchart illustrating a method for determining a selected component by rendering an identifier according to an embodiment of the present application. In this embodiment, the model management method includes the following steps:
step S301, acquiring a framing instruction; specifically, the frame selection instruction is obtained through the display interface, and the frame selection range is determined through the frame selection instruction.
Step S302, rendering a component to be rendered; the component to be rendered is selected from the display object, the display object comprises a candidate primitive of the first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by the current model in the display interface, and the component to be rendered belongs to the first candidate component. Specifically, the component to be rendered comprises a plurality of components, and each component to be rendered is sequentially and individually rendered. The rendering the component to be rendered refers to: and adding a rendering identifier to the pixel points in the range of the component to be rendered.
Step S303, judging whether the rendering identifier exists in the framing range; step S304, when the rendering identifier exists in the frame selection range, selecting a corresponding component; and step S305, when the rendering identifier does not exist in the frame selection range, not selecting any component. It should be noted that the rendering operation and the determination operation of the rendering identifier for each component to be rendered are performed continuously and separately, that is: and after the rendering of one component to be rendered is finished, judging the rendering identifier in the frame selection range directly, then carrying out rendering operation and judgment operation of the rendering identifier on the other component to be rendered, sequentially judging all the components to be rendered, and determining all the components meeting the judgment conditions as the selected components to be selected.
It should be noted that, in this embodiment, a method for completing component selection by setting a rendering identifier to determine whether a component is in a framing range is adopted, so that candidate components whose component vertices are not in the framing range can be selected, complete selection is achieved, and efficiency of framing operation is improved. For example, for the two examples shown in fig. 5 and fig. 6, each vertex of the component 501 in fig. 5 is not in the frame selection range 502, but a partial area of the component 501 is in the frame selection range 502, and at this time, by adding a rendering identifier to the component 501, the rendering identifier exists in the frame selection range 502, and the component 501 can be selected; similarly, the component 601 in fig. 6 completely includes the frame selection range 502, and each vertex and each edge of the component 601 do not intersect with the frame selection range 502, and at this time, the component 601 may also be selected by adding a rendering identifier to the component 601 and then determining that the rendering identifier exists in the frame selection range 502. It should be understood that the candidate components in the two cases shown in fig. 5 and 6 cannot be selected by the method of determining the vertex position, and the method for determining the selected component by the rendering identifier provided by the embodiment of the present application is not only applicable to the two cases shown in fig. 5 and 6.
In an embodiment, please refer to fig. 2 and fig. 4, where fig. 4 is a flowchart of a method for determining a selected component by combining a rendering identifier determination and a primitive vertex determination according to an embodiment of the present application. In the embodiment, the selected component is determined by combining the rendering identifier judgment and the primitive vertex judgment, so that the complexity of determining the selected component by the primitive vertex judgment alone is simplified while the complete selection is realized, and the time for executing the component selection is shortened. With reference to the embodiment shown in fig. 2, the following describes the model management method provided in this embodiment in detail:
step S401, a framing instruction is acquired. Specifically, the frame selection instruction is obtained through the display interface, and the frame selection range is determined through the frame selection instruction.
In step S402, partial primitive vertices corresponding to the candidate primitives of the second candidate component are selected. Specifically, a part of primitive vertices corresponding to the candidate primitives of the second candidate component are selected from the display object, the display object comprises the candidate primitives of the second candidate component and the primitive vertices corresponding to the candidate primitives of the second candidate component, and the second candidate component comprises the model component displayed by the current model in the display interface. Further, the method for selecting the partial primitive vertices corresponding to the candidate primitives of the second candidate component from the presentation object is as follows: acquiring all primitive vertexes corresponding to the candidate primitives of the second candidate component; and selecting the partial primitive vertexes from all primitive vertexes corresponding to the candidate primitives of the second candidate component according to a preset mode. The preset mode can be a uniform extraction mode or a random extraction mode; for example, one primitive vertex is extracted to constitute the partial primitive vertices every other primitive vertex or vertices among all primitive vertices corresponding to the candidate primitives of the second candidate component.
Step S403, judging whether the vertexes of the partial graphic elements are in the frame selection range, and if so, selecting corresponding components; if not, the component is not selected. Specifically, determining a first target primitive vertex located in the framing range from the partial primitive vertices corresponding to the candidate primitive of the second candidate component, and determining a candidate component to which the first target primitive vertex belongs as a second selected component; and determining the selected component corresponding to the frame selection instruction based on the second selected component, and further selecting the corresponding component.
Further, the step of determining a first target primitive vertex located in the framing range from the partial primitive vertices corresponding to the candidate primitive of the second candidate component, and determining a candidate component to which the first target primitive vertex belongs as a second selected component includes: converting first vertex coordinates of the vertexes of the partial primitives corresponding to the candidate primitives of the second candidate component into first screen coordinates, wherein the vertex coordinates are coordinates of the vertexes in the component, and the screen coordinates are coordinates of the vertexes of the component on a display plane; determining a first target screen coordinate located in the frame selection range based on the first screen coordinate, specifically, determining the first screen coordinate located in the frame selection range as the first target screen coordinate; determining the vertex of the first target primitive based on the first target screen coordinate, specifically, obtaining the vertex coordinate of the corresponding vertex of the first target primitive from the first target screen coordinate according to the corresponding relation between the screen coordinate and the vertex coordinate, and obtaining the vertex of the first target primitive from the vertex coordinate; determining the second selected component based on the first target primitive vertex, wherein all the second candidate components including the first target primitive vertex are determined as the second selected component.
It should be appreciated that the above process of determining the selected component by the vertices of the primitive simplifies the complexity of performing the determination of the vertices of the primitive only for a portion of the vertices of the primitive in the second candidate component.
Further, the first candidate component is obtained based on the second selected component and the second candidate component. Specifically, the set of the first candidate component and the second selected component is the second candidate component.
Step S404, rendering the first candidate component, where the first candidate component is the component to be rendered. Specifically, please refer to step S103 in the embodiment shown in fig. 2, which is not described herein again.
Step S405, judging whether the rendering identifier exists in the frame selection range, and if so, selecting a corresponding component; if not, the component is not selected. Specifically, please refer to step S104 in the embodiment shown in fig. 2, which is not described herein again. By this step, a first selected component is determined from the first candidate components.
Further, the third candidate component is obtained based on the first selected component and the first candidate component. Specifically, the set of the third candidate component and the first selected component is the first candidate component.
Step S406, selecting all primitive vertices corresponding to the candidate primitives of the third candidate component. It should be understood that the third candidate component is a combination of components obtained by removing the second selected component and the first selected component from all candidate components, and the number of the third candidate component is far smaller than that of all candidate components, so that the number of vertices of all primitives corresponding to the candidate primitive of the third candidate component is also smaller, and the vertex judgment of the primitive after the third candidate component is facilitated.
Step S407, judging whether the vertexes of all the primitives are in the frame selection range, and if so, selecting a corresponding component; in step S408, if not, the component is not selected. Specifically, determining a second target primitive vertex located in the framing range from all primitive vertices corresponding to the candidate primitives of the third candidate component, and determining a candidate component to which the second target primitive vertex belongs as a third selected component; and determining the selected component corresponding to the frame selection instruction based on the third selected component, and further selecting the corresponding component.
Further, the step of determining a second target primitive vertex located in the framing range from the partial primitive vertices corresponding to the candidate primitive of the third candidate component, and determining a candidate component to which the second target primitive vertex belongs as a third selected component includes: converting second vertex coordinates of all primitive vertices corresponding to the candidate primitives of the third candidate component into second screen coordinates, wherein the vertex coordinates are coordinates of the vertices in the component, and the screen coordinates are coordinates of the vertices of the component on a display plane; determining a second target screen coordinate located in the frame selection range based on the second screen coordinate, specifically, determining the second screen coordinate located in the frame selection range as the second target screen coordinate; determining the second target primitive vertex based on the second target screen coordinate, specifically, according to the corresponding relation between the screen coordinate and the vertex coordinate, obtaining the vertex coordinate of the corresponding second target primitive vertex from the second target screen coordinate, and obtaining the second target primitive vertex from the vertex coordinate; determining the third selected component based on the second target primitive vertex, wherein all the third candidate components including the second target primitive vertex are determined as the third selected component.
Step S409, based on the second selected component, the first selected component, and the third selected component, determining all selected components corresponding to the frame selection instruction.
It should be noted that, in this embodiment, the selected component is determined by a method combining rendering identifier determination and primitive vertex determination, and the primitive vertex determination is performed in two stages, and a part of the primitive vertices and all the remaining primitive vertices are respectively determined.
Based on the above model management method, an embodiment of the present application further provides a model management apparatus, referring to fig. 7, where the model management apparatus includes: an acquisition module 701, a selection module 702, a rendering module 703, a screening module 704, and a determination module 705.
The obtaining module 701 is configured to obtain a framing instruction through a display interface, and determine a framing range corresponding to the framing instruction.
The selection module 702 is configured to select a component to be rendered from a display object, where the display object includes a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component includes a model component displayed in the display interface by a current model, and the component to be rendered belongs to the first candidate component.
The rendering module 703 is configured to render the component to be rendered.
The screening module 704 is configured to screen the component to be rendered, which has the rendering identifier in the frame selection range, and determine the component to be rendered as the first selected component.
The determining module 705 is configured to determine a selected component corresponding to the framing instruction based on the first selected component.
In one embodiment, the selection module 702 is further configured to select a partial primitive vertex corresponding to a candidate primitive of a second candidate component from the presentation object; the screening module 704 is further configured to determine a first target primitive vertex located in the framing range from the primitive vertices corresponding to the candidate primitives of the second candidate component, and determine a candidate component to which the first target primitive vertex belongs as a second selected component; the determining module 705 is further configured to determine a selected component corresponding to the framing instruction based on the second selected component.
In one embodiment, the selection module 702 is further configured to derive a third candidate component based on the first selected component and the first candidate component; the screening module 704 is further configured to determine a second target primitive vertex located in the framing range from all primitive vertices corresponding to the candidate primitives of the third candidate component, and determine a candidate component to which the second target primitive vertex belongs as a third selected component; the determination module is further used for determining the selected component corresponding to the frame selection instruction based on the third selected component.
In one embodiment, the selection module 702 is further configured to derive the first candidate component based on the second selected component and the second candidate component.
In an embodiment, the selecting module 702 is further configured to obtain all primitive vertices corresponding to the candidate primitives of the second candidate component, and select the partial primitive vertices from the all primitive vertices corresponding to the candidate primitives of the second candidate component according to a preset manner.
In one embodiment, the screening module 704 is further configured to convert first vertex coordinates of vertices of the partial primitive corresponding to the candidate primitive of the second candidate component into first screen coordinates, and to determine first target screen coordinates within the framing range based on the first screen coordinates, and further configured to determine the first target primitive vertices based on the first target screen coordinates, and to determine the second selected component based on the first target primitive vertices.
In one embodiment, the screening module 704 is further configured to convert second vertex coordinates of all primitive vertices corresponding to the candidate primitive of the third candidate component into second screen coordinates, and to determine second target screen coordinates within the framing range based on the second screen coordinates, and to determine the second target primitive vertices based on the second target screen coordinates, and to determine the third selected component based on the second target primitive vertices.
In an embodiment, the rendering module 703 is further configured to sequentially select each component to be rendered, and add the rendering identifier to a pixel point within a range of each component to be rendered. The screening module 704 is further configured to determine whether a pixel point in the framing range has the rendering identifier after the rendering of each component to be rendered is completed, and determine the component to be rendered as the first selected component when the pixel point in the framing range has the rendering identifier.
An embodiment of the present application further provides an electronic device, which may include the model management apparatus provided in the foregoing embodiment, and the electronic device may include a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps in the model management method in the foregoing embodiment.
Further, the internal structure of the electronic device may include a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus as shown in fig. 8. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement the traffic management data processing method according to the above embodiments. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structure shown in fig. 8 is a block diagram of only a portion of the structure relevant to the present disclosure, and does not constitute a limitation on the electronic device to which the present disclosure may be applied, and that a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to implement the following functions:
acquiring a frame selection instruction through a display interface, and determining a frame selection range corresponding to the frame selection instruction; selecting a component to be rendered from a display object, wherein the display object comprises a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by a current model in the display interface, and the component to be rendered belongs to the first candidate component; rendering the component to be rendered; screening the components to be rendered with rendering identifiers in the framing range, and determining the components to be rendered as first selected components; and determining a selected component corresponding to the framing instruction based on the first selected component.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by any method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
It should be noted that, although the present application has been described with reference to specific examples, the above-mentioned examples are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be limited by the appended claims.

Claims (10)

1. A method of model management, comprising:
acquiring a frame selection instruction through a display interface, and determining a frame selection range corresponding to the frame selection instruction;
selecting a component to be rendered from a display object, wherein the display object comprises a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by a current model in the display interface, and the component to be rendered belongs to the first candidate component;
rendering the component to be rendered;
screening the components to be rendered with rendering identifiers in the framing range, and determining the components to be rendered as first selected components;
and determining a selected component corresponding to the framing instruction based on the first selected component.
2. The model management method of claim 1, further comprising, prior to the step of selecting a component to be rendered from a display object:
selecting a part of primitive vertices corresponding to a candidate primitive of a second candidate component from the display object, wherein the display object comprises the candidate primitive of the second candidate component and the primitive vertices corresponding to the candidate primitive of the second candidate component, and the second candidate component comprises a model component displayed by the current model in the display interface;
determining a first target primitive vertex positioned in the framing range from the partial primitive vertex corresponding to the candidate primitive of the second candidate component, and determining a candidate component to which the first target primitive vertex belongs as a second selected component;
and determining a selected component corresponding to the framing instruction based on the second selected component.
3. The model management method according to claim 1, further comprising, after said step of determining a selected component corresponding to the framing instruction based on the first selected component:
obtaining a third candidate component based on the first selected component and the first candidate component;
determining a second target primitive vertex positioned in the framing range from all primitive vertices corresponding to the candidate primitives of the third candidate component, and determining a candidate component to which the second target primitive vertex belongs as a third selected component;
and determining a selected component corresponding to the framing instruction based on the third selected component.
4. The model management method of claim 2, further comprising, prior to the step of selecting a component to be rendered from the display object:
obtaining the first candidate component based on the second selected component and the second candidate component.
5. The model management method according to claim 2, wherein the step of selecting partial primitive vertices corresponding to the candidate primitives of the second candidate component from the presentation object comprises:
acquiring all primitive vertexes corresponding to the candidate primitives of the second candidate component;
and selecting the partial primitive vertexes from all primitive vertexes corresponding to the candidate primitives of the second candidate component according to a preset mode.
6. The model management method according to claim 2, wherein the step of determining a first target primitive vertex located within the frame selection range from the partial primitive vertices corresponding to the candidate primitive of the second candidate component, and determining a candidate component to which the first target primitive vertex belongs as a second selected component comprises:
converting first vertex coordinates of the vertices of the partial primitive corresponding to the candidate primitive of the second candidate component into first screen coordinates;
determining a first target screen coordinate located within the frame selection range based on the first screen coordinate;
determining the first target primitive vertex based on the first target screen coordinates;
determining the second selected component based on the first target primitive vertex.
7. The model management method according to claim 3, wherein the step of determining a second target primitive vertex located within the frame selection range from all primitive vertices corresponding to the candidate primitive of the third candidate component, and determining a candidate component to which the second target primitive vertex belongs as a third selected component includes:
converting second vertex coordinates of all primitive vertices corresponding to the candidate primitives of the third candidate component into second screen coordinates;
determining second target screen coordinates located within the frame selection range based on the second screen coordinates;
determining the second target primitive vertex based on the second target screen coordinates;
determining the third selected component based on the second target primitive vertex.
8. The model management method according to any one of claims 1 to 7, wherein said step of rendering said member to be rendered comprises:
sequentially selecting each component to be rendered;
adding the rendering identifier to each pixel point in the range of the component to be rendered;
the step of screening the components to be rendered with rendering identifiers in the frame selection range and determining the components to be rendered as first selected components includes:
after the rendering of each component to be rendered is completed, judging whether pixel points in the framing range have the rendering identification;
and when the pixel points in the frame selection range have the rendering identification, determining the component to be rendered as the first selected component.
9. A model management apparatus, comprising:
the acquisition module is used for acquiring the framing instruction through a display interface and determining the framing range corresponding to the framing instruction;
the selection module is used for selecting a component to be rendered from a display object, wherein the display object comprises a candidate primitive of a first candidate component and a primitive vertex corresponding to the candidate primitive of the first candidate component, the first candidate component comprises a model component displayed by a current model in the display interface, and the component to be rendered belongs to the first candidate component;
a rendering module for rendering the component to be rendered;
the screening module is used for screening the components to be rendered with the rendering identifiers in the framing range and determining the components to be rendered as first selected components; and
and the determining module is used for determining the selected component corresponding to the frame selection instruction based on the first selected component.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps in the model management method according to any one of claims 1 to 8 when executing the computer program.
CN202011196382.1A 2020-10-30 2020-10-30 Model management method and device and electronic equipment Active CN112257134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011196382.1A CN112257134B (en) 2020-10-30 2020-10-30 Model management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011196382.1A CN112257134B (en) 2020-10-30 2020-10-30 Model management method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112257134A CN112257134A (en) 2021-01-22
CN112257134B true CN112257134B (en) 2022-09-16

Family

ID=74267532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011196382.1A Active CN112257134B (en) 2020-10-30 2020-10-30 Model management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112257134B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223423B (en) * 2021-05-14 2022-08-30 童画控股有限公司 Advertisement design display device capable of displaying advertisement effects in multiple ways

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075571A (en) * 1997-07-29 2000-06-13 Kuthyar; Ashok K. Composite image display device and service for video conferencing
TW200901081A (en) * 2007-05-07 2009-01-01 Qualcomm Inc Post-render graphics overlays
CN106406693A (en) * 2016-08-30 2017-02-15 腾讯科技(深圳)有限公司 Method and device for selecting image
CN107918665A (en) * 2017-11-23 2018-04-17 上海蒙袋网络科技有限公司 A kind of system and method for Fast rendering and the CAD information inquiry of threedimensional model
CN110211218A (en) * 2019-05-17 2019-09-06 腾讯科技(深圳)有限公司 Picture rendering method and device, storage medium and electronic device
CN110414148A (en) * 2019-07-30 2019-11-05 中北大学 The cross-platform online method for visualizing of open BIM based on WebGL
CN110443893A (en) * 2019-08-02 2019-11-12 广联达科技股份有限公司 Extensive building scene rendering accelerated method, system, device and storage medium
CN111429587A (en) * 2020-02-24 2020-07-17 深圳市华阳国际工程设计股份有限公司 Display method, terminal and storage medium of three-dimensional design model
CN111552429A (en) * 2020-04-29 2020-08-18 杭州海康威视数字技术股份有限公司 Graph selection method and device and electronic equipment
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075571A (en) * 1997-07-29 2000-06-13 Kuthyar; Ashok K. Composite image display device and service for video conferencing
TW200901081A (en) * 2007-05-07 2009-01-01 Qualcomm Inc Post-render graphics overlays
CN106406693A (en) * 2016-08-30 2017-02-15 腾讯科技(深圳)有限公司 Method and device for selecting image
CN107918665A (en) * 2017-11-23 2018-04-17 上海蒙袋网络科技有限公司 A kind of system and method for Fast rendering and the CAD information inquiry of threedimensional model
CN110211218A (en) * 2019-05-17 2019-09-06 腾讯科技(深圳)有限公司 Picture rendering method and device, storage medium and electronic device
CN110414148A (en) * 2019-07-30 2019-11-05 中北大学 The cross-platform online method for visualizing of open BIM based on WebGL
CN110443893A (en) * 2019-08-02 2019-11-12 广联达科技股份有限公司 Extensive building scene rendering accelerated method, system, device and storage medium
CN111429587A (en) * 2020-02-24 2020-07-17 深圳市华阳国际工程设计股份有限公司 Display method, terminal and storage medium of three-dimensional design model
CN111552429A (en) * 2020-04-29 2020-08-18 杭州海康威视数字技术股份有限公司 Graph selection method and device and electronic equipment
CN111737800A (en) * 2020-06-23 2020-10-02 广联达科技股份有限公司 Primitive selection method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林业三维地形图软件构件设计的探讨;王霓虹;《林业科学》;20040731;第40卷(第4期);全文 *

Also Published As

Publication number Publication date
CN112257134A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
US11852499B2 (en) Map rendering method and apparatus, computer device, and storage medium
CN111340928B (en) Ray tracing-combined real-time hybrid rendering method and device for Web end and computer equipment
TWI618030B (en) Method and system of graphics processing enhancement by tracking object and/or primitive identifiers, graphics processing unit and non-transitory computer readable medium
CN110298780B (en) Map rendering method, map rendering device and computer storage medium
US20100020069A1 (en) Partitioning-based performance analysis for graphics imaging
CN113688545B (en) Visualization method and system for finite element post-processing result and data processing terminal
CN101604454A (en) Graphic system
CN110335345B (en) Curtain wall node rendering method and device, computer equipment and storage medium
CN110570491B (en) Thermodynamic diagram generation method and device
US10733782B2 (en) Graphics processing systems
CN112257134B (en) Model management method and device and electronic equipment
CN111583381A (en) Rendering method and device of game resource map and electronic equipment
KR20120065589A (en) Apparatus and method for tile binning for low power
CN112734900A (en) Baking method, baking device, baking equipment and computer-readable storage medium of shadow map
EP4231243A1 (en) Data storage management method, object rendering method, and device
CN114758034A (en) Map generation method and device, computer-readable storage medium and electronic device
CN114627225A (en) Method and device for rendering graphics and storage medium
CA2730298A1 (en) Partitioning-based performance analysis for graphics imaging
CN115131531A (en) Virtual object display method, device, equipment and storage medium
JP3495159B2 (en) Image component adjacency determination method
KR20180117499A (en) Apparatus and method for simplification of 3D mesh data
CN108171784B (en) Rendering method and terminal
CN106777280B (en) Data processing method and device based on super large data set
CN105389841A (en) Method for performing graphics processing of a graphics system in an electronic device with aid of configurable hardware, and associated apparatus
CN109542573B (en) Scene display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant