CN110781535A - Model plotting method and device, computer equipment and readable storage medium - Google Patents

Model plotting method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110781535A
CN110781535A CN201810848160.XA CN201810848160A CN110781535A CN 110781535 A CN110781535 A CN 110781535A CN 201810848160 A CN201810848160 A CN 201810848160A CN 110781535 A CN110781535 A CN 110781535A
Authority
CN
China
Prior art keywords
template
information
preset
initial
marking
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.)
Granted
Application number
CN201810848160.XA
Other languages
Chinese (zh)
Other versions
CN110781535B (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.)
Nanjing Runshijing Environmental Engineering Co ltd
Original Assignee
Xi'an Sea Square Network 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 Xi'an Sea Square Network Technology Co Ltd filed Critical Xi'an Sea Square Network Technology Co Ltd
Priority to CN201810848160.XA priority Critical patent/CN110781535B/en
Publication of CN110781535A publication Critical patent/CN110781535A/en
Application granted granted Critical
Publication of CN110781535B publication Critical patent/CN110781535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method, a device, computer equipment and a readable storage medium for plotting a model, wherein the method comprises the following steps: acquiring attribute information of a three-dimensional model, acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model, calculating template marking information matched with the initial chart template according to the initial chart template, and adjusting the template marking information by adopting a preset processing rule to obtain the chart template. The computer equipment can automatically acquire the effect of the plotting template according to the three-dimensional model, so that the plotting of the model reaches an automatic state, and the plotting efficiency of the computer equipment is improved.

Description

