CN114443003A - Component rendering method and device, electronic equipment and storage medium - Google Patents

Component rendering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114443003A
CN114443003A CN202111651475.3A CN202111651475A CN114443003A CN 114443003 A CN114443003 A CN 114443003A CN 202111651475 A CN202111651475 A CN 202111651475A CN 114443003 A CN114443003 A CN 114443003A
Authority
CN
China
Prior art keywords
component
sub
instantiated
family
rendering
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.)
Pending
Application number
CN202111651475.3A
Other languages
Chinese (zh)
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.)
Shenzhen Wanyi Digital Technology Co ltd
Original Assignee
Wanyi 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 Wanyi Technology Co Ltd filed Critical Wanyi Technology Co Ltd
Priority to CN202111651475.3A priority Critical patent/CN114443003A/en
Publication of CN114443003A publication Critical patent/CN114443003A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • 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)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computational Mathematics (AREA)
  • Structural Engineering (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Image Generation (AREA)

Abstract

The application relates to a component rendering method, a component rendering device, electronic equipment and a storage medium, and belongs to the technical field of building information. The component rendering method comprises the following steps: acquiring family members of preset types in the BIM model, wherein the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged; merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set; acquiring template information corresponding to the sub-component to be instantiated and acquiring second attribute information of the sub-component to be instantiated; generating a second data set according to the second attribute information and the template information; rendering the to-be-instantiated rendering sub-components of the family component from the second data set, and rendering the to-be-merged vertex rendering sub-components of the family component from the first data set. By the method, when the family members are rendered, a plurality of family members can be rendered at one time, and the rendering efficiency is improved.

Description

Component rendering method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of building information technologies, and in particular, to a component rendering method and apparatus, an electronic device, and a storage medium.
Background
The Building Information Model (BIM) is an overall process of creating and managing building asset information. BIM integrates structured, multi-domain data based on intelligent models supported by cloud platforms to generate a digital representation of an asset over its entire lifecycle (from planning and design to construction and operation).
The BIM model has a large number of family members, and the problem to be solved is how to efficiently render the family members in the BIM model with a large quantity because the whole data volume of the BIM model is large.
Disclosure of Invention
In order to solve the technical problem of how to efficiently render a plurality of family members, the application provides a member rendering method, a member rendering device, an electronic device and a storage medium.
In a first aspect, the present application provides a component rendering method, the method comprising:
acquiring family members of preset types in a BIM (building information modeling) model, wherein the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged; merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set;
acquiring template information corresponding to the sub-component to be instantiated and acquiring second attribute information of the sub-component to be instantiated;
generating a second data set according to the second attribute information and the template information;
rendering a to-be-instantiated rendered sub-component of the family component from the second set of data, and rendering a to-be-merged vertex rendered sub-component of the family component from the first set of data;
further, the first attribute information includes: vertex, normal and index;
merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set, wherein the merging comprises the following steps:
extracting a vertex, a normal and an index of each of the subcomponents;
merging the vertexes of the sub-components to obtain a vertex set, merging the normals of the sub-components to obtain a normal set, and accumulating and sequencing the indexes of the sub-components to obtain an index set
Taking the vertex set, the normal set and the index set as the first data set;
further, the second attribute information includes: coordinate information, rotation angle and scaling;
acquiring second attribute information of the to-be-instantiated drawing sub-component, wherein the second attribute information comprises:
determining coordinate information of the to-be-instantiated drawing sub-component; acquiring a rotation angle and a scaling of the family member, and taking the rotation angle and the scaling of the family member as the rotation angle and the scaling of the to-be-example drawing sub-member;
further, determining coordinate information of the to-be-instantiated drawing sub-component comprises the following steps:
extracting local coordinates of the sub-component to be example drawn in the family component;
extracting world coordinates of the family members in the BIM model;
obtaining the world coordinates of the sub-component to be example drawn in the BIM model according to the local coordinates of the sub-component to be example drawn in the family component and the world coordinates of the family component in the BIM model; taking the world coordinates of the to-be-instantiated drawing sub-component in the BIM model as the coordinate information of the to-be-instantiated drawing sub-component;
further, acquiring family members of preset types in the BIM model comprises:
acquiring family members in a BIM model;
confirming the family members carrying the split identification in the family members as the family members of the preset type;
further, acquiring template information corresponding to the to-be-instantiated drawing sub-component, including:
acquiring identification information of the sub-component to be drawn;
acquiring a preset mapping relation, wherein the mapping relation is the mapping relation between the template information and the identification information;
acquiring the template information according to the identification information and the mapping relation;
further, rendering a to-be-instantiated rendered sub-component of the family component from the second set of data comprises:
and performing example drawing on the sub-component to be example drawn of the family component according to the second attribute information and the template information.
In a second aspect, the present application provides a component rendering apparatus, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring family members of preset types in the BIM model, and the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged;
the first generation module is used for combining the first attribute information of each sub-component contained in the vertex drawing sub-components to be combined to generate a first data set;
the second acquisition module is used for acquiring template information corresponding to the to-be-instantiated drawing sub-component and acquiring second attribute information of the to-be-instantiated drawing sub-component;
a second generating module, configured to generate a second data set according to the second attribute information and the template information;
and the rendering module is used for rendering the to-be-example drawing sub-component of the family component according to the second data set and rendering the to-be-merged vertex drawing sub-component of the family component according to the first data set.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the steps of the component rendering method according to any one of the embodiments of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the component rendering method as defined in any one of the embodiments of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the method provided by the embodiment of the application comprises the following steps: acquiring family members of preset types in a BIM (building information modeling) model, wherein the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged; merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set; acquiring template information corresponding to the sub-component to be instantiated and acquiring second attribute information of the sub-component to be instantiated; generating a second data set according to the second attribute information and the template information; rendering a to-be-instantiated rendered sub-component of the family component from the second set of data, and rendering a to-be-merged vertex rendered sub-component of the family component from the first set of data. According to the method, family members of preset types in the acquired BIM model are separately rendered, the family members of the preset types can be split into sub-members for drawing examples and sub-members for drawing vertexes to be merged, first attribute information of the sub-members for drawing the vertexes to be merged in the family members is merged to generate a first data set, template information and second attribute information corresponding to the sub-members for drawing the examples are acquired to generate a second data set, the sub-members for drawing the examples are rendered according to the second data set, and the sub-members for drawing the vertexes to be merged are rendered according to the first data set. When the family members of the preset type are rendered, a plurality of family members can be rendered at the same time, and the rendering efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a system architecture diagram of a component rendering method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a component rendering method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another component rendering method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a component rendering apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.
The first embodiment of the present application provides a component rendering method, which may be applied to a system architecture as shown in fig. 1, where the system architecture includes at least a terminal 100 and a server 101, and the terminal 100 and the server 101 establish a communication connection. The BIM model may be stored in the terminal 100 or the server 101, and the component rendering method may be applied to the terminal 100 side or the server 101 side.
Based on the system architecture, the embodiment of the component rendering method is explained.
A component rendering method, as in fig. 2, the method comprising:
step 201, acquiring family members of preset types in the BIM, wherein the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged;
step 202, merging the first attribute information of each sub-component included in the vertex drawing sub-components to be merged to generate a first data set.
Step 203, obtaining template information corresponding to the sub-component to be instantiated and obtaining second attribute information of the sub-component to be instantiated.
Step 204, generating a second data set according to the second attribute information and the template information;
step 205, rendering the to-be-instantiated rendering sub-component of the family component according to the second data set, and rendering the to-be-merged vertex rendering sub-component of the family component according to the first data set.
In this embodiment, a family component of a preset type in the obtained BIM model is separately rendered, the family component of the preset type can be split into a to-be-instantiated rendering sub-component and a to-be-merged vertex rendering sub-component, first attribute information of each sub-component included in the to-be-merged vertex rendering sub-component in the family component is merged to generate a first data set, template information and second attribute information corresponding to the to-be-instantiated rendering sub-component are obtained, a second data set is generated, the to-be-instantiated rendering sub-component is rendered according to the second data set, and the to-be-merged vertex rendering sub-component is rendered according to the first data set. When the family members of the preset type are rendered, a plurality of family members can be rendered at the same time, and the rendering efficiency is improved.
In one embodiment, the first attribute information includes: vertex, normal and index; merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set, wherein the merging comprises the following steps: extracting the vertex, the normal and the index of each sub-component; merging the vertexes of the sub-components to obtain a vertex set, merging the normals of the sub-components to obtain a normal set, and accumulating and sequencing the indexes of the sub-components to obtain an index set; the vertex set, the normal set, and the index set are taken as a first data set.
In this embodiment, vertex merging is performed on vertex drawing sub-components to be merged in the family components, that is, the first attribute information of each sub-component included in the vertex drawing sub-components to be merged is merged to generate the first data set, so that the vertex drawing sub-components to be merged in a plurality of family components can be processed uniformly, and the processing efficiency of the family components is improved. Specifically, the first attribute information includes coordinates, a normal and an index, and a coordinate set, a normal set and an index set are obtained after merging, specifically, the coordinate set may be a vertex array of each vertex to be merged, the normal set may be a normal array of each vertex to be merged, and the index set may be an index array of each vertex to be merged. The vertex array, the normal array and the index array form a first data set.
For example, if two vertices to be merged are merged to draw a sub-component (e.g., a first sub-component and a second sub-component), where the vertices of the first sub-component are [ v1, v2, v3], the normals are [ f1, f2, f3], the indices are [0, 1, 2], the vertices of the second sub-component are [ v21, v22, v23], the normals are [ f21, f22, f23], the indices are [0, 1, 2], the merged vertex array of the first sub-component and the second sub-component is [ v1, v2, v3, v21, v22, v23], the merged normal array is [ f1, f2, f3, f21, f22, f23], where the merged vertex array of the indices is slightly different from the merged vertex and the merged vertex, and needs to be sorted on the previous values, and, for example, the merged vertex array is [0, v21, v22, f2, f3, f21, f22, f23], where the merged normal array is sorted on the previous values.
In one embodiment, the second attribute information includes: coordinate information, rotation angle and scaling; acquiring second attribute information of the sub-component to be instantiated, wherein the second attribute information comprises: determining coordinate information of a to-be-instantiated drawing sub-component; and acquiring the rotation angle and the scaling of the family member, and taking the rotation angle and the scaling of the family member as the rotation angle and the scaling of the to-be-instantiated drawing sub-member.
In this embodiment, the coordinate information of the to-be-instantiated drawing sub-component may be determined according to the coordinate of the family component and the coordinate of the to-be-instantiated drawing sub-component in the family component, and the rotation angle and the scaling of the to-be-instantiated drawing sub-component may be determined according to the rotation angle and the scaling of the family component.
In one embodiment, determining coordinate information of a to-be-instantiated drawing sub-component comprises: extracting local coordinates of the sub-component to be subjected to example drawing in the family component; extracting world coordinates of the family members in the BIM model; according to the local coordinates of the sub-component to be instantiated in the family component and the world coordinates of the family component in the BIM model, the world coordinates of the sub-component to be instantiated in the BIM model are obtained; and taking the world coordinates of the sub-component to be instantiated in the BIM model as the coordinate information of the sub-component to be instantiated.
In this embodiment, the coordinate information of the sub-component to be drawn by the example is determined, specifically, as shown in fig. 3, the family component is taken as an example of the packing column 300 of the underground garage, and the two packing columns are identical to each other except for the anti-collision angle and the text information. The collision prevention angle and the character information are used as vertex drawing sub-components to be merged, and the rest parts which are completely the same are used as drawing sub-components 301 to be instantiated. For example, the coordinate of one packing column 300 in the world coordinate system is (x1, y1, z1), the local coordinate of the to-be-instantiated packing column of the sub-component 301 is (x2, y2, z2), and the coordinate of the to-be-instantiated packing column of the sub-component in the world coordinate system is (x3, y3, z3), where x3 ═ x1+ x2, y3 ═ y1+ y2, and z3 ═ z1+ z 2. By the method, the coordinate information of the sub-component to be drawn in the embodiment in each family component is obtained, and all the coordinate information is stored in the second data set. Because the sub-components to be instantiated and drawn between any two family components are the same, the template information corresponding to any sub-component to be instantiated and drawn can be extracted, and the second data set carries the identification information corresponding to the template information. The method can realize simultaneous rendering of the sub-members to be drawn by the examples in the family members, and improve the rendering efficiency of the family members. In particular, the coordinate information may be stored using matrices, and the second data set may be a matrix array including the respective matrices.
It should be noted that the packaging column is used as an example of the family member, and the family member is not limited to be the packaging column, but may be any family member.
In one embodiment, obtaining family members of a predetermined type in the BIM model includes: acquiring family members in a BIM model; and determining the family members carrying the splitting identification in the family members to be the preset type of family members.
In this embodiment, a preset type of family component is a family component carrying a split identifier, after the family component carrying the split identifier is confirmed to carry the split identifier, the family component is split into a to-be-instantiated drawing sub-component and a to-be-merged vertex drawing sub-component, the to-be-instantiated drawing sub-component generates a second data set according to template information and second attribute information, the to-be-merged vertex drawing sub-component performs merging of first attribute information, a first data set is generated, the to-be-instantiated drawing sub-component is rendered according to the second data set, the to-be-merged vertex drawing sub-component is rendered according to the first data set, a plurality of family components carrying the split identifier can be rendered simultaneously, and rendering efficiency is improved.
In one embodiment, obtaining template information corresponding to a to-be-instantiated drawing sub-component includes: acquiring identification information of a sub-component to be drawn by an example; acquiring a preset mapping relation, wherein the mapping relation is the mapping relation between the template information and the identification information; and acquiring template information according to the identification information and the mapping relation.
In the preset mapping relationship, the mapping relationship between the template information and the identification information is stored, after the identification information of the to-be-instantiated drawing sub-component is obtained, the template information corresponding to the identification information can be extracted from the mapping relationship, when a second data set is generated, the identification information corresponding to the template information only needs to be stored in the second data set, and the template information corresponding to the identification information can be called according to the identification information during rendering, wherein the template information can be the to-be-instantiated drawing sub-component in an original state.
In one embodiment, rendering the to-be-instantiated rendered sub-component of the family component from the second set of data comprises: and performing example drawing on the sub-component to be subjected to example drawing of the family component according to the second attribute information and the template information. Specifically, the coordinates, the rotation angle and the scaling of the sub-component to be subjected to example drawing and rendered in an example drawing mode are determined according to the coordinate information, the rotation angle and the scaling and the template information, so that a plurality of family components can be rendered at the same time, and the rendering efficiency is improved.
Based on the same technical concept, a second embodiment of the present application provides a component rendering apparatus, as shown in fig. 4, the apparatus including:
a first obtaining module 401, configured to obtain family members of preset types in the BIM model, where the family members include a to-be-instantiated drawing sub-member and a to-be-merged vertex drawing sub-member;
a first generating module 402, configured to merge first attribute information of each sub-component included in the vertex drawing sub-components to be merged, so as to generate a first data set;
a second obtaining module 403, configured to obtain template information corresponding to the to-be-instantiated drawing sub-component, and obtain second attribute information of the to-be-instantiated drawing sub-component;
a second generating module 404, configured to generate a second data set according to the second attribute information and the template information;
a rendering module 405, configured to render the to-be-instantiated rendering sub-component of the family component according to the second data set, and render the to-be-merged vertex rendering sub-component of the family component according to the first data set.
As shown in fig. 5, a third embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 complete mutual communication via the communication bus 114,
a memory 113 for storing a computer program;
in one embodiment, the processor 111, configured to execute the program stored in the memory 113, is configured to implement the component rendering method provided in any one of the foregoing method embodiments, and includes:
acquiring family members of preset types in a BIM (building information modeling) model, wherein the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged;
merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set;
acquiring template information corresponding to the sub-component to be instantiated and acquiring second attribute information of the sub-component to be instantiated;
generating a second data set according to the second attribute information and the template information;
rendering a to-be-instantiated rendered sub-component of the family component from the second set of data, and rendering a to-be-merged vertex rendered sub-component of the family component from the first set of data.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The fourth embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the component rendering method as provided in any one of the method embodiments described above.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the description, suffixes such as "module", "part", or "unit" used to denote elements are used only for facilitating the description of the present invention, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of component rendering, the method comprising:
acquiring family members of preset types in a BIM (building information modeling) model, wherein the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged;
merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set;
acquiring template information corresponding to the sub-component to be instantiated and acquiring second attribute information of the sub-component to be instantiated;
generating a second data set according to the second attribute information and the template information;
rendering a to-be-instantiated rendered sub-component of the family component from the second set of data, and rendering a to-be-merged vertex rendered sub-component of the family component from the first set of data.
2. The method according to claim 1, wherein the first attribute information includes: vertex, normal and index;
merging the first attribute information of each sub-component contained in the vertex drawing sub-components to be merged to generate a first data set, wherein the merging comprises:
extracting a vertex, a normal and an index of each of the subcomponents;
merging the vertexes of the sub-components to obtain a vertex set, merging the normals of the sub-components to obtain a normal set, and accumulating and sequencing the indexes of the sub-components to obtain an index set;
taking the vertex set, the normal set and the index set as the first data set.
3. The method according to claim 1, wherein the second attribute information includes: coordinate information, rotation angle and scaling;
acquiring second attribute information of the to-be-instantiated drawing sub-component, wherein the second attribute information comprises:
determining coordinate information of the to-be-instantiated drawing sub-component; and acquiring the rotation angle and the scaling of the family member, and taking the rotation angle and the scaling of the family member as the rotation angle and the scaling of the drawing sub-member to be instantiated.
4. The method of claim 3, wherein determining coordinate information for the to-be-instantiated rendered sub-component comprises:
extracting local coordinates of the drawing sub-component to be instantiated in the family component;
extracting world coordinates of the family members in the BIM model;
obtaining the world coordinates of the sub-component to be example drawn in the BIM model according to the local coordinates of the sub-component to be example drawn in the family component and the world coordinates of the family component in the BIM model; and taking the world coordinates of the to-be-instantiated drawing sub-component in the BIM model as the coordinate information of the to-be-instantiated drawing sub-component.
5. The method of claim 1, wherein obtaining family members of a predetermined type in the BIM model comprises:
acquiring family members in a BIM model;
and confirming the family member carrying the splitting identifier in the family member as the family member of the preset type.
6. The method according to claim 1, wherein obtaining template information corresponding to the to-be-instantiated drawing sub-component comprises:
acquiring identification information of the sub-component to be drawn;
acquiring a preset mapping relation, wherein the mapping relation is the mapping relation between the template information and the identification information;
and acquiring the template information according to the identification information and the mapping relation.
7. The method of claim 1, wherein rendering the to-be-instantiated rendered sub-component of the family component from the second set of data comprises:
and performing example drawing on the sub-component to be example drawn of the family component according to the second attribute information and the template information.
8. A component rendering apparatus, characterized in that the apparatus comprises:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring family members of preset types in the BIM model, and the family members comprise a drawing sub-member to be instantiated and a drawing sub-member to be merged;
the first generation module is used for combining the first attribute information of each sub-component contained in the vertex drawing sub-components to be combined to generate a first data set;
the second acquisition module is used for acquiring template information corresponding to the to-be-instantiated drawing sub-component and acquiring second attribute information of the to-be-instantiated drawing sub-component;
a second generating module, configured to generate a second data set according to the second attribute information and the template information;
and the rendering module is used for rendering the to-be-example drawing sub-component of the family component according to the second data set and rendering the to-be-merged vertex drawing sub-component of the family component according to the first data set.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the component rendering method of any one of claims 1 to 7 when executing a program stored on a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the component rendering method according to any one of claims 1 to 7.
CN202111651475.3A 2021-12-30 2021-12-30 Component rendering method and device, electronic equipment and storage medium Pending CN114443003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111651475.3A CN114443003A (en) 2021-12-30 2021-12-30 Component rendering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111651475.3A CN114443003A (en) 2021-12-30 2021-12-30 Component rendering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114443003A true CN114443003A (en) 2022-05-06

Family

ID=81365857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111651475.3A Pending CN114443003A (en) 2021-12-30 2021-12-30 Component rendering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114443003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116738771A (en) * 2023-08-15 2023-09-12 成都云中楼阁科技有限公司 Linkage design method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116738771A (en) * 2023-08-15 2023-09-12 成都云中楼阁科技有限公司 Linkage design method and device, storage medium and electronic equipment
CN116738771B (en) * 2023-08-15 2023-11-03 成都云中楼阁科技有限公司 Linkage design method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
TWI582616B (en) Formatting data by example
CN112035667A (en) Knowledge graph display method and device and terminal equipment
CN110377209B (en) Method and device for realizing visual flow configuration through dragging
CN109543209B (en) Management method and device for component database
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN110807213A (en) Method and related device for constructing three-dimensional BIM model elevation map
CN114443003A (en) Component rendering method and device, electronic equipment and storage medium
CN114445844A (en) Plate member identification method, device, equipment and storage medium
CN116682130A (en) Method, device and equipment for extracting icon information and readable storage medium
CN111523531A (en) Word processing method and device, electronic equipment and computer readable storage medium
CN114119939A (en) Data lightweight processing method and device, storage medium and electronic device
CN116137077B (en) Method and device for establishing electronic component library, electronic equipment and storage medium
CN114239683A (en) Data fusion processing method, system and equipment for power system
CN114969586A (en) BIM (building information modeling) graphic engine loading method and device based on WEB side
CN112839047A (en) Asset vulnerability scanning method, device, equipment and medium on cloud platform
CN111427544A (en) Software requirement document generation method and device, storage medium and electronic equipment
CN113468626B (en) Drawing generation method and device, electronic equipment and storage medium
CN115935909A (en) File generation method and device and electronic equipment
CN114283186A (en) Method and device for identifying object in engineering drawing, electronic equipment and storage medium
CN115623211A (en) Matrix scanning method and device
CN114549376A (en) Method, device, equipment and storage medium for calculating superposition of book graph and plan graph
CN112051958B (en) Drawing multi-screen terminal interaction method and related device
CN114756938A (en) Data processing method, device and equipment and readable storage medium
CN114036249A (en) Map data processing method, map data processing device, electronic equipment and medium
CN113592529A (en) Potential customer recommendation method and device for bond products

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230705

Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518063

Applicant after: Shenzhen Wanyi Digital Technology Co.,Ltd.

Address before: 519085 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Applicant before: WANYI TECHNOLOGY Co.,Ltd.