CN109685897B - House type drawing method for drawing door and window opening by one-step dragging - Google Patents
House type drawing method for drawing door and window opening by one-step dragging Download PDFInfo
- Publication number
- CN109685897B CN109685897B CN201811536575.XA CN201811536575A CN109685897B CN 109685897 B CN109685897 B CN 109685897B CN 201811536575 A CN201811536575 A CN 201811536575A CN 109685897 B CN109685897 B CN 109685897B
- Authority
- CN
- China
- Prior art keywords
- door
- width
- wall
- window hole
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/05—Geographic models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Remote Sensing (AREA)
- Computer Graphics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a house type drawing method for drawing a door and window hole by one-step dragging, wherein a drawing point is arranged on a wall line of a target wall, and the length and the width of a temporary mesh can be randomly adjusted by dragging the drawing point, so that a user can conveniently copy an accurate door and window hole without inputting the accurate extension width and the drawing length of the door and window hole for multiple times; by setting a plurality of distance prompts on the operation interface, in the dragging process, the extending width and the drawing length of the drawing door and window hole in the current drawing state and the distance prompts of the distance between the left point and the right point of the door and window hole and the starting point position and the ending point position of the target wall respectively can be prompted, namely a plurality of data can be changed simultaneously without inputting data for many times; the method can control the drawing of a plurality of data of the target door and window hole only through one-step simple operation, and the accurate door and window hole which a user wants to draw is drawn under the condition that an accurate numerical value does not need to be input.
Description
Technical Field
The invention relates to the field of 3D modeling, in particular to a house type drawing method for drawing a door and window opening by one-step dragging.
Background
The flow of the indoor design generally includes the following steps:
(1) manufacturing a CAD house-type drawing;
(2) manufacturing a three-dimensional house type model through the CAD house type graph;
(3) self-building or obtaining furniture model resources through other channels and arranging the furniture model resources in the three-dimensional house type model;
(4) and rendering offline through self or other channels, and obtaining an effect picture and a panoramic picture of the appointed camera position.
The method for making the three-dimensional house type model by the CAD house type graph generally comprises the steps of copying door and window holes in the CAD plane house type graph, and then generating the three-dimensional model according to the copied door and window holes by utilizing modeling software such as 3D MAX or MAYA. The method for drawing the door and window holes by the house type software on the market generally comprises the steps of pulling out the door and window holes from a toolbar and then placing the door and window holes on a wall in a CAD plane house type graph, wherein a standard door and window hole template is placed, parameters of the door and window holes in the standard door and window hole template are fixed, and in different house types, a user needs to select the door and window hole template to change data and adjust the data into a shape required by the user. Because the data change is needed for many times in the traditional copying process, and the copying precision cannot be accurately controlled, a house type drawing method which can draw door and window holes quickly, conveniently and accurately is needed.
Disclosure of Invention
In view of the above, the present invention provides a house type drawing method capable of quickly and conveniently drawing a door and window opening.
The technical scheme of the invention is realized as follows: the invention provides a house type drawing method which can draw door and window holes quickly, conveniently and accurately, and comprises the following steps:
s101, creating a temporary mesh and a two-dimensional coordinate system for displaying the shape and the door and window hole identification during drawing;
s102, selecting a target wall in the CAD user type graph, obtaining width data of the target wall, setting a drawing point on a side wall line of the target wall, recording the starting position of the drawing point, and recording as start (X0, Y0);
s103, dragging a drawing point in the extending direction of the door and window opening, enabling the drawing point to adsorb the other edge of the target wall in the dragging process, calculating the extending width of the drawing point from one wall line of the target wall to the other wall line by using a distance formula between the two points, and marking as width;
s104, adjusting the drawing length of the drawing point along the target wall, calculating the drawing length of the drawing point along the target wall by using a distance formula between two points, recording the drawing length, finishing drawing when the drawing is finished, and recording the end position of the drawing point as end (X1, Y1);
s105, matching the width of the target wall with the extension width of the drawing point, and judging that the drawing type is a common door or window if the extension width is as wide as the width of the target wall; if the width is smaller than the wall width, the wall is a hole; if the width of the window is larger than the wall width, the window is a bay window;
s106, storing the drawn door and window hole parameters into the Profile _ PPM.
On the basis of the above technical solution, preferably, the data of the target wall in S102 includes a start position, an end position, a left wall width, and a right wall width of the target wall;
the sum of the left wall width and the right wall width is the width of the target wall.
Based on the above technical solution, preferably, the formula for calculating the extending width of the drawing point from one wall line to the other wall line of the target wall in S103 is as follows: width ═ X1-X0 |.
Further preferably, the formula for calculating the length of the drawing point along the target wall in S104 is as follows: length ═ Y0-Y1 |.
Still more preferably, the parameters of the door and window hole in S106 include rotation, type, extension width, height, ground height, drawing length, and position;
and inputting numerical value settings after the door and window hole is set.
On the basis of the above technical solution, preferably, in the dragging process of S103, a plurality of distance prompts appear on the operation interface for prompting the extending width and the drawing length of the door/window opening drawn in the current drawing state and the distances from the left and right points of the door/window opening to the start position and the end position of the target wall, respectively.
Further preferably, the temporary mesh refreshes the shape of the temporary mesh according to the data of the current door and window hole.
Compared with the prior art, the house type drawing method for drawing the door and window opening by one-step dragging has the following beneficial effects:
(1) by setting a temporary mesh, when the door and window hole is drawn, a drawing point is set on a wall line of a target wall, and the length and the width of the temporary mesh can be adjusted at will by dragging the drawing point, so that a user can accurately copy the accurate door and window hole when copying a CAD house type graph, and the accurate extension width and the drawing length of the door and window hole are not required to be input for multiple times;
(2) by setting a plurality of distance prompts on the operation interface, in the process of dragging the drawing point, the extending width and the drawing length of the drawing door and window hole in the current drawing state and the distance prompts of the distance between the left point and the right point of the drawing door and window hole and the starting point position and the ending point position of the target wall respectively can be prompted, namely, a plurality of data can be simultaneously changed without inputting data for many times during dragging;
(3) the method can control the drawing of a plurality of data of the target door and window hole only through one-step simple operation, and the accurate door and window hole which a user wants to draw is drawn under the condition that an accurate numerical value does not need to be input.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a house type drawing method for drawing a door and window opening by one-step dragging according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, the house type drawing method for drawing a door and window opening by one-step dragging of the invention comprises the following steps:
s101, creating a temporary mesh and a two-dimensional coordinate system for displaying the shape and the door and window hole identification during drawing;
s102, selecting a target wall in the CAD user type graph, obtaining width data of the target wall, setting a drawing point on a side wall line of the target wall, recording the starting position of the drawing point, and recording as start (X0, Y0);
s103, dragging a drawing point in the extending direction of the door and window opening, enabling the drawing point to adsorb the other edge of the target wall in the dragging process, calculating the extending width of the drawing point from one wall line of the target wall to the other wall line by using a distance formula between the two points, and marking as width;
s104, adjusting the drawing length of the drawing point along the target wall, calculating the drawing length of the drawing point along the target wall by using a distance formula between two points, recording the drawing length, finishing drawing when the drawing is finished, and recording the end position of the drawing point as end (X1, Y1);
s105, matching the width of the target wall with the extension width of the drawing point, and judging that the drawing type is a common door or window if the extension width is as wide as the width of the target wall; if the width is smaller than the wall width, the wall is a hole; if the width of the window is larger than the wall width, the window is a bay window;
s106, storing the drawn door and window hole parameters into the Profile _ PPM.
The data of the target wall includes a start position startpoint, an end position endpoint, a wall left width leftwidth and a wall right width of the target wall. The sum of the left wall width and the right wall width is the width of the target wall. The data of the target wall is already produced in the CAD layout, and the data of the target wall is extracted directly from the file of the CAD layout in S102.
When drawing points are dragged, drawing lines drawn by the drawing points are straight lines. The reason for setting as the straight line is that the CAD house type graph is composed of straight lines and arc lines, and when the drawn plan graph is converted into the three-dimensional stereo graph, the wall body is closer to reality. Among them, the method of setting the drawing line as a straight line is the prior art, and is not cumbersome here.
In S103, the formula for calculating the extending width of the drawing point from one wall line of the target wall to the other wall line is: width ═ X1-X0 |. The adsorption function during drawing is driven by an adsorption pool, and when a user moves a mouse, the world space position of the mouse is compared with all point-line data to obtain an example closest to the adsorption threshold range, so that the mouse is close to the position.
In S104, the formula for calculating the length of the drawing point along the target wall is as follows: length ═ Y0-Y1 |.
S106, the door and window hole parameters comprise rotation, type, extension width, height, ground clearance height, drawing length and position; and inputting numerical value settings after the door and window hole is set. When the rotation is converted from a plane diagram to a three-dimensional diagram, the coordinate is converted into a conversion value, the height is the height of a door and window hole, and the ground clearance height is the height between the window and the hole and the ground.
In the dragging process of S103, a plurality of distance prompts appear on the operation interface for prompting the extending width and the drawing length of the door and window hole drawn in the current drawing state, and the distances from the left and right points of the door and window hole to the start position startpoint and the end position endpoint of the target wall, respectively.
And refreshing the shape of the temporary mesh according to the current door and window hole data in the dragging process of the drawing point of S103 in the S101.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (7)
1. A house type drawing method for drawing door and window holes by one-step dragging comprises the following steps:
s101, creating a temporary mesh and a two-dimensional coordinate system for displaying the shape and the door and window hole identification during drawing;
s102, selecting a target wall in the CAD user type graph, obtaining width data of the target wall, setting a drawing point on a side wall line of the target wall, recording the starting position of the drawing point, and recording as start (X0, Y0);
s103, dragging a drawing point in the extending direction of the door and window opening, enabling the drawing point to adsorb the other edge of the target wall in the dragging process, calculating the extending width of the drawing point from one wall line of the target wall to the other wall line by using a distance formula between the two points, and marking as width;
s104, adjusting the drawing length of the drawing point along the target wall, calculating the drawing length of the drawing point along the target wall by using a distance formula between two points, recording the drawing length, finishing drawing when the drawing is finished, and recording the end position of the drawing point as end (X1, Y1);
s105, matching the width of the target wall with the extension width of the drawing point, and judging that the drawing type is a common door or window if the extension width is as wide as the width of the target wall; if the width is smaller than the wall width, the wall is a hole; if the width of the window is larger than the wall width, the window is a bay window;
s106, storing the drawn door and window hole parameters into the Profile _ PPM.
2. The house type drawing method for drawing the door and window hole by one-step dragging according to claim 1, characterized in that: the data of the target wall in the S102 includes a start position startpoint, an end position endpoint, a wall left width leftwidth and a wall right width of the target wall;
and the sum of the left wall width and the right wall width is the width of the target wall.
3. The house type drawing method for drawing the door and window hole by one-step dragging according to claim 1, characterized in that: the formula for calculating the extending width of the drawing point from one wall line of the target wall to the other wall line in S103 is as follows: width ═ X1-X0 |.
4. The house type drawing method for drawing the door and window hole by one-step dragging according to claim 3, characterized in that: the formula for calculating the length of the drawing point drawn along the target wall in S104 is as follows: length ═ Y0-Y1 |.
5. The house type drawing method for drawing the door and window hole by one-step dragging according to claim 4, characterized in that: the parameters of the door and window hole in the S106 comprise rotation, type, extension width, height, ground clearance height, drawing length and position;
and inputting numerical value settings after the door and window hole settings are finished for the height and ground clearance height parameters.
6. The house type drawing method for drawing the door and window hole by one-step dragging according to claim 1, characterized in that: in the dragging process of S103, a plurality of distance prompts appear on the operation interface for prompting the extending width and the drawing length of the door and window hole drawn in the current drawing state, and the distances from the left and right points of the door and window hole to the start position startpoint and the end position endpoint of the target wall, respectively.
7. The house type drawing method for drawing the door and window hole by one-step dragging according to claim 6, characterized in that: and refreshing the shape of the temporary mesh according to the data of the current door and window hole.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536575.XA CN109685897B (en) | 2018-12-15 | 2018-12-15 | House type drawing method for drawing door and window opening by one-step dragging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536575.XA CN109685897B (en) | 2018-12-15 | 2018-12-15 | House type drawing method for drawing door and window opening by one-step dragging |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109685897A CN109685897A (en) | 2019-04-26 |
CN109685897B true CN109685897B (en) | 2022-04-22 |
Family
ID=66187695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811536575.XA Active CN109685897B (en) | 2018-12-15 | 2018-12-15 | House type drawing method for drawing door and window opening by one-step dragging |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109685897B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113987648A (en) * | 2021-10-29 | 2022-01-28 | 土巴兔集团股份有限公司 | Bay window model generation method and related equipment thereof |
CN113989415A (en) * | 2021-11-08 | 2022-01-28 | 江苏新格尔人居科技有限公司 | Drawing method and material calculating method for special-shaped door and window |
CN114661202B (en) * | 2022-03-02 | 2022-11-22 | 北京城市网邻信息技术有限公司 | Online home decoration method, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107480333A (en) * | 2017-07-12 | 2017-12-15 | 深圳市彬讯科技有限公司 | A kind of house type method for drafting based on room splicing |
CN107506391A (en) * | 2017-07-28 | 2017-12-22 | 上海网罗电子科技有限公司 | A kind of CAD diagram paper information of extracting is to the method for indoor map |
CN107515986A (en) * | 2017-08-25 | 2017-12-26 | 当家移动绿色互联网技术集团有限公司 | The method for editing 2D floor plans generation 3D house type scenes |
WO2018191016A2 (en) * | 2017-04-13 | 2018-10-18 | Emagispace, Inc. | Computer aided design system for modular wall design and manufacturing |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7039569B1 (en) * | 2000-06-09 | 2006-05-02 | Haws Richard R | Automatic adaptive dimensioning for CAD software |
US9111371B2 (en) * | 2005-10-06 | 2015-08-18 | Autodesk, Inc. | Workflow system for 3D model creation |
-
2018
- 2018-12-15 CN CN201811536575.XA patent/CN109685897B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018191016A2 (en) * | 2017-04-13 | 2018-10-18 | Emagispace, Inc. | Computer aided design system for modular wall design and manufacturing |
CN107480333A (en) * | 2017-07-12 | 2017-12-15 | 深圳市彬讯科技有限公司 | A kind of house type method for drafting based on room splicing |
CN107506391A (en) * | 2017-07-28 | 2017-12-22 | 上海网罗电子科技有限公司 | A kind of CAD diagram paper information of extracting is to the method for indoor map |
CN107515986A (en) * | 2017-08-25 | 2017-12-26 | 当家移动绿色互联网技术集团有限公司 | The method for editing 2D floor plans generation 3D house type scenes |
Non-Patent Citations (1)
Title |
---|
采用AutoCAD软件绘制建筑施工图墙体;周韬;《黎明职业大学学报》;20141225(第04期);90-93 * |
Also Published As
Publication number | Publication date |
---|---|
CN109685897A (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109685897B (en) | House type drawing method for drawing door and window opening by one-step dragging | |
Zehnder et al. | Designing structurally-sound ornamental curve networks | |
US8793108B2 (en) | Three-dimensional model determination from two-dimensional sketch with two-dimensional refinement | |
CN110688691A (en) | Software design method for freely drawing table top based on Kujiale cloud design platform | |
JP7162415B2 (en) | Computer-implemented method for positioning a pattern around an avatar | |
CN113274734B (en) | Virtual scene generation method and device and terminal equipment | |
US20200375561A1 (en) | 3d perspective indicator and generation method therefor and application thereof | |
WO2020244121A1 (en) | Map information processing method and apparatus, and mobile device | |
US20220373996A1 (en) | Computer aided generative design with filtering to facilitate 2.5-axis subtractive manufacturing processes | |
CN105513111A (en) | Sketch-type three-dimensional modeling method based on image contour automatic fitting | |
CN103366402A (en) | Fast attitude synchronization method of three-dimensional virtual clothing | |
CN104615832A (en) | Method for generating 3D model brick paving in decorative tile and marble paving scheme | |
US10311381B2 (en) | Tool and method for conductive trace generation in a 3D model for a hybrid electro-mechanical 3D printer | |
KR101568403B1 (en) | Sketch curtain wall grid creation method | |
KR20050001101A (en) | Method of rendering a 3D image from a 2D image | |
US9639992B2 (en) | Methods and systems for multilevel editing of subdivided polygonal data | |
US20130275089A1 (en) | Systems and Methods of Retopologizing Graphical Data | |
CN115984467A (en) | Multi-room indoor house type graph reconstruction method based on unsupervised learning | |
CN110750816A (en) | Method and device for building model, computer equipment and readable storage medium | |
JP7313433B2 (en) | Construction and Enforcement of Counterconstraints on CAD (Computer Aided Design) Models | |
Gokmen | A Morphogenetic approach for performative building envelope systems using leaf venetian patterns | |
CN115917457A (en) | Computer-aided generation design with filtering to facilitate 2.5-axis subtractive manufacturing process | |
CN110751715B (en) | Model processing method, device, computer equipment and readable storage medium | |
CN104504223A (en) | Inside and outside boundary treatment method of isogeometric analysis | |
US20200074727A1 (en) | Generating 3D Models |
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 |