Model plotting method and device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a graph of a model, a computer device, and a readable storage medium.
Background
With the continuous development of social economy, the requirements of people on beauty and comfort of functional areas in living spaces are higher and higher, and in order to meet the requirements of people, the living spaces are usually required to be subjected to building design firstly and then constructed according to design results.
At present, when a designer designs a building of a living space, the operation of designing a model drawing is generally performed manually with reference to various standards.
However, in the conventional technology, the operation of plotting the model is complex, the labeling process is excessive, and a great deal of effort of a designer is required to ensure the completeness of plotting of the model, so that the plotting efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a computer device and a readable storage medium for plotting a model against the problems that the operation of plotting the model is complex, the labeling process is too much, and a great deal of effort is required by a designer to ensure the completeness of plotting of the model.
In a first aspect, an embodiment of the present invention provides a method for plotting a model, including:
acquiring attribute information of a three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model;
acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
calculating template marking information matched with the initial chart template according to the initial chart template;
and adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
In one embodiment, the step of obtaining an initial mapping template matched with the attribute information according to the attribute information of the three-dimensional model includes:
determining the type of the chart template according to the attribute information;
and determining the initial chart template according to the chart template type.
In one embodiment, the step of determining the initial chart template according to the chart template type comprises:
determining the arrangement mode of the initial chart template according to the chart template type;
and determining the arrangement of the contents to be displayed contained in the initial chart template according to the arrangement mode of the initial chart template.
In one embodiment, the calculating template marking information matched with the initial chart template according to the initial chart template includes:
acquiring the labeling information category of the labeling information in the three-dimensional model, the component structure corresponding to the labeling information and the area where the component structure is located;
and calculating template marking information matched with the initial chart template according to the marking information type, the component structure corresponding to the marking information, the area where the component structure is located and the size of a preset display area.
In one embodiment, the calculating, according to the category of the labeled information, the component structure corresponding to the labeled information, the area where the component structure is located, and the size of a preset display area, template labeled information matched with the initial chart template includes:
acquiring a preset marking standard;
and calculating the template marking information according to the preset marking standard, the component structure corresponding to the marking information, the area where the component structure is located and the size of a preset display area.
In one embodiment, after the calculating the template labeling information according to the preset labeling standard, and the component structure corresponding to the labeling information, the area where the component structure is located, and the size of the preset display area, the method further includes:
and calculating the display position of the template marking information in the preset display area and the occupied display area of the component structure in the preset display area according to the template marking information and the size of the preset display area.
In one embodiment, before the obtaining the drawing template, the method further includes:
judging whether the initial chart template contains error state information or not, wherein the error state information comprises any one or more of missed display, multiple display, display position error and display content error;
if not, outputting the chart template.
In one embodiment, the method further comprises:
acquiring the distribution density and alignment of the template marking information;
judging whether the distribution density and the alignment meet preset conditions or not;
and if the distribution density and the alignment meet the preset conditions, obtaining the chart template.
In one embodiment, if the distribution density and the alignment satisfy a preset condition, before obtaining the chart template, the method further includes:
and correcting the template marking information in the initial chart template according to a preset marking standard and the attribute information to obtain the chart template.
In a second aspect, an embodiment of the present invention provides an apparatus for mapping a model, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring attribute information of a three-dimensional model, and the attribute information comprises component structure information and space geometric information of the three-dimensional model;
the second acquisition module is used for acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
the calculation module is used for calculating template marking information matched with the initial chart template according to the initial chart template;
and the adjusting module is used for adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
In a third aspect, a computer device provided in an embodiment of the present invention includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and the processor implements the following steps when executing the computer program:
acquiring attribute information of a three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model;
acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
calculating template marking information matched with the initial chart template according to the initial chart template;
and adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, including a memory and a processor, where the memory stores a computer program executable on the processor, and the processor implements the following steps when executing the computer program:
acquiring attribute information of a three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model;
acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
calculating template marking information matched with the initial chart template according to the initial chart template;
and adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
According to the method and the device for drawing the model, the computer device and the readable storage medium, the computer device determines the initial drawing template matched with the attribute information according to the attribute information of the three-dimensional model, calculates the template marking information matched with the initial drawing template, and finally adjusts the template marking information by adopting the preset processing rule, so that the effect of drawing the template can be automatically obtained according to the three-dimensional model, the model can be drawn in an automatic state, and the drawing efficiency of the computer device is improved.
Drawings
FIG. 1 is a diagram illustrating an internal structure of a computer device according to an embodiment;
FIG. 2 is a flow diagram illustrating a method for charting a model provided by one embodiment;
FIG. 3 is a flowchart illustrating a specific process of obtaining an initial graph template matching attribute information according to another embodiment;
FIG. 4 is a flowchart providing specific steps for determining an initial chart template, according to one embodiment;
FIG. 5 is a flowchart illustrating a method for calculating template annotation information matching an initial graph template according to another embodiment;
FIG. 6 is a flowchart illustrating the detailed steps provided in one embodiment for computing template annotation information for matching with an initial graph template;
FIG. 7 is a flow diagram illustrating a method for charting a model according to another embodiment;
FIG. 8 is a flow diagram illustrating a method for charting a model provided by one embodiment;
FIG. 9 is a schematic diagram of a graph showing the structure of a model according to an embodiment;
FIG. 10 is a schematic diagram of a model of a modeling apparatus according to another embodiment;
FIG. 11 is a schematic diagram of a model of a modeling apparatus according to another embodiment;
FIG. 12 is a schematic diagram of a model of a modeling apparatus according to another embodiment;
fig. 13 is a schematic structural diagram of a drawing device of a model according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The model plotting method provided by the embodiment of the invention can be applied to the computer equipment shown in fig. 1, and the computer equipment comprises a processor, a memory, a network interface and a database which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store the attribute information in the present embodiment, and the description about the attribute information may refer to the contents of the method embodiments described below. The network interface of the computer device is used for communicating with an external terminal through a network connection. Optionally, the computer device may be a server, may be a PC, a personal digital assistant, other terminal devices such as a PAD, a mobile phone, and the like, a cloud, or a remote server, and the specific form of the computer device is not limited in this embodiment.
It should be noted that, in the method for drawing a graph of a model provided in the embodiment of the present invention, an execution subject may be a graph apparatus of the model, and the apparatus may be implemented as part of or all of a computer device by software, hardware, or a combination of software and hardware. The execution subjects of the method embodiments described below are described taking a computer device as an example.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention are further described in detail by the following embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
FIG. 2 is a flowchart illustrating a method for mapping a model according to an embodiment. The embodiment relates to a specific process of how the computer device obtains the graph template according to the three-dimensional model. As shown in fig. 2, the method includes:
s101, obtaining attribute information of the three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model.
Specifically, the computer device may obtain component structural information and spatial geometric information of the three-dimensional model. Alternatively, the three-dimensional model may be a room, a toilet, a kitchen, a pillar, or a composite model thereof. Illustratively, if the three-dimensional model is a stone wall surface column model, the three-dimensional model includes a stone material on each column surface, a pattern of each stone material, and three-dimensional models such as structures between the stone materials, main keels, auxiliary keels, pendant structures and the like. It should be noted that each three-dimensional model carries its own component structure information and spatial geometry information, where the three-dimensional model carries specific descriptions of its own component structure information and spatial geometry information as follows.
The component structure information of the three-dimensional model includes: and the shape corresponding to each type of component in the model and the self attribute information of the component. For example, if the three-dimensional model is a stone wall-surface pillar model, the shape corresponding to each type of component in the model may be represented as a structure composed of four cylindrical surfaces, the structure is a pillar, and if the three-dimensional model is a room model, the shape corresponding to each type of component in the model may be represented as a room composed of four wall surfaces. Optionally, the property information of the component may be represented by material information, process information, specification information, external dimension information, internal composition information, distribution information, quantity information, construction process information, design style information, and the like of the component. The overall dimension information refers to information such as length, width, height and thickness of the model. The internal composition information refers to the relationship between each component in the internal connection structure of the composition model. The distribution information refers to the distribution position, the distribution rule and the like of the model in the comprehensive model. The design style information includes Europe, Chinese, Japanese, American, Nordic, classical, modern, rural, and/or others. Illustratively, the three-dimensional model is a stone wall pillar model, and the attribute information is characteristic information of the stone wall pillar, which may include a length, a width, a shape, a material, a processing technology, a design style, and the like of the pillar. The above description of the component structure information of the model is not exhaustive, and the types of the component structure information and the like are different according to the model.
The spatial geometry information of the three-dimensional model may be characterized as information related to position information of the three-dimensional model in a three-dimensional space corresponding to the model, and optionally, the spatial geometry information of the three-dimensional model may be at least one of a spatial size and a geometric shape of the three-dimensional model. It should be noted that the spatial size of the three-dimensional model may include the spatial size of the model itself, the position of the model in the space, and the relative position between the space where the model is located and other models, and the geometric shape of the three-dimensional model may be a basic shape such as a rectangular parallelepiped, a cone, or a geometric shape composed of a plurality of basic shapes.
Based on the above, the component structure information and the spatial geometry information of the three-dimensional model may be obtained as follows: a user automatically obtains the three-dimensional model through a path of a prestored three-dimensional model database in a mode of clicking and inputting the three-dimensional model by a mouse and displays the three-dimensional model on a display screen of computer equipment; the computer device then identifies the three-dimensional model, thereby obtaining component structure information and spatial geometry information of the three-dimensional model.
And S102, acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model.
Specifically, the attribute information of the three-dimensional model has corresponding initial mapping templates, for example, if the three-dimensional model is a stone wall surface pillar model, the attribute information of the pillar model may be a pillar stone, and the stone has a corresponding initial mapping template. It is to be understood that different initial chart templates may be determined according to different attribute information.
And S103, calculating template marking information matched with the initial chart template according to the initial chart template.
Specifically, the template marking information may be characterized as the content to be displayed in the initial chart template corresponding to the attribute information. For example, if the three-dimensional model is a wall pillar made of stone, the content to be displayed may be the size of the pillar stone, the texture of the stone, the connection and hanging structure of the stone, and the like. It should be noted that the template tagging information may be all tagging information of the content to be displayed in the three-dimensional model, or may be part tagging information of the content to be displayed in the three-dimensional model.
And S104, adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
Specifically, the computer device adjusts the template marking information according to the display position guidance rule and the conflict processing rule to obtain the final map making template. Optionally, the adjustment may be characterized as an adjustment of a labeling position of the labeling information. Optionally, the adjustment mode may be that the size of the preset display area in the preset graph template is associated with the size of the real object display area of the three-dimensional model, and the labeling information with a large influence range is preferentially adjusted according to the association degree sorting.
It should be noted that the display position guidance rule is a display position guidance rule of the annotation information, which is constructed according to specifications such as national standards and industry standards and by combining with high-efficiency project implementation experience of experts in the industry, and the display position guidance rule includes a rule base composed of guidance opinions of the placement positions of the annotation information in a preset display area. The conflict processing rule is a rule base formed by summarizing conflict situations which may occur in the design implementation process according to design implementation experience in the industry, and the conflict processing rule includes one or more processing modes which correspond to specific display components which may occur when the solid three-dimensional model is built or the display components conflict with the external environment and the like.
According to the graph plotting method of the model, the attribute information of the three-dimensional model is obtained, the initial graph plotting template matched with the attribute information is obtained according to the attribute information of the three-dimensional model, the template marking information matched with the initial graph plotting template is calculated according to the initial graph plotting template, the template marking information is adjusted by adopting a preset processing rule, and therefore the graph plotting template is obtained.
Fig. 3 is a flowchart of a graph plotting method of a model according to another embodiment, which relates to a specific process of acquiring, by a computer device, an initial graph plotting template matched with the attribute information. On the basis of the above embodiment, as shown in fig. 3, the above S102 may be implemented by:
s201, determining the type of the graph making template according to the attribute information.
Specifically, the computer device determines the type of the corresponding chart template according to the acquired attribute information of the three-dimensional model. Optionally, the types of the map template may be assembly drawings, machining drawings, construction drawings, as-built drawings, elevation drawings, section drawings, large-scale drawings, node detail drawings, system drawings and the like. It should be noted that the types of the drawing template corresponding to different attribute information are different, and one attribute information may correspond to one drawing template type, and may also correspond to a plurality of drawing template types.
S202, determining the initial chart template according to the chart template type.
Specifically, the computer device determines initial chart templates corresponding to different chart model types according to the chart model types corresponding to the acquired attribute information. It should be noted that the content to be displayed in the initial chart template corresponding to different chart template types may be different or the same, and the form requirement of the content to be displayed is determined according to the chart template types, and may be the same or different.
According to the method for drawing the model, the computer equipment can determine the type of the drawing template according to the attribute information of the three-dimensional model, and automatically determine the initial drawing template according to the type of the drawing template without manual participation, so that the drawing efficiency of the model is improved.
In one embodiment, as shown in fig. 4, the determining, by the computer device in S202, the initial chart template according to the chart template type may be implemented by the following method, including:
s2021, determining the arrangement mode of the initial chart template according to the chart template type.
Specifically, the type of the arrangement mode may be a regular arrangement mode or an irregular arrangement mode.
S2022, determining the arrangement of the contents to be displayed contained in the initial chart template according to the arrangement mode of the initial chart template.
Specifically, the computer device may determine the arrangement of the to-be-displayed content included in the initial chart template according to the arrangement manner of the obtained initial chart template. For example, if the three-dimensional model is a stone wall column model, the content to be displayed may be the size, the distribution position, the connection structure between the stones in the column, etc., and the arrangement of the content to be displayed may be the size, the distribution position, the distribution structure between the stones in the column, etc.
According to the graph plotting method of the model provided by the embodiment, the computer equipment can determine the arrangement mode of the initial graph plotting template according to the type of the graph plotting template, and further determine the arrangement of the contents to be displayed contained in the initial graph plotting template.
Fig. 5 is a flowchart of a graph plotting method of a model according to another embodiment, which relates to a specific process of calculating template annotation information matched with an initial graph plotting template by a computer device. On the basis of the above embodiment, as shown in fig. 5, the above S103 may be implemented by:
and S1031, acquiring the labeling information type of the labeling information in the three-dimensional model, the component structure corresponding to the labeling information and the area where the component structure is located.
Specifically, the above-mentioned marking information can be for waiting to show the attribute information of content in the initial map template, exemplarily, if the three-dimensional model is stone material wall post model, then the marking information can be for the model of every stone material, the size of a dimension, the distribution position, the mode of arrangement etc., still can be for the whole stone material size of a cylinder, the distribution position, the mode of arrangement etc., and the size of stone material the same is same marking information classification, the distribution position the same is same marking information classification, if the marking information is the relevant marking information of a cylinder, then the subassembly structure that marking information corresponds can be for the structure that four cylinders are constituteed, this structure is a post. Optionally, the area where the assembly structure is located may be a specific position where the pillar is located in the physical environment.
S1032, calculating template marking information matched with the initial mapping template according to the marking information type, the component structure corresponding to the marking information, the area where the component structure is located and the size of a preset display area.
Specifically, the computer device calculates template marking information matched with the size of the display area preset in the initial plotting template according to the obtained marking information category, the component structure corresponding to the marking information, the area where the component structure is located, the size of the display area preset in the initial plotting template, the national standard, the industrial standard and other specifications.
It can be understood that, if the three-dimensional model includes four stone wall surface pillar models, the component structure information of each pillar may be the same or different, but the spatial position of each pillar is necessarily different, then the template marking information in the initial mapping template corresponding to each pillar is different, and the pillar information corresponding to the template marking information in the initial mapping template is obtained according to the specifications of national standards, industry standards and the like.
In the graph plotting method of the model provided by this embodiment, the computer device obtains the label information type of the label information in the three-dimensional model, the component structure corresponding to the label information, and the area where the component structure is located, and calculates the template label information matched with the initial graph plotting template according to the size of the preset display area.
In one embodiment, as shown in fig. 6, the calculating, by the computer device in S1032, the template tagging information matching the initial graph template may be implemented by the following method, including:
s1132, acquiring a preset marking standard.
Specifically, the computer device obtains a labeling standard preset in the initial map drawing template according to the national standard, the industry standard and other specifications.
It should be noted that, according to the specifications of the national standard, the industry standard and the like, different initial map templates have different preset labeling standards. Illustratively, if the three-dimensional model is a stone wall surface column model, the preset marking standard can be a position, a marking mode, a marking type and the like for marking the size of each stone.
And S1232, calculating the template marking information according to the preset marking standard, the component structure corresponding to the marking information, the area where the component structure is located and the size of a preset display area.
Specifically, the computer device calculates the template marking information according to the obtained preset marking standard, and the component structure corresponding to the marking information, the area where the component structure is located, and the size of the preset display area. Optionally, the template marking information may be a marking position of the marking information.
According to the graph plotting method of the model, the computer equipment obtains the preset marking standard, and the template marking information is calculated according to the preset marking standard, the component structure corresponding to the marking information, the area where the component structure is located and the size of the preset display area.
In one embodiment, after the computing, by the computer device, the template tagging information according to the preset tagging standard, and the component structure corresponding to the tagging information, the area where the component structure is located, and the size of the preset display area, the computing further includes: and calculating the display position of the template marking information in the preset display area and the occupied display area of the component structure in the preset display area according to the template marking information and the size of the preset display area.
Specifically, the computer device calculates, according to the size of the preset display area in the initial plotting template and the acquired template marking information, a display position corresponding to the template marking information in the preset display area in the initial plotting template, and a display area occupied by the component structure in the preset display area in the initial plotting template.
It should be noted that the display areas occupied by different component structures in the preset display area in the initial drawing template may be the same or different. Optionally, the display area occupied by the preset display area may occupy the size of the display area for specific content to be displayed, or may occupy a specific position of the display area.
According to the graph plotting method of the model provided by the embodiment, the computer equipment calculates the display position of the template marking information in the preset display area and the display area occupied by the component structure in the preset display area according to the template marking information and the size of the preset display area.
Fig. 7 is a schematic flowchart of a graph plotting method of a model according to another embodiment, where the embodiment relates to that before obtaining a graph plotting template, the computer device further includes:
s1041, judging whether the initial chart template contains error state information or not, wherein the error state information comprises any one or more of missed display, multiple display, error display position and error display content.
Specifically, the computer device may determine whether the labeled information in the initial chart template includes any one or more of missed display, multiple display, wrong display position, wrong display content, and the like, by using the relevant actual information of national standard, industrial standard, actual construction habit of industry, physics, space, production, processing, installation, and the like.
S1042, if not, outputting the graph template.
Specifically, if the computer device determines that the labeling information in the initial chart template does not include any one or more of missed display, multiple display, wrong display position and wrong display content, the final chart template is output.
According to the graph plotting method of the model provided by the embodiment, the computer equipment can automatically judge whether the label information in the initial graph plotting template contains error state information, and the process does not need manual participation, so that the process achieves automatic processing, the processing time is reduced, and the graph plotting efficiency is improved.
In one embodiment, as shown in fig. 8, before outputting the chart template, the computer device further includes:
s1142, obtaining the distribution density and the alignment of the template marking information.
It should be noted that the distribution density may represent the size of the display area occupied by the template label information, and the alignment may be represented by that the template label information in the same column or the same row in the chart template is orderly.
And S1242, judging whether the distribution density and the alignment meet preset conditions.
Specifically, the preset conditions refer to distribution density and alignment conditions of template marking information preset according to specifications such as national standards and industry standards. Optionally, the preset condition may be a specific specification corresponding to the distribution density and the alignment, or may be a specified range.
S1342, if the distribution density and the alignment meet preset conditions, obtaining the chart template.
Specifically, if the computer device determines that the distribution density and the alignment satisfy the distribution density and the alignment condition of the template marking information preset according to the standard requirements such as national standards and industrial standards, the plotting template can be obtained.
According to the plotting method of the model provided by the embodiment, the computer equipment acquires the distribution density and the alignment of the template marking information and judges whether the distribution density and the alignment meet the preset conditions or not, if so, the plotting template can be obtained, and the computer can automatically process the plotting template without manual participation in the process, so that the process achieves automatic processing, the processing time is reduced, and the plotting efficiency is improved.
In one embodiment, before obtaining the chart template if the distribution density and the alignment satisfy the preset condition in S1342, the method further includes: and correcting the template marking information in the initial chart template according to a preset marking standard and the attribute information to obtain the chart template.
Specifically, the computer device corrects template marking information in the initial plotting template based on a display position guide rule, a conflict processing rule, industry high-efficiency implementation experience, a preset marking standard in the initial plotting template acquired according to the national standard, the industry standard and other specifications, and attribute information of the three-dimensional model to obtain the plotting template. It should be noted that the revised template marking information conforms to the specifications of the national standard, the industry standard and the like.
According to the graph plotting method of the model, the computer equipment corrects the template marking information in the initial graph plotting template according to the preset marking standard and the attribute information to obtain the graph plotting template, and the computer can automatically process the graph plotting template without manual participation, so that the process achieves automatic processing, the processing time is shortened, and the graph plotting efficiency is improved.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
For specific definition of the plotting device of the model, reference may be made to the definition of the plotting method of the model above, and details are not repeated here. The various modules in the graph means of the model of computer apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
FIG. 9 is a schematic diagram of a graph showing a model according to an embodiment. As shown in fig. 9, the apparatus includes: a first obtaining module 11, a second obtaining module 12, a calculating module 13 and an adjusting module 14.
Specifically, the first obtaining module 11 is configured to obtain attribute information of a three-dimensional model, where the attribute information includes component structure information and spatial geometry information of the three-dimensional model;
the second obtaining module 12 is configured to obtain an initial plotting template matched with the attribute information according to the attribute information of the three-dimensional model;
the calculation module 13 is configured to calculate template tagging information matched with the initial chart template according to the initial chart template;
and the adjusting module 14 is configured to adjust the template marking information to obtain a chart template.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a graph plotting device of a model provided by another embodiment. On the basis of the embodiment shown in fig. 9, as shown in fig. 10, the second obtaining module 12 includes: a first determining unit 121 and a second determining unit 122.
Specifically, the first determining unit 121 is configured to determine the chart template type according to the attribute information;
a second determining unit 122, configured to determine the initial chart template according to the chart template type.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
With continuing reference to fig. 10, based on the embodiment shown in fig. 10, the second determining unit 122 includes: a first determination subunit 1221 and a second determination subunit 1222.
Specifically, the first determining subunit 1221 is configured to determine, according to the type of the chart template, an arrangement manner of the initial chart template;
a second determining subunit 1222, configured to determine, according to the arrangement manner of the initial mapping template, the arrangement of the contents to be displayed included in the initial mapping template.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a graph plotting device of a model provided by another embodiment. On the basis of the embodiment shown in fig. 9, as shown in fig. 11, the calculating module 13 includes: an acquisition unit 131 and a calculation unit 132.
Specifically, the obtaining unit 131 is configured to obtain a labeling information category of labeling information in the three-dimensional model, a component structure corresponding to the labeling information, and an area where the component structure is located;
a calculating unit 132, configured to calculate template labeling information matched with the initial chart template according to the type of the labeling information, the component structure corresponding to the labeling information, the area where the component structure is located, and the size of a preset display area.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
With continuing reference to fig. 11, based on the embodiment shown in fig. 11, the calculating unit 132 includes: a first acquisition subunit 1321 and a calculation subunit 1322.
Specifically, the first obtaining subunit 1321 is configured to obtain a preset labeling standard;
and the calculating subunit 1322 is configured to calculate the template marking information according to the preset marking standard, and the component structure corresponding to the marking information, the area where the component structure is located, and the size of the preset display area.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
With continued reference to fig. 11, the calculating unit 132 further includes: a calculation subunit 1333.
Specifically, the calculating subunit 1333 is configured to calculate, according to the template marking information and the preset display area size, a display position of the template marking information in the preset display area, and a display area occupied by the component structure in the preset display area.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
As shown in fig. 12, the adjusting module 14 includes: a judging unit 141 and an output unit 142.
Specifically, the determining unit 141 is configured to determine whether the initial chart template includes error status information, where the error status information includes any one or more of missed display, multiple display, display position error, and display content error;
an output unit 142, configured to output the chart template according to a negative result of the determination unit 141.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
As shown in fig. 13, on the basis of the embodiment shown in fig. 12, the output unit 142 includes: a second obtaining sub-unit 1421, a determining sub-unit 1422, and a third obtaining sub-unit 1423.
Specifically, the second obtaining subunit 1421 is configured to obtain the distribution density and the alignment of the template marking information;
a determining subunit 1422, configured to determine whether the distribution density and the alignment satisfy a preset condition;
a third obtaining subunit 1423, configured to obtain the mapping template if the distribution density and the alignment satisfy a preset condition.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
With reference to fig. 13, the third obtaining subunit 1423 is specifically configured to modify the template marking information in the initial mapping template according to a preset marking standard and the attribute information, so as to obtain the mapping template.
The graph plotting device of the model provided in this embodiment may implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing processing data of the model information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a graph method of a model.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring attribute information of a three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model;
acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
calculating template marking information matched with the initial chart template according to the initial chart template;
and adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
The implementation principle and technical effect of the computer device provided in this embodiment are similar to those of the method embodiments described above, and are not described herein again.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring attribute information of a three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model;
acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
calculating template marking information matched with the initial chart template according to the initial chart template;
and adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for mapping a model, comprising:
acquiring attribute information of a three-dimensional model, wherein the attribute information comprises component structure information and space geometric information of the three-dimensional model;
acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
calculating template marking information matched with the initial chart template according to the initial chart template;
and adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
2. The method according to claim 1, wherein the step of obtaining an initial mapping template matched with the attribute information according to the attribute information of the three-dimensional model comprises:
determining the type of the chart template according to the attribute information;
and determining the initial chart template according to the chart template type.
3. The method of claim 2, wherein the step of determining the initial chart template based on the chart template type comprises:
determining the arrangement mode of the initial chart template according to the chart template type;
and determining the arrangement of the contents to be displayed contained in the initial chart template according to the arrangement mode of the initial chart template.
4. The method of claim 1, wherein said calculating template label information matching said initial chart template based on said initial chart template comprises:
acquiring the labeling information category of the labeling information in the three-dimensional model, the component structure corresponding to the labeling information and the area where the component structure is located;
and calculating template marking information matched with the initial chart template according to the marking information type, the component structure corresponding to the marking information, the area where the component structure is located and the size of a preset display area.
5. The method according to claim 4, wherein the calculating template labeling information matched with the initial mapping template according to the labeling information category, the component structure corresponding to the labeling information, the area where the component structure is located and the size of a preset display area comprises:
acquiring a preset marking standard;
and calculating the template marking information according to the preset marking standard, the component structure corresponding to the marking information, the area where the component structure is located and the size of a preset display area.
6. The method according to claim 5, wherein after calculating the template labeling information according to the preset labeling standard, and the component structure corresponding to the labeling information, the area where the component structure is located, and the size of a preset display area, the method further comprises:
and calculating the display position of the template marking information in the preset display area and the occupied display area of the component structure in the preset display area according to the template marking information and the size of the preset display area.
7. The method of claim 1, prior to said deriving an graphing template, further comprising:
judging whether the initial chart template contains error state information or not, wherein the error state information comprises any one or more of missed display, multiple display, display position error and display content error;
if not, outputting the chart template.
8. The method of claim 7, further comprising, prior to outputting the chart template:
acquiring the distribution density and alignment of the template marking information;
judging whether the distribution density and the alignment meet preset conditions or not;
and if the distribution density and the alignment meet the preset conditions, obtaining the chart template.
9. The method of claim 8, wherein before obtaining the mapping template if the distribution density and alignment satisfy a predetermined condition, the method further comprises:
and correcting the template marking information in the initial chart template according to a preset marking standard and the attribute information to obtain the chart template.
10. An apparatus for mapping a model, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring attribute information of a three-dimensional model, and the attribute information comprises component structure information and space geometric information of the three-dimensional model;
the second acquisition module is used for acquiring an initial chart template matched with the attribute information according to the attribute information of the three-dimensional model;
the calculation module is used for calculating template marking information matched with the initial chart template according to the initial chart template;
and the adjusting module is used for adjusting the template marking information by adopting a preset processing rule to obtain the plotting template, wherein the preset processing rule comprises a display position guide rule and a conflict processing rule.
11. A computer 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 of the method of any one of claims 1 to 9 when executing the computer program.
12. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
CN201810848160.XA 2018-07-27 2018-07-27 Model plotting method and device, computer equipment and readable storage medium Active CN110781535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810848160.XA CN110781535B (en) 2018-07-27 2018-07-27 Model plotting method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810848160.XA CN110781535B (en) 2018-07-27 2018-07-27 Model plotting method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110781535A true CN110781535A (en) 2020-02-11
CN110781535B CN110781535B (en) 2023-03-17

