CN116188629A - Method, electronic equipment and medium for generating decoration drawing reference - Google Patents

Method, electronic equipment and medium for generating decoration drawing reference Download PDF

Info

Publication number
CN116188629A
CN116188629A CN202211599104.XA CN202211599104A CN116188629A CN 116188629 A CN116188629 A CN 116188629A CN 202211599104 A CN202211599104 A CN 202211599104A CN 116188629 A CN116188629 A CN 116188629A
Authority
CN
China
Prior art keywords
priming
point
lead
leads
area
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
CN202211599104.XA
Other languages
Chinese (zh)
Other versions
CN116188629B (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.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing 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 Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN202211599104.XA priority Critical patent/CN116188629B/en
Publication of CN116188629A publication Critical patent/CN116188629A/en
Application granted granted Critical
Publication of CN116188629B publication Critical patent/CN116188629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The embodiment of the invention discloses a method for generating decoration drawing priming, electronic equipment and a storage medium. The method comprises the following steps: determining an injection object and injection content of the injection object in a decoration drawing, wherein the injection content comprises text description information of the injection object, and the injection object comprises a point or a surface; determining an priming starting point of the priming object; and leading out a lead from the lead starting point, and displaying the lead content at the end part of the lead. According to the embodiment of the invention, the text description information implemented as the long text content is displayed in an introduction mode, so that the display efficiency is improved. Moreover, the priming is presented in a decentralized manner, reducing visual interference between priming. In addition, the formation of intersections between the leads is avoided.

Description

Method, electronic equipment and medium for generating decoration drawing reference
Technical Field
The embodiment of the invention relates to the technical field of decoration drawing design, in particular to a method for generating decoration drawing introduction, electronic equipment and a storage medium.
Background
With the rapid development of the home improvement industry in recent years, higher demands are being made on the ease and accuracy of construction drawings. In the decoration process, a construction drawing is a foundation for construction, and if the drawing is imperfect or unclear, the construction may be affected.
In the prior art, the decoration design software only carries out simple marking on the scales of each construction item.
However, such labeling is relatively single. For complex construction items, text contents such as construction technology, detailed parameters of main materials and the like cannot be presented. Therefore, more auxiliary documents are needed in the construction process to complete the processes of material ordering, construction process confirmation and the like. In the process, the complexity of information acquisition is increased, and extra workload is added to the field workers for acquiring complete information.
Disclosure of Invention
The embodiment of the invention provides a method for generating decoration drawing priming, electronic equipment and a storage medium.
The technical scheme of the embodiment of the invention is as follows:
a method of generating a decoration drawing guide, comprising:
determining an injection object and injection content of the injection object in a decoration drawing, wherein the injection content comprises text description information of the injection object, and the injection object comprises a point or a surface;
determining an priming starting point of the priming object;
and leading out a lead from the lead starting point, and displaying the lead content at the end part of the lead.
In an exemplary embodiment, the determining the priming start point of the priming object includes:
in response to the priming object being a point, determining the point as the priming start point;
determining the priming start point on a horizontal centerline of the face in response to the priming object being a face and the width of the face being less than a predetermined threshold;
in response to the priming object being a face and the width of the face being greater than or equal to the threshold, the priming start point is determined on two perpendicular lines at the same distance from a perpendicular centerline of the face.
In an exemplary embodiment, the determining the priming start point on two perpendicular lines at the same distance from a perpendicular centerline of the face in response to the priming object being a face and the width of the face being greater than or equal to the threshold value comprises:
determining a center point of the face in response to the priming object being a face and a width of the face being greater than or equal to the threshold;
determining a first coordinate mean value of the central point and other priming starting points of other priming objects in the decoration drawing in the horizontal axis direction;
selecting one vertical line from the two vertical lines based on the first coordinate mean;
determining the priming start point on the selected vertical line; further comprises:
calculating a second coordinate mean value of the priming start point and the other priming start points in the transverse axis direction;
classifying the priming start point and the other priming start points into a left priming area or a right priming area respectively based on the second coordinate mean value, wherein a lead of the priming start point classified into the left priming area extends leftwards; leads classified as priming start points in the right priming region extend rightward.
In an exemplary embodiment, the determining the priming start point on the selected vertical line comprises:
moving a virtual point on the selected vertical line such that when the virtual point moves to a target position: the minimum distance between the virtual point and any one of the other priming starting points has a maximum value;
and determining the target position as the position of the priming start point.
In an exemplary embodiment, further comprising:
calculating a third coordinate mean value of all the priming starting points in the left priming area in the longitudinal axis direction and a fourth coordinate mean value of all the priming starting points in the right priming area in the longitudinal axis direction;
dividing the left priming area into an upper left area and a lower left area based on the third coordinate mean, wherein for all priming start points in the upper left area, a lead wire extends from bottom to top; for all the priming starting points in the lower left area, the leads extend from top to bottom;
dividing the right side priming area into an upper right area and a lower right area based on the fourth coordinate mean value, wherein leads extend from bottom to top for all priming starting points in the upper right area; for all priming starting points in the lower right region, the leads extend from top to bottom.
In an exemplary embodiment, further comprising:
traversing all the leads to determine the leads that cross each other;
and carrying out position exchange on the lead content of the mutually intersected leads until all the leads are not intersected.
In an exemplary embodiment, further comprising:
after the position of the lead contents of the mutually intersecting leads is exchanged, the position of the lead after the position exchange is shifted based on the position-exchanged lead contents.
In an exemplary embodiment, the performing the position shift on the lead after the position exchange based on the position-exchanged priming content includes: and performing position movement on the leads after the position exchange so that the leads after the position movement maintain the spacing between the leads before the position exchange and the adjacent leads.
An apparatus for generating a decoration drawing guide, comprising:
the first determining module is used for determining an injection object and injection content of the injection object in a decoration drawing, wherein the injection content comprises text description information of the injection object, and the injection object comprises a point or a surface;
the second determining module is used for determining an injection starting point of the injection object;
and the display module is used for leading out a lead from the lead starting point and displaying the lead content at the end part of the lead.
In an exemplary embodiment, a second determining module is configured to determine, when the priming object is a point, the point as the priming start point; determining the priming start point on a horizontal centerline of the face when the priming object is a face and the width of the face is less than a predetermined threshold; when the priming object is a face and the width of the face is greater than or equal to the threshold, the priming start point is determined on two side vertical lines at the same distance from the vertical center line of the face.
In an exemplary embodiment, a display module is configured to determine a center point of the face when the priming object is a face and a width of the face is greater than or equal to the threshold; determining a first coordinate mean value of the central point and other priming starting points of other priming objects in the decoration drawing in the horizontal axis direction; selecting one vertical line from the two vertical lines based on the first coordinate mean; determining the priming start point on the selected vertical line; calculating a second coordinate mean value of the priming start point and the other priming start points in the transverse axis direction; classifying the priming start point and the other priming start points into a left priming area or a right priming area respectively based on the second coordinate mean value, wherein a lead of the priming start point classified into the left priming area extends leftwards; leads classified as priming start points in the right priming region extend rightward.
In an exemplary embodiment, the display module is configured to move a virtual point on the selected vertical line such that when the virtual point moves to a target position: the minimum distance between the virtual point and any one of the other priming starting points has a maximum value; and determining the target position as the position of the priming start point.
In an exemplary embodiment, the display module is further configured to: calculating a third coordinate mean value of all the priming starting points in the left priming area in the longitudinal axis direction and a fourth coordinate mean value of all the priming starting points in the right priming area in the longitudinal axis direction; dividing the left priming area into an upper left area and a lower left area based on the third coordinate mean, wherein for all priming start points in the upper left area, a lead wire extends from bottom to top; for all the priming starting points in the lower left area, the leads extend from top to bottom; dividing the right side priming area into an upper right area and a lower right area based on the fourth coordinate mean value, wherein leads extend from bottom to top for all priming starting points in the upper right area; for all priming starting points in the lower right region, the leads extend from top to bottom.
In an exemplary embodiment, the display module is further configured to: judging whether the leads are crossed with each other or not; and (5) exchanging the positions of the lead injection contents of the mutually intersected leads.
An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement a method of generating a decorative drawing reference as described in any one of the above.
A computer readable storage medium having stored thereon computer instructions which when executed by a processor implement a method of generating a decorative drawing reference as claimed in any one of the preceding claims.
A computer program product comprising computer instructions which, when executed by a processor, implement a method of generating a decorative drawing reference as claimed in any one of the preceding claims.
According to the technical scheme, in the embodiment of the invention, the priming objects and the priming contents of the priming objects in the decoration drawing are determined, wherein the priming contents comprise text description information of the priming objects, and the priming objects comprise points or surfaces; determining an injection starting point of an injection object; and drawing the lead from the starting point of the lead, and displaying the content of the lead at the end part of the lead. According to the embodiment of the invention, the text description information which can be implemented as the long text content is displayed in an introduction mode, so that the display efficiency is improved. Moreover, the priming is presented in a decentralized manner, reducing visual interference. In addition, the formation of intersections between the leads can also be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an exemplary flow chart of a method of generating a decorative drawing reference in an embodiment of the invention.
Fig. 2 is a schematic view of the horizontal center line of an embodiment of the present invention.
Fig. 3 is a schematic view of two side vertical lines of an embodiment of the present invention.
FIG. 4 is a schematic diagram of determining an priming start point in an embodiment of the present invention.
Fig. 5 is a schematic diagram of determining an upper left region and a lower left region according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of an embodiment of the present invention with cross-leads removed.
FIG. 7 is an exemplary flow chart showing priming in a finishing drawing in accordance with an embodiment of the present invention.
Fig. 8 is an exemplary block diagram of an apparatus for generating a decoration drawing reference according to an embodiment of the present invention.
Fig. 9 is an exemplary structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent.
For simplicity and clarity of description, the following description sets forth aspects of the invention by describing several exemplary embodiments. Numerous details in the embodiments are provided solely to aid in the understanding of the invention. It will be apparent, however, that the embodiments of the invention may be practiced without limitation to these specific details. Some embodiments are not described in detail in order to avoid unnecessarily obscuring aspects of the present invention, but rather only to present a framework. Hereinafter, "comprising" means "including but not limited to", "according to … …" means "according to at least … …, but not limited to only … …". The term "a" or "an" is used herein to refer to a number of components, either one or more, or at least one, unless otherwise specified. The terms first, second, third, fourth and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the invention described herein may be capable of being practiced otherwise than as specifically illustrated and described.
In the embodiment of the invention, the text description information (such as construction process, main material detailed parameters and the like) of the long text content is automatically marked into the decoration drawing by utilizing the attribute characteristics that the left side and the right side of the decoration drawing have larger blank, and the text description information is displayed at the two sides of the decoration drawing, so that the content of the decoration drawing is richer. Therefore, the decorating worker can finish the decorating processes such as material ordering, construction process confirmation and the like through the guidance of the decorating drawing.
In addition, in order to clearly and neatly present the text description information in the decoration drawing in the form of a drawing, the text content (referred to as a drawing content) determination and the drawing start point determination are performed for a specific unit (referred to as a drawing object) having a drawing demand. After all the priming objects, the priming contents and the priming starting points are collected on a single drawing, typesetting is performed uniformly. When the number of the priming objects is large, the priming is distributed and arranged on the left side and the right side to serve as a better display strategy, and the basic principle of typesetting is adopted. The priming dispersion comprises dispersion among priming starting points, dispersion among leads and dispersion among priming contents, and the preferable integral effect can be presented by determining the preferable positions of the priming starting points, the priming contents and the leads. In addition, when the number of the priming is large, the priming does not exceed the drawing frame, no intersection is formed between the leads, and the priming text is not overlapped, which is an index to be considered. When all the indexes are satisfied, the typesetting effect can reach satisfaction.
FIG. 1 is an exemplary flow chart of a method of generating a decorative drawing reference in an embodiment of the invention.
As shown in fig. 1, the method for generating the decoration drawing primer includes:
step 101: and determining an priming object and the priming content of the priming object in the decoration drawing, wherein the priming content comprises text description information of the priming object, and the priming object comprises points or surfaces.
Here, the priming object is a specific unit with priming requirements in the decoration drawing. For example, the referenced object may be implemented as: windows, door openings, beams, air conditioning openings, floor tiles, exterior walls, top surfaces, kitchens, toilets, primary and secondary lying, study rooms, lamps, furniture, strong and weak electricity points, electricity meters, water meters or gas meters, and the like. The priming object includes a point or a face. For example, when the priming object is implemented as a unit with a fixed installation position and a small occupied area, such as an electric meter, a water meter, a gas meter, etc., the priming object is a point in a decoration drawing. When the priming object is implemented as a unit with a large occupied area such as a window, a door opening, a beam, an air conditioning opening, a floor tile, an outer wall, a top surface, a kitchen, a bathroom, a primary lying, a secondary lying and the like, the priming object is a surface in a decoration drawing.
The priming content of the priming object is the content which is displayed in a priming mode aiming at the priming object. The priming content contains text description information of the priming object. For example, the text description information includes text contents such as construction process, main material detailed parameters, manufacturer, date of production, notes, and the like of the object to be infused. The method comprises the steps of automatically acquiring the priming content of the priming object from a physical model of the priming object, and receiving user input on a manual interface to edit the priming content of the priming object.
While the foregoing exemplary description of exemplary aspects of the subject matter and content of the subject matter has been presented for exemplary purposes, those skilled in the art will recognize that such description is merely illustrative and is not intended to limit the scope of embodiments of the invention.
Step 102: an priming start point of the priming object is determined.
Here, the meaning of the priming start point is: the lead wire used to pull the content of the lead wire includes a starting point. The priming start point is typically located in the priming object.
In one embodiment, step 102 includes:
(1) When the priming object is a point, the point of the priming object is determined as a priming start point.
For example, when the priming object is implemented as a point where the installation position of the electric meter, the water meter, the gas meter, or the like is fixed and the occupied area is small, the electric meter, the water meter, the gas meter, or the like is directly determined as the priming start point.
(2) When the priming object (e.g., the priming object is implemented as a door, window, door opening, bealock, window opening, etc.) is a face and the width of the face is less than a predetermined threshold, a priming start point is determined on the horizontal centerline of the face. Wherein the threshold value may be set based on an empirical value. Also, preferably, the threshold is adjustable. Here, when the priming object is rectangular, a horizontal center line may be determined in the priming object; when the priming object is not rectangular, a horizontal center line can be determined from the smallest circumscribed rectangle of the priming object.
Fig. 2 is a schematic view of the horizontal center line of an embodiment of the present invention. In fig. 2, the priming target 10 is a face, and the width S of the priming target 10 is smaller than a predetermined threshold, so the priming start point of the priming target 10 is determined on the horizontal center line 20 of the priming target 10.
(3) When the priming object (for example, the priming object is implemented as a ground, a top surface, a lower ceiling, a floor, etc.) is a surface and the width of the surface is greater than or equal to a threshold value, the priming start point is determined on two perpendicular lines at the same distance from the perpendicular centerline of the surface. Wherein the threshold value may be set based on an empirical value. Also, preferably, the threshold is adjustable.
Fig. 3 is a schematic view of two side vertical lines of an embodiment of the present invention. In fig. 3, the priming object 30 is a face, and the width S of the priming object 30 is greater than a predetermined threshold value. Left and right vertical lines 31 and 32 are respectively defined at left and right sides of a vertical center line 33 of the priming object 30, wherein a distance between the left vertical line 31 and the horizontal center line 33 is equal to a distance between the right vertical line 32 and the horizontal center line 33, and wherein the distance may be: (1) presetting a constant; (2), a variable related to S; (3) a variable related to the length of the priming object 30. The priming start point of the priming object 30 may be determined on the left vertical line 31 or the right vertical line 32. Here, when the priming object 30 is rectangular, a vertical center line may be determined in the priming object 30; when the priming object 30 is not rectangular, the vertical centerline may be determined from the smallest circumscribed rectangle of the priming object.
Step 103: and drawing the lead from the starting point of the lead, and displaying the content of the lead at the end part of the lead.
The lead is led out from the initial point of the lead, and the lead is led out to the left blank or the right blank of the decoration drawing. The priming content may be presented at the upper part of the end of the lead, or at the lower part of the end. The content of the introduction may further include auxiliary information, such as a completion date or a completion person of the decoration drawing, etc., in addition to the text description information of the introduction object.
Obviously, the method and the device are remarkably different from the prior art that only the key size in the decoration drawing is displayed, and the embodiment of the invention further displays the text description information of the long text content (for example, in languages such as Chinese or English) in a guiding mode, so that the display content is enriched, and the display efficiency is improved. And finishing workers can finish finishing processes such as material ordering, construction process confirmation and the like through the guidance of finishing drawings.
In one embodiment, the method further comprises: when the priming object is a plane and the width of the plane is greater than or equal to a threshold value, determining the center point of the plane; determining a first coordinate mean value of the center point and other injection starting points of other injection objects in the decoration drawing in the horizontal axis direction; selecting one vertical line from the vertical lines on two sides based on the first coordinate mean value; determining an priming start point on the selected vertical line; calculating a second coordinate mean value of the priming start point and other priming start points in the transverse axis direction; classifying the priming start point and other priming start points into a left priming area or a right priming area respectively based on the second coordinate mean value, wherein the leads of the priming start points classified into the left priming area extend leftwards; leads classified as priming start points in the right priming region extend rightward. Here, when the priming object is a face and the face is a regular pattern, the center point is the geometric center point of the regular pattern; when the priming object is a surface and the surface is an irregular pattern, the center point is the center point of the regular pattern.
It can be seen that by calculating the first coordinate mean, a vertical line that can be dispersed from other priming start points can be selected from the two-sided vertical lines. And by calculating the second coordinate mean value, the priming starting point is classified into a left side priming area or a right side priming area, so that the priming number on two sides is guaranteed to be close to the mean value as much as possible, and meanwhile, the problem that the priming starting point and the priming content are divided into different sides to cause long lead wire pulling and are difficult to identify due to forced division according to the number is avoided, thereby realizing effective dispersion of the priming starting point and improving the priming efficiency.
After the left and right priming areas are determined, it is necessary to ensure that the single priming start points are hashed as much as possible. For each priming, traversing all virtual points, solving the value of each virtual point from the starting point of other priming, and taking the virtual point with the larger minimum value as the starting point of the priming.
In one embodiment, determining the priming start point on the selected vertical line comprises: moving the virtual point on the selected vertical line such that when the virtual point moves to the target position: the minimum distance between the virtual point and any one of the other priming starting points has the maximum value; the target position is determined as the position of the priming start point.
Therefore, by optimally selecting the priming start points on the vertical lines, effective dispersion of the priming start points is ensured.
FIG. 4 is a schematic diagram of determining an priming start point in an embodiment of the present invention.
As shown in fig. 4, the priming object 40 has two vertical lines, a left vertical line 41 and a right vertical line 42, respectively. The priming objects 40 include a priming object B, a priming object C, a priming object D, and a priming object E as points. First, the center point a of the priming object 40 is determined, and then the first coordinate means of the center point a, the priming object B, the priming object C, the priming object D, and the priming object E in the horizontal axis direction (X direction as shown in fig. 4) are calculated. When the coordinates of the center point a in the horizontal axis direction are smaller than the first coordinate mean value, the left vertical line 41 is selected; when the coordinates of the center point a in the horizontal axis direction are equal to or larger than the first coordinate mean value, the right vertical line 42 is selected. Thus, a vertical line that can be dispersed from other priming start points is selected from the two side vertical lines.
Assuming that the coordinates of the center point a in the horizontal axis direction are smaller than the first coordinate mean value, the left vertical line 41 is selected. Also, when the virtual point T is moved on the left vertical line 41, the minimum distance of the virtual point T from other priming start points (i.e., the priming object B, the priming object C, the priming object D, and the priming object E) will change no matter to which position the virtual point T is moved. When the virtual point T is moved to the target position such that the minimum value of the distance set (the distance set includes the minimum value of the distance TB of the virtual point T from the priming object B, the distance TC of the virtual point T from the priming object C, the distance TD of the virtual point T from the priming object D, and the distance TE of the virtual point T from the priming object E) is maximized compared with the minimum value of the distance set when the virtual point T is moved to another arbitrary position, the target position is determined as the position of the priming start point of the priming object 40.
In one embodiment, the method further comprises: calculating a third coordinate mean value of all the priming starting points in the left priming area in the longitudinal axis direction and a fourth coordinate mean value of all the priming starting points in the right priming area in the longitudinal axis direction; dividing the left priming area into an upper left area and a lower left area based on a third coordinate mean value, wherein the lead wire extends from bottom to top for all priming starting points in the upper left area; for all priming starting points in the lower left region, the leads extend from top to bottom; dividing the right side priming area into an upper right area and a lower right area based on a fourth coordinate mean value, wherein the lead wire extends from bottom to top for all priming starting points in the upper right area; for all of the priming start points in the lower right region, the leads extend from top to bottom.
By calculating a weighted average of the coordinate values of all the priming start points on one side in the longitudinal axis direction, the priming can be divided into an upper part and a lower part so as to avoid excessive concentration of the priming. The obtained average value is a vertical coordinate, the side frame is used as a point of a horizontal coordinate as a reference point, the distances between all starting points and the reference point are calculated, and the closer the starting points are, the more preferentially drawing is performed, so that the umbrella-shaped distribution effect is achieved, the whole layout is more attractive, and the probability of lead crossing is smaller.
Fig. 5 is a schematic diagram of determining an upper left region and a lower left region according to an embodiment of the present invention. In fig. 5, point 1, point 2, point 3, point 4, point 5, point 6, and point 7 are the priming start points in the left priming area, respectively. First, based on the position coordinates of the points 1, 2, 3, 4, 5, 6, and 7, the average value of the coordinate values of the points 1, 2, 3, 4, 5, 6, and 7 in the Y-axis direction is calculated. Based on the average value, a straight line is drawn in the X-axis direction. Point 1, point 3, point 4, and point 6 lie above the straight line, so point 1, point 3, point 4, and point 6 are classified into the upper left region; point 2, point 5 and point 7 lie above this straight line, so that point 2, point 5 and point 7 are classified into the lower left region.
Taking the point 4 classified into the upper left area as an example, the lead 61 extends from the lower side up and out to the left blank of the finishing drawing. Taking the point 7 classified into the upper left area as an example, the lead 62 extends from top to bottom and exits to the left blank of the finishing drawing.
Similarly, the priming start point classified into the right-side priming region is further classified into the upper right region or the lower right region. Based on the above processing, the upper and lower priming balance is ensured, and meanwhile, the upper and lower priming balance is not influenced.
After the steps of classifying the left and right side priming areas and the upper and lower areas are completed, the priming typesetting is basically completed. For the crossed lead, visual errors are easily caused by looking up the position of the starting point according to the line when a constructor looks up the lead, so that the position of the crossed lead can be exchanged in a traversing way, and the purpose of removing the cross is achieved. Meanwhile, because the lines of each priming text are different, the distance between adjacent priming texts is changed or even overlapped after the priming texts are exchanged, and the whole position of all other priming texts between two crossed priming texts can be moved up and down, so that the distance between all priming texts before and after the exchanging is kept unchanged.
In one embodiment, the method further comprises: traversing all the leads to determine the leads that cross each other; and carrying out position exchange on the lead content of the mutually intersected leads until all the leads are not intersected.
In one embodiment, the method further comprises: after the position of the lead contents of the mutually intersecting leads is exchanged, the position of the lead after the position exchange is shifted based on the position-exchanged lead contents. In one embodiment, the moving the position of the lead after the position exchange based on the position exchanged priming content includes: and performing position movement on the leads after the position exchange so that the leads after the position movement maintain the spacing between the leads before the position exchange and the adjacent leads.
Fig. 6 is a schematic diagram of an embodiment of the present invention with cross-leads removed.
In fig. 6, primer 1, primer 2 and primer 3 are all located in the upper left region of the left-hand primer region. Leads of the primer 1, the primer 2 and the primer 3 extend from bottom to top to the left blank of the decoration drawing. Wherein, the priming content B of the priming 1; the priming content C of the priming 2; the priming content a of the priming 3. The priming content A and the priming content B are a line of text; the content of the reference C is two lines of text. Primer 3 intersects primer 1 and primer 2, respectively. At this time, the contents of the priming are "ABC" in sequence from top to bottom in the vertical axis direction.
The contents of the primer 3 and the primer 1 are interchanged. Since the priming content A and the priming content B are all text of one line, the priming content A and the priming content B are exchanged and are not further adjusted. At this time, the contents of the priming are "BAC" in this order from top to bottom in the vertical axis direction.
The exchange of the positions of the primer 3 and the primer 1 is not performed, but the primer 3 and the primer 2 still have the intersection, so that the positions in the primer 3 and the primer 2 are exchanged continuously. At this time, the contents of the priming are "BCA" in this order from the top to the bottom in the vertical axis direction. Since the priming 2 has two lines of text (i.e., becomes the priming content C) after the position exchange, the position of the priming 2 needs to be shifted downward by one line distance after the exchange is completed so that the priming 2 is adjacent to the position of the priming 2 with a distance before the exchange.
Similarly, the above operation is performed for two shots with a crossover by cycling through all the shots until all the leads are free of a crossover. So far, the automatic generation and typesetting of the priming are completed, and the distribution condition of the priming also achieves a better effect. When the priming objects are modified or added or deleted, the corresponding priming starting points and priming contents are dynamically refreshed, so that all typesetting can be automatically completed.
FIG. 7 is an exemplary flow chart showing priming in a finishing drawing in accordance with an embodiment of the present invention. As shown in fig. 7, the process of the priming in the decoration drawing includes:
step 701: and creating a decoration item and a house type. For example, a decoration item and a house type are created based on decoration design software.
Step 702: and automatically collecting an injection starting point and injection contents.
Step 703: the priming start point is classified into the left priming area or the right priming area.
Step 704: in the left-side priming area and the right-side priming area, the scatter selection of the priming start points is performed, respectively.
Step 705: the content of the priming is distributed vertically. So that the priming contents of each side are as uniform as possible.
Step 706: and removing the lead crossover.
Fig. 8 is an exemplary block diagram of an apparatus for generating a decoration drawing reference according to an embodiment of the present invention. As shown in fig. 8, an apparatus 800 for generating a decoration drawing reference includes:
a first determining module 801, configured to determine an priming object and priming contents of the priming object in a decoration drawing, where the priming contents include text description information of the priming object, and the priming object includes a point or a surface;
a second determining module 802, configured to determine an priming start point of the priming object;
and a display module 803, configured to draw the lead from the priming start point and display priming content at an end of the lead.
In an exemplary embodiment, a second determining module 802 is configured to determine a point as an priming start point when the priming object is a point; determining an priming start point on a horizontal centerline of a face when the priming object is the face and the width of the face is less than a predetermined threshold; when the priming object is a face and the width of the face is greater than or equal to the threshold, the priming start point is determined on both vertical lines at the same distance from the vertical center line of the face.
In an exemplary embodiment, the display module 803 is configured to determine a center point of a face when the priming object is a face and a width of the face is greater than or equal to a threshold value; determining a first coordinate mean value of the center point and other injection starting points of other injection objects in the decoration drawing in the horizontal axis direction; selecting one vertical line from the vertical lines on two sides based on the first coordinate mean value; determining an priming start point on the selected vertical line; calculating a second coordinate mean value of the priming start point and other priming start points in the transverse axis direction; classifying the priming start point and other priming start points into a left priming area or a right priming area respectively based on the second coordinate mean value, wherein the leads of the priming start points classified into the left priming area extend leftwards; leads classified as priming start points in the right priming region extend rightward.
In an exemplary embodiment, the presentation module 803 is configured to move the virtual point on the selected vertical line such that when the virtual point moves to the target position: the minimum distance between the virtual point and any one of the other priming starting points has the maximum value; the target position is determined as the position of the priming start point.
In an exemplary embodiment, the display module 803 is further configured to: calculating a third coordinate mean value of all the priming starting points in the left priming area in the longitudinal axis direction and a fourth coordinate mean value of all the priming starting points in the right priming area in the longitudinal axis direction; dividing the left priming area into an upper left area and a lower left area based on a third coordinate mean value, wherein the lead wire extends from bottom to top for all priming starting points in the upper left area; for all priming starting points in the lower left region, the leads extend from top to bottom; dividing the right side priming area into an upper right area and a lower right area based on a fourth coordinate mean value, wherein the lead wire extends from bottom to top for all priming starting points in the upper right area; for all of the priming start points in the lower right region, the leads extend from top to bottom.
In an exemplary embodiment, the display module 803 is further configured to: judging whether the leads are crossed with each other or not; and (5) exchanging the positions of the lead injection contents of the mutually intersected leads.
Embodiments of the present invention also provide a computer readable medium storing instructions that, when executed by a processor, perform the steps in a method of generating a decorative drawing reference as described above. The computer readable medium in practical use may be contained in the apparatus/device/system described in the above embodiment or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs, which when executed, implement the text classification method described in the above embodiments. According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: portable computer diskette, hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing, but are not intended to limit the scope of the invention. In the disclosed embodiments, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
As shown in fig. 9, the embodiment of the present invention further provides an electronic device, in which the device for generating a decoration drawing reference according to the embodiment of the present invention may be integrated. Fig. 9 is a diagram showing an exemplary configuration of an electronic device according to an embodiment of the present invention. Specifically: the electronic device can include a processor 901 of one or more processing cores, a memory 902 of one or more computer-readable storage media, and a computer program stored on the memory and executable on the processor. The method of generating the decoration drawing reference described above may be implemented when the program of the memory 902 is executed.
In practical applications, the electronic device may further include a power supply 903, an input unit 904, and an output unit 905. It will be appreciated by those skilled in the art that the structure of the electronic device shown in fig. 9 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein: the processor 901 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of a server and processes data by running or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the electronic device. The memory 902 may be used to store software programs and modules, i.e., the computer-readable storage media described above. The processor 901 executes various functional applications and data processing by executing software programs and modules stored in the memory 902. The memory 902 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of the server, etc. In addition, the memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 902 may also include a memory controller to provide access to the memory 902 by the processor 901.
The electronic device further comprises a power supply 903 for supplying power to the respective components, and may be logically connected to the processor 901 through a power management system, so that functions of managing charging, discharging, power consumption management, etc. are implemented through the power management system. The power supply 903 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like. The electronic device may also include an input unit 904, which input unit 904 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. The electronic device may further comprise an output unit 905, which output unit 905 may be used for displaying information entered by a user or provided to a user, as well as various graphical user interfaces, which may be constituted by graphics, text, icons, video and any combination thereof.
Embodiments of the present invention also provide a computer program product comprising computer instructions which, when executed by a processor, implement a method of generating a decorative drawing reference as described in any of the above embodiments. The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The principles and embodiments of the present invention have been described herein with reference to specific embodiments, but the description of the embodiments is only for aiding in the understanding of the method and core concept of the present invention and is not intended to limit the invention. It will be apparent to those skilled in the art that variations can be made in the present embodiments and applications within the spirit and principles of the invention, and any modifications, equivalents, improvements, etc. are intended to be included within the scope of the present invention.

Claims (10)

1. A method of generating a decorative drawing reference, comprising:
determining an injection object and injection content of the injection object in a decoration drawing, wherein the injection content comprises text description information of the injection object, and the injection object comprises a point or a surface;
determining an priming starting point of the priming object;
and leading out a lead from the lead starting point, and displaying the lead content at the end part of the lead.
2. The method of claim 1, wherein the determining an priming start point for the priming object comprises:
in response to the priming object being a point, determining the point as the priming start point;
determining the priming start point on a horizontal centerline of the face in response to the priming object being a face and the width of the face being less than a predetermined threshold;
in response to the priming object being a face and the width of the face being greater than or equal to the threshold, the priming start point is determined on two perpendicular lines at the same distance from a perpendicular centerline of the face.
3. The method of claim 2, wherein the determining the priming start point on two perpendicular lines the same distance from a perpendicular centerline of the face in response to the priming object being a face and a width of the face being greater than or equal to the threshold comprises:
determining a center point of the face in response to the priming object being a face and a width of the face being greater than or equal to the threshold;
determining a first coordinate mean value of the central point and other priming starting points of other priming objects in the decoration drawing in the horizontal axis direction;
selecting one vertical line from the two vertical lines based on the first coordinate mean;
determining the priming start point on the selected vertical line; further comprises:
calculating a second coordinate mean value of the priming start point and the other priming start points in the transverse axis direction;
classifying the priming start point and the other priming start points into a left priming area or a right priming area respectively based on the second coordinate mean value, wherein a lead of the priming start point classified into the left priming area extends leftwards; leads classified as priming start points in the right priming region extend rightward.
4. The method of claim 3, wherein the determining the priming start point on the selected vertical line comprises:
moving a virtual point on the selected vertical line such that when the virtual point moves to a target position: the minimum distance between the virtual point and any one of the other priming starting points has a maximum value;
and determining the target position as the position of the priming start point.
5. A method according to claim 3, further comprising:
calculating a third coordinate mean value of all the priming starting points in the left priming area in the longitudinal axis direction and a fourth coordinate mean value of all the priming starting points in the right priming area in the longitudinal axis direction;
dividing the left priming area into an upper left area and a lower left area based on the third coordinate mean, wherein for all priming start points in the upper left area, a lead wire extends from bottom to top; for all the priming starting points in the lower left area, the leads extend from top to bottom;
dividing the right side priming area into an upper right area and a lower right area based on the fourth coordinate mean value, wherein leads extend from bottom to top for all priming starting points in the upper right area; for all priming starting points in the lower right region, the leads extend from top to bottom.
6. The method of any one of claims 1-5, further comprising:
traversing all the leads to determine the leads that cross each other;
and carrying out position exchange on the lead content of the mutually intersected leads until all the leads are not intersected.
7. The method as recited in claim 6, further comprising:
after the position of the lead contents of the mutually intersecting leads is exchanged, the position of the lead after the position exchange is shifted based on the position-exchanged lead contents.
8. The method of claim 7, wherein the moving the position-interchanged lead based on the position-interchanged content of the reference comprises: and performing position movement on the leads after the position exchange so that the leads after the position movement maintain the spacing between the leads before the position exchange and the adjacent leads.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of generating a decorative drawing reference of any one of claims 1-8.
10. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the method of generating a decorative drawing reference of any one of claims 1 to 8.
CN202211599104.XA 2022-12-12 2022-12-12 Method, electronic equipment and medium for generating decoration drawing reference Active CN116188629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211599104.XA CN116188629B (en) 2022-12-12 2022-12-12 Method, electronic equipment and medium for generating decoration drawing reference

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211599104.XA CN116188629B (en) 2022-12-12 2022-12-12 Method, electronic equipment and medium for generating decoration drawing reference

Publications (2)

Publication Number Publication Date
CN116188629A true CN116188629A (en) 2023-05-30
CN116188629B CN116188629B (en) 2024-02-27

Family

ID=86431697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211599104.XA Active CN116188629B (en) 2022-12-12 2022-12-12 Method, electronic equipment and medium for generating decoration drawing reference

Country Status (1)

Country Link
CN (1) CN116188629B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838933A (en) * 2014-03-18 2014-06-04 湖南大学 Three-dimensional model integrating and labeling method based on digital technology
CN104850587A (en) * 2015-04-24 2015-08-19 华能伊敏煤电有限责任公司 Annotation method and device for Surpac measurement acceptance system data
CN105205198A (en) * 2014-06-30 2015-12-30 上海神机软件有限公司 Full-automatic intelligent integrated formwork arranging system and method for construction engineering fabricated formworks
CN108121863A (en) * 2017-12-13 2018-06-05 机械工业第六设计研究院有限公司 Creation method, device, equipment and the computer readable storage medium of pipeline label
CN109325214A (en) * 2018-09-30 2019-02-12 武昌船舶重工集团有限公司 A kind of drawings marked method and system
CN112348873A (en) * 2020-11-06 2021-02-09 江南造船(集团)有限责任公司 Method, system, medium and device for marking three-dimensional size of ship pipe section model
CN114254586A (en) * 2021-12-15 2022-03-29 北京构力科技有限公司 Method, electronic device and computer program product for automatically arranging drawing labels
CN114565703A (en) * 2022-03-04 2022-05-31 广联达科技股份有限公司 Method, device and equipment for adjusting centralized labeling and readable storage medium
CN114756928A (en) * 2022-03-23 2022-07-15 福建晨曦信息科技集团股份有限公司 Wall identification method, computer equipment and readable storage medium
CN114912403A (en) * 2022-06-09 2022-08-16 深圳市百能信息技术有限公司 PCB automatic labeling method, device, equipment and storage medium
CN115116084A (en) * 2022-07-25 2022-09-27 万翼科技有限公司 Method, device and equipment for identifying quotation and storage medium
CN115455519A (en) * 2022-06-22 2022-12-09 合肥坤颐建筑科技合伙企业(有限合伙) BIM platform-based horizontal component marking method and related equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838933A (en) * 2014-03-18 2014-06-04 湖南大学 Three-dimensional model integrating and labeling method based on digital technology
CN105205198A (en) * 2014-06-30 2015-12-30 上海神机软件有限公司 Full-automatic intelligent integrated formwork arranging system and method for construction engineering fabricated formworks
CN104850587A (en) * 2015-04-24 2015-08-19 华能伊敏煤电有限责任公司 Annotation method and device for Surpac measurement acceptance system data
CN108121863A (en) * 2017-12-13 2018-06-05 机械工业第六设计研究院有限公司 Creation method, device, equipment and the computer readable storage medium of pipeline label
CN109325214A (en) * 2018-09-30 2019-02-12 武昌船舶重工集团有限公司 A kind of drawings marked method and system
CN112348873A (en) * 2020-11-06 2021-02-09 江南造船(集团)有限责任公司 Method, system, medium and device for marking three-dimensional size of ship pipe section model
CN114254586A (en) * 2021-12-15 2022-03-29 北京构力科技有限公司 Method, electronic device and computer program product for automatically arranging drawing labels
CN114565703A (en) * 2022-03-04 2022-05-31 广联达科技股份有限公司 Method, device and equipment for adjusting centralized labeling and readable storage medium
CN114756928A (en) * 2022-03-23 2022-07-15 福建晨曦信息科技集团股份有限公司 Wall identification method, computer equipment and readable storage medium
CN114912403A (en) * 2022-06-09 2022-08-16 深圳市百能信息技术有限公司 PCB automatic labeling method, device, equipment and storage medium
CN115455519A (en) * 2022-06-22 2022-12-09 合肥坤颐建筑科技合伙企业(有限合伙) BIM platform-based horizontal component marking method and related equipment
CN115116084A (en) * 2022-07-25 2022-09-27 万翼科技有限公司 Method, device and equipment for identifying quotation and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FENG SU ET AL.: "Dimension recognition and geometry reconstruction in vectorization of engineering drawings", 《PROCEEDINGS OF THE 2001 IEEE COMPUTER SOCIETY CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION. CVPR 2001》, pages 711 - 715 *
郑长松等: "孔系尺寸的自动标注", 《福州大学学报(自然科学版)》, vol. 25, no. 5, pages 55 - 57 *

Also Published As

Publication number Publication date
CN116188629B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN103336855B (en) A kind of two-dimentional irregular nesting method based on many subgroups particle cluster algorithm
KR101603622B1 (en) System and method for utilizing authoring tool of bim integrated design
CN107423518B (en) Comprehensive pipe gallery full-line BIM collaborative design method combining Civil3D and Revit
CN103578137A (en) Three-dimensional modeling system and method for prefabricated parts
CN102693334B (en) Based on the dynamic component recognition methods of CAD electronic drawing
CN112613112A (en) BIM development-based CAD (computer aided design) construction drawing reverse modeling method
CN110210141A (en) Model collision detection method, device and electronic equipment based on BIM technology
CN108228986A (en) Subway station three-dimensional building model automatic forming method
CN110442996A (en) A method of the entity electrical cable intelligent laying based on PDMS platform
CN103942053A (en) Three-dimensional model gesture touch browsing interaction method based on mobile terminal
CN104102407B (en) A kind of parameter input method and system
CN110158818A (en) A kind of quick method of construction of the flat curtain based on BIM model
CN108121863A (en) Creation method, device, equipment and the computer readable storage medium of pipeline label
CN112650899A (en) Data visualization rendering method and device, computer equipment and storage medium
CN111368516A (en) Visualized large-screen intelligent editing system
CN111612911A (en) Dynamo-based point cloud BIM automatic modeling method
CN116188629B (en) Method, electronic equipment and medium for generating decoration drawing reference
Mellado et al. Gradient trajectory analysis of a scalar field with external intermittency
CN114004000A (en) System for intelligent pipeline arrangement based on BIM technology
CN108319751A (en) Subway station pipeline three dimensional device pipeline model automatic generation method
CN105631135B (en) Based on ABAQUS excavation of foundation pit rapid modeling analysis system and its application method
CN103164862A (en) Plane computer-aided design (CAD)/ computer-aided manufacturing (CAM) drawing method based on intelligent recognition drawing tool
CN109961212A (en) One kind is based on the visual construction speed dynamic management BIM system of work surface
CN109766601B (en) Computer aided drawing method and device for electric piping
CN115809287A (en) Three-dimensional visual display method and platform for regulating and controlling running state of electric power system

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