Family

ID=69377261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810848160.XA Active CN110781535B (en) 2018-07-27 2018-07-27 Model plotting method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110781535B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339659A (en) * 2020-02-25 2020-06-26 上汽通用汽车有限公司 Method and device for quickly marking stepped hole in three-dimensional model
CN112541240A (en) * 2020-12-26 2021-03-23 晟通科技集团有限公司 Part drawing method, computer device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB8718181D0 (en) * 1986-08-04 1987-09-09 Fmc Corp Computer integrated gaging system
JP2004185072A (en) * 2002-11-29 2004-07-02 Canon Inc 3d cad device and attribute information processing method
CN102073768A (en) * 2011-01-13 2011-05-25 中国水电顾问集团成都勘测设计研究院 Automatic arch dam pouring block plotting device and plotting method
CN103838933A (en) * 2014-03-18 2014-06-04 湖南大学 Three-dimensional model integrating and labeling method based on digital technology
CN104978549A (en) * 2014-04-03 2015-10-14 北京邮电大学 Three-dimensional face image feature extraction method and system
CN105117514A (en) * 2015-07-24 2015-12-02 上海森松制药设备工程有限公司 Modular automatic drawing output method and system
WO2016034027A1 (en) * 2014-09-01 2016-03-10 深圳汇林达科技有限公司 Method and system for formwork matching of three-dimensional spatial software
CN107492135A (en) * 2017-08-21 2017-12-19 维沃移动通信有限公司 A kind of image segmentation mask method, device and computer-readable recording medium
CN107908843A (en) * 2017-11-07 2018-04-13 杭州格原信息技术有限公司 Management system based on title block information extraction
CN108122277A (en) * 2016-11-28 2018-06-05 华为技术有限公司 A kind of modeling method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB8718181D0 (en) * 1986-08-04 1987-09-09 Fmc Corp Computer integrated gaging system
JP2004185072A (en) * 2002-11-29 2004-07-02 Canon Inc 3d cad device and attribute information processing method
CN102073768A (en) * 2011-01-13 2011-05-25 中国水电顾问集团成都勘测设计研究院 Automatic arch dam pouring block plotting device and plotting method
CN103838933A (en) * 2014-03-18 2014-06-04 湖南大学 Three-dimensional model integrating and labeling method based on digital technology
CN104978549A (en) * 2014-04-03 2015-10-14 北京邮电大学 Three-dimensional face image feature extraction method and system
WO2016034027A1 (en) * 2014-09-01 2016-03-10 深圳汇林达科技有限公司 Method and system for formwork matching of three-dimensional spatial software
CN105117514A (en) * 2015-07-24 2015-12-02 上海森松制药设备工程有限公司 Modular automatic drawing output method and system
CN108122277A (en) * 2016-11-28 2018-06-05 华为技术有限公司 A kind of modeling method and device
CN107492135A (en) * 2017-08-21 2017-12-19 维沃移动通信有限公司 A kind of image segmentation mask method, device and computer-readable recording medium
CN107908843A (en) * 2017-11-07 2018-04-13 杭州格原信息技术有限公司 Management system based on title block information extraction

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张伟等: "特征造型CAD中尺寸标注的自动化", 《郑州工业大学学报》 *
窦景艳等: "关于土建专业三维绘图的应用研究", 《吉林建筑工程学院学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339659A (en) * 2020-02-25 2020-06-26 上汽通用汽车有限公司 Method and device for quickly marking stepped hole in three-dimensional model
CN111339659B (en) * 2020-02-25 2023-06-13 上汽通用汽车有限公司 Rapid labeling method and device for stepped holes in three-dimensional model
CN112541240A (en) * 2020-12-26 2021-03-23 晟通科技集团有限公司 Part drawing method, computer device and storage medium

Also Published As

Publication number Publication date
CN110781535B (en) 2023-03-17

Similar Documents

Publication Publication Date Title
CN110991649A (en) Deep learning model building method, device, equipment and storage medium
CN113094770B (en) Drawing generation method and device, computer equipment and storage medium
CN110167756A (en) For constructing the division based on building direction of physical objects by increasing material manufacturing
CN110781535B (en) Model plotting method and device, computer equipment and readable storage medium
CN112182886B (en) Engineering model generation method and device, computer equipment and storage medium
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
CN111191800B (en) Equipment model checking method and device, computer equipment and storage medium
CN110363854B (en) Curved surface template segmentation method and device, computer equipment and storage medium
CN109325259B (en) Data processing method, system, terminal and medium applied to 3D modeling
CN112365590A (en) Drawing generation method and device, computer equipment and storage medium
CN109409318B (en) Statistical model training method, statistical device and storage medium
CN114692250A (en) Method and device for reinforcing ribs of wall body and computer equipment
CN116630468A (en) Two-dimensional drawing generation method and device, storage medium and electronic equipment
CN111178126A (en) Target detection method, target detection device, computer equipment and storage medium
CN112836265B (en) Interior wall generation method and device, computer equipment and storage medium
CN110889153A (en) Model adjusting method and device, computer equipment and storage medium
CN112800527A (en) Structural beam steel bar information generation method based on building information model and related device
CN111324922A (en) Method and device for generating floor tile model, computer equipment and storage medium
CN110648400B (en) Space quantization method of model, mapping relation establishment method, device and equipment
CN115471111A (en) Work order management method based on building information model and intelligent construction site
US10204184B2 (en) Apparatus and method for modeling cultural heritage building
CN114092641A (en) Method, device and equipment for generating wiring board drawing and readable storage medium
CN110211230B (en) Space planning model integration method and device, computer equipment and storage medium
CN111046472B (en) Method, device, computer equipment and storage medium for displaying model component information
CN110751715B (en) Model processing method, device, computer equipment and readable storage medium

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

Effective date of registration: 20240110

Address after: 210000, Room 015, Building 2, Shuiyuanju, Qinhuai District, Nanjing City, Jiangsu Province

Patentee after: Nanjing Runshijing Environmental Engineering Co.,Ltd.

Address before: 710003 Room 301, Central Zone, National E-Commerce Demonstration Base, No. 528, Tianguba Road, Software New Town, High-tech Zone, Xi'an City, Shaanxi Province

Patentee before: XI'AN SEA2 NETWORK TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right