CN105913372B - Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph - Google Patents

Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph Download PDF

Info

Publication number
CN105913372B
CN105913372B CN201610206811.6A CN201610206811A CN105913372B CN 105913372 B CN105913372 B CN 105913372B CN 201610206811 A CN201610206811 A CN 201610206811A CN 105913372 B CN105913372 B CN 105913372B
Authority
CN
China
Prior art keywords
line segment
combination
line
class label
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610206811.6A
Other languages
Chinese (zh)
Other versions
CN105913372A (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.)
Xiamen Hlwymobi Technology Co Ltd
Original Assignee
Xiamen Hlwymobi 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 Xiamen Hlwymobi Technology Co Ltd filed Critical Xiamen Hlwymobi Technology Co Ltd
Priority to CN201610206811.6A priority Critical patent/CN105913372B/en
Publication of CN105913372A publication Critical patent/CN105913372A/en
Application granted granted Critical
Publication of CN105913372B publication Critical patent/CN105913372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/06Topological mapping of higher dimensional structures onto lower dimensional surfaces
    • G06T3/067Reshaping or unfolding 3D tree structures onto 2D planes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses methods and its system that a kind of two-dimentional house type plan view is converted to three-dimensional graph, and method includes: to obtain CAD two dimension house type plan view;The two-dimentional house type plan view is parsed, the pel of corresponding each figure layer is obtained;Pel in each figure layer is combined, the meta graph recognition of at least one is obtained;The data format of each meta graph recognition is matched with the data format of preset building element respectively;Extract the meta graph recognition of successful match, and corresponding addition class label;According to the class label and the data of the preset correspondence classification, the 3-D graphic of the successful each building element of Corresponding matching is generated.The present invention can be completed automatically online, without human intervention, be easy to use;Most of house type plan view can be matched, adaptable, practicability is high.

Description

Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph
Technical field
The present invention relates to the sides that image conversion art more particularly to a kind of two-dimentional house type plan view are converted to three-dimensional graph Method and its system.
Background technique
Currently, CAD house type plan view is converted to three-dimensional graph, generally require in the d-makings software such as 3ds Max Middle progress.This must just can be carried out on the computer for be mounted with corresponding software, and to the professional standards of operator have compared with High request needs to take a significant amount of time.
In the Chinese patent open file of Publication No. CN104318607A, disclose a kind of by building two dimensional image The method for being converted to three-dimensional structure.This method first pre-processes DXF file, artificial to set different in DXF file build Map data mining platform corresponding to component is built, is identified with the title of setting, is read from corresponding figure layer further according to the title of setting The information of building element successively imports the figure layer in DXF file.It, should because joined map data mining platform pre-treatment step Method can guarantee the building elements such as door, window, wall in correct reading DXF file, but also therefore cannot achieve automatic on-line completion.
Summary of the invention
The technical problems to be solved by the present invention are: providing the side that a kind of two-dimentional house type plan view is converted to three-dimensional graph Method and its system, can automatic on-line realize CAD two dimension house type plan view to three-dimensional graph conversion.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows: it is a kind of two dimension house type plan view be converted to The method of three-dimensional graph, comprising:
Obtain CAD two dimension house type plan view;
The two-dimentional house type plan view is parsed, the pel of corresponding each figure layer is obtained;
Pel in each figure layer is combined, the meta graph recognition of at least one is obtained;
The data format of each meta graph recognition is matched with the data format of preset building element respectively;
Extract the meta graph recognition of successful match, and corresponding addition class label;
According to the class label and the data of the preset correspondence classification, it is successfully each to generate Corresponding matching The 3-D graphic of building element.
The invention further relates to a kind of systems that two-dimentional house type plan view is converted to three-dimensional graph, comprising:
First obtains module, for obtaining CAD two dimension house type plan view;
Second obtains module, for parsing the two-dimentional house type plan view, obtains the pel of corresponding each figure layer;
Composite module obtains the meta graph recognition of at least one for the pel in each figure layer to be combined;
Matching module, for by the data format of each meta graph recognition data format with preset building element respectively It is matched;
Adding module, for extracting the meta graph recognition of successful match, and corresponding addition class label;
Generation module generates corresponding for the data according to the class label and the preset correspondence classification 3-D graphic with successful each building element.
The beneficial effects of the present invention are: by by the number of each meta graph recognition in each figure layer in two-dimentional house type plan view It compares and matches with the data format of building element preset in server respectively according to format, and to the pel group of successful match The data format of conjunction increases class label, finally corresponding 3-D graphic is squeezed out according to class label, to obtain three-dimensional space Figure;The present invention can be completed automatically online, without human intervention, be easy to use;The data of preset building element in server Format can be added, modifies, delete, and can also be adjusted according to the design of present novel, can match most of room Type plan view, adaptable, practicability is high.
Detailed description of the invention
Fig. 1 is the method flow diagram that a kind of two-dimentional house type plan view of the present invention is converted to three-dimensional graph;
Fig. 2 is the method flow diagram of the embodiment of the present invention one;
Fig. 3 is the method flow diagram of the embodiment of the present invention two;
Fig. 4 is the structural schematic diagram for the system that a kind of two-dimentional house type plan view of the present invention is converted to three-dimensional graph;
Fig. 5 is the system structure diagram of the embodiment of the present invention three.
Label declaration:
1, first module is obtained;2, second module is obtained;3, composite module;4, matching module;5, adding module;6, it generates Module;7, module is obtained;8, sending module;
21, reading unit;22, the first grouped element;
31, second packet unit;32, assembled unit;33, the first projecting cell;34, the second projecting cell;35, it first obtains To unit;36, second unit is obtained;37, third obtains unit;38, acquiring unit;
41, the first matching unit;42, the second matching unit;
51, the first adding unit;52, the second adding unit;53, third adding unit;
61, the first generation unit;62, the second generation unit;63, third generation unit.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached Figure is explained in detail.
The most critical design of the present invention is: by the data format of the meta graph recognition of each figure layer and preset data format into Row comparison matching, successful match is then corresponding to add class label, generates 3-D graphic according to class label.
Referring to Fig. 1, a kind of method that two dimension house type plan view is converted to three-dimensional graph, comprising:
Obtain CAD two dimension house type plan view;
The two-dimentional house type plan view is parsed, the pel of corresponding each figure layer is obtained;
Pel in each figure layer is combined, the meta graph recognition of at least one is obtained;
The data format of each meta graph recognition is matched with the data format of preset building element respectively;
Extract the meta graph recognition of successful match, and corresponding addition class label;
According to the class label and the data of the preset correspondence classification, it is successfully each to generate Corresponding matching The 3-D graphic of building element.
As can be seen from the above description, the beneficial effects of the present invention are: it can automatically complete online, without human intervention, just In use;Most of house type plan view can be matched, adaptable, practicability is high.
Further, described " according to the class label and the data of the preset correspondence classification, to generate and correspond to After the 3-D graphic of each building element of successful match ", further comprise:
According to the 3-D graphic, the three-dimensional graph for corresponding to the two-dimentional house type plan view is obtained;
The three-dimensional graph is sent to client.
Seen from the above description, user can watch three-dimensional graph by client, can choose any angle, and can be It is roamed in three-dimensional space, viewpoint can move freely indoors;User can also download three-dimensional space diagram data, be further processed And application.
Further, described " the parsing two-dimentional house type plan view, obtain the pel of corresponding each figure layer " specifically:
The pel in the two-dimentional house type plan view is read, the pel includes line segment, multi-section-line and circular arc;
According to the figure layer where the pel, the pel is grouped, obtains the pel of corresponding each figure layer.
Further, described " pel in each figure layer to be combined, the meta graph recognition of at least one is obtained;By each institute The data format for stating meta graph recognition is matched with the data format of preset building element respectively " specifically:
According to identical slope, the line segment in a figure layer is grouped;
Every line segment in each grouping is subjected to combination of two with other line segments in same grouping, obtains multiple line segment groups It closes;The line segment combination includes the first line segment and second line segment;
The straight line two endpoints of first line segment being projected in respectively where the second line segment;
The straight line two endpoints of the second line segment being projected in respectively where first line segment;
If the subpoint of two endpoints of first line segment all in the second line segment, retains first line segment It is combined with the first line segment that two isometric parallel segments are constituted using the subpoint as the line segment of endpoint, is obtained;
If the subpoint of two endpoints of the second line segment all in first line segment, retains the second line segment It is combined with the second line segment that two isometric parallel segments are constituted using the subpoint as the line segment of endpoint, is obtained;
If the subpoint of the first end point of first line segment is in the second line segment, the second end of the second line segment The subpoint of point then retains using the subpoint of the first end point and the second endpoint as the line of endpoint in first line segment Section, and using the second endpoint and the subpoint of first end point as the line segment of endpoint, obtain what two isometric parallel segments were constituted The combination of third line segment;
By first line segment combination, the number of the data format of second line segment combination or the combination of third line segment and preset wall It is matched according to the data format of format and preset window;
Traverse the combination of multi-section-line and circular arc;
The combined data format of the multi-section-line and circular arc is matched with the data format of preset door.
Further, described " extracting the meta graph recognition of successful match, and corresponding addition class label " specifically:
If between two isometric parallel segments in the first line segment combination, second line segment combination or the combination of third line segment Distance it is consistent with preset wall thickness, then to first line segment combination, second line segment combination or third line segment combination increase The class label of wall;
If class label is that there are other line segments in the line segment combination of wall, and the line segment combines the combination with other line segments Mode can then increase with the combination of other line segments the line segment combination classification of window with the pattern matched of preset window Label, while deleting the class label of wall;
If the combined data format of the multi-section-line and circular arc can with the pattern matched of preset door, to institute State the class label of the combination increase door of multi-section-line and circular arc.
Further, described " according to the class label and the data of the preset correspondence classification, to generate and correspond to The 3-D graphic of each building element of successful match " specifically:
If the class label is wall, three-dimensional wall is generated according to preset height;
If the class label is door, according to the pattern of door corresponding to the class label, gate-width and preset door Height generates three dimensional door;
If the class label is window, according to the pattern of window corresponding to the class label, window width and preset window High, terrain clearance generates three-dimensional window.
Seen from the above description, without being pre-processed to two-dimentional house type plan view, the CAD house type suitable for all standards Map file is user-friendly, it can be achieved that full-automatic online completion, improves user experience.
Referring to figure 4., the present invention also proposes a kind of system that two-dimentional house type plan view is converted to three-dimensional graph, comprising:
First obtains module, for obtaining CAD two dimension house type plan view;
Second obtains module, for parsing the two-dimentional house type plan view, obtains the pel of corresponding each figure layer;
Composite module obtains the meta graph recognition of at least one for the pel in each figure layer to be combined;
Matching module, for by the data format of each meta graph recognition data format with preset building element respectively It is matched;
Adding module, for extracting the meta graph recognition of successful match, and corresponding addition class label;
Generation module generates corresponding for the data according to the class label and the preset correspondence classification 3-D graphic with successful each building element.
Further, the second acquisition module includes:
Reading unit, for reading the pel in the two-dimentional house type plan view, the pel include line segment, multi-section-line and Circular arc;
First grouped element, for obtaining the pel of corresponding each figure layer according to the figure layer where the pel.
Further, the composite module includes:
Second packet unit, for being grouped to the line segment in a figure layer according to identical slope;
Assembled unit, for every line segment in each grouping to be carried out combination of two with other line segments in same grouping, Obtain multiple line segment combinations;The line segment combination includes the first line segment and second line segment;
First projecting cell, for two endpoints of first line segment to be projected in respectively where the second line segment Straight line;
Second projecting cell, for two endpoints of the second line segment to be projected in respectively where first line segment Straight line;
First obtains unit, if the subpoint of two endpoints for first line segment all in the second line segment, Then retain first line segment and using the subpoint as the line segment of endpoint, obtains two isometric parallel segments are constituted first Line segment combination;
Second obtains unit, if the subpoint of two endpoints for the second line segment all in first line segment, Then retain the second line segment and using the subpoint as the line segment of endpoint, obtains two isometric parallel segments are constituted second Line segment combination;
Third obtains unit, if the subpoint of the first end point for first line segment in the second line segment, institute The subpoint of the second endpoint of second line segment is stated in first line segment, then is retained with the first end point and the second endpoint Subpoint is the line segment of endpoint, and using the second endpoint and the subpoint of first end point as the line segment of endpoint, obtain two it is isometric The third line segment combination that parallel segment is constituted;
Acquiring unit, the combination constituted for obtaining multi-section-line and circular arc;
The matching module includes:
First matching unit, for combining the combination of obtained first line segment, second line segment combination or third line segment Data format matched with the data format of the data format of preset wall and preset window;
Second matching unit, combined data format and preset door for being constituted the multi-section-line and circular arc Data format is matched;
The adding module includes:
First adding unit, if first line segment for obtaining combines, second line segment combination or third line segment are combined In the distance between two isometric parallel segments it is consistent with preset wall thickness, then to first line segment combination, the second line Duan Zuhe or the combination of third line segment increase the class label of wall;
Second adding unit, if in line segment combination that class label is wall there are other line segments, and the line segment group Closing then can combine and other line segments the line segment with the pattern matched of preset window with the combination of other line segments Combination increase the class label of window, while deleting the class label of wall;
Third adding unit, if the combined data format constituted for the multi-section-line and circular arc can with it is preset The pattern matched of door, the then combination constituted to the multi-section-line and circular arc increase the class label of door.
Further, the generation module includes:
First generation unit generates three-dimensional wall according to preset height if being wall for the class label;
Second generation unit, if being door, the sample according to door corresponding to the class label for the class label Formula, gate-width and preset door height generate three dimensional door;
Third generation unit, if being window, the sample according to window corresponding to the class label for the class label Formula, window width and preset window are high, terrain clearance generates three-dimensional window.
Embodiment one
Referring to figure 2., the embodiment of the present invention one are as follows: a kind of two dimension house type plan view is converted to the side of three-dimensional graph Method includes the following steps:
S1: CAD two dimension house type plan view is obtained;The two-dimentional house type that user can upload DXF or DWG format by client is flat Face figure.
S2: the pel in the two-dimentional house type plan view is read, the pel includes line segment, multi-section-line and circular arc.
S3: according to the figure layer where the pel, being grouped the pel, obtains the pel of corresponding each figure layer;I.e. Obtain line segment, multi-section-line and the circular arc in each figure layer.
S4: the pel in each figure layer is combined, and obtains the meta graph recognition of at least one;It will pel in each figure layer All possible combination is carried out according to default rule;It include the group that can form the pel of building element in meta graph recognition It closes.
S5: by the data format of each meta graph recognition respectively with the data format of building element preset in server into Row matching;The data format of preset building element could also say that the data format of preset meta graph recognition in server, i.e., The combination of pel in each figure layer is compared with the combination of preset pel and is matched.
S6: the meta graph recognition of successful match, and corresponding addition class label are extracted;The meta graph recognition of successful match is added Add the class label of corresponding building element, such as wall, window, door;Preferably, the class label further comprises specific building structure The pattern of part.
S7: according to the class label and the data of the preset correspondence classification, it is successfully each to generate Corresponding matching The 3-D graphic of a building element.
S8: according to the 3-D graphic, the three-dimensional graph for corresponding to the two-dimentional house type plan view is obtained;Optionally, will The three-dimensional graph saves on the server.
S9: the three-dimensional graph is sent to client;User can watch three-dimensional graph, Ke Yixuan by client Any angle is selected, and can be roamed in three dimensions, viewpoint can move freely indoors;Optionally, user can also download three Dimension space diagram data is further processed and applies.
The present embodiment by by the meta graph recognition in each figure layer in two-dimentional house type plan view respectively with it is pre- in server If the data format of building element compare matching, and class label, last root are increased to the meta graph recognition of successful match Corresponding 3-D graphic is squeezed out according to class label, to obtain three-dimensional graph;Without being located in advance to two-dimentional house type plan view Reason, the CAD house type map file suitable for all standards, it can be achieved that automatically complete, user-friendly, raising user's body online It tests.
Embodiment two
Referring to figure 3., the present embodiment is a kind of specific implementation to step S4, S5, S6 and S7 in embodiment one, phase It is not repeated, includes the following steps: with place
S401: according to identical slope, the line segment in a figure layer is grouped;I.e. by the identical line of slope in a figure layer Section is divided into one group, and the slope of the line segment in each line segment grouping is identical.
S402: every line segment in each grouping is subjected to combination of two with other line segments in same grouping, is obtained multiple Line segment combination;The line segment combination includes the first line segment and second line segment;
S403: two endpoints of two lines section are all projected to the straight line where another line segment;I.e. by the First Line Two endpoints of section are projected in the straight line where the second line segment respectively;Two endpoints of the second line segment are projected respectively Straight line where first line segment.
S404: the subpoint of two endpoints of the first line segment is judged whether all in the second line segment, if so, executing Step S405, if it is not, thening follow the steps S406.
S405: retaining first line segment and using the subpoint as the line segment of endpoint, obtains two isometric parallel segments The the first line segment combination constituted;Execute step S501.
S406: the subpoint of two endpoints of second line segment is judged whether all in first line segment, if so, executing Step S407, if it is not, thening follow the steps S408.
S407: retaining the second line segment and using the subpoint as the line segment of endpoint, obtains two isometric parallel segments The second line segment combination constituted;Execute step S501.
S408: judge whether the subpoint for meeting the first end point of first line segment in the second line segment, it is described The subpoint of second endpoint of second line segment in first line segment, that is, judge first line segment and second line segment whether portion Split-phase pair, if so, thening follow the steps S409, if not, then it represents that the two lines section is not opposite.
S409: retain using the subpoint of the first end point and the second endpoint as the line segment of endpoint, and with the second endpoint Subpoint with first end point is the line segment of endpoint, obtains the third line segment combination that two isometric parallel segments are constituted;It executes Step S501.
S410: by a figure layer multi-section-line and circular arc carry out all possible combination, obtain multi-section-line and circular arc institute structure At combination;Execute step S502;
S501: two in the combination of obtained first line segment, second line segment combination or the combination of third line segment are isometric Parallel segment is matched with the data format of the data format of preset wall and preset window;It preferably, can be by described two The distance between isometric parallel segment is compared with preset wall thickness;Execute step S601.
S502: the combination that traversal multi-section-line and circular arc are constituted;Because door is generally by multistage in two-dimentional house type plan view Line and circular arc composition.
S503: the data format of combined data format and preset door that the multi-section-line and circular arc are constituted carries out Matching;Execute step S606.
S601: judge two in first line segment combination, second line segment combination or the combination of third line segment it is isometric parallel Whether the distance between line segment is consistent with preset wall thickness, if so, thening follow the steps S602.
S602: increase first line segment combination, second line segment combination or the combination of third line segment the class label of wall.
S603: class label is judged to whether there is other line segments in the combination of the line segment of wall, if so, thening follow the steps S604, if it is not, executing step S701.
S604: judge whether the combination of the line segment combination and other line segments can be with the data format of preset window Matching, if so, thening follow the steps S605.
S605: increase the line segment combination class label of window with the combination of other line segments, while deleting the classification of wall Label;Execute step S702.The pattern for the window that the class label of the window also includes, for example, a kind of window pattern is isometric by four Parallel segment composition then adds the class label of the window of corresponding pattern to four isometric parallel segments.
S606: judge whether the combined data format that multi-section-line and circular arc are constituted can be with the data lattice of preset door Formula matching, if so, thening follow the steps S607.
S607: the combination constituted to the multi-section-line and circular arc increases the class label of door;Execute step S703.It is described Such as the pattern of the class label of the door door that also includes, for example, the rectangle that single open-door is surrounded by multi-section-line is formed with circular arc, The third vertex of middle rectangle is overlapped with a vertex of circular arc, then adds single open-door to the combination of such multi-section-line and circular arc Class label.
S701: three-dimensional wall is generated according to preset height.
S702: according to the pattern of window corresponding to the class label, window width and preset window, high, terrain clearance generates three Tie up window;Three-dimensional window can be generated according to pattern, window width, window height, the terrain clearance table of comparisons of the preset window built in server.
S703: three dimensional door is generated according to the pattern of door corresponding to the class label, gate-width and preset door height;It can root Three dimensional door is generated according to the high table of comparisons of pattern, gate-width, the door of the preset door built in server.
Preferably, after step S402, it can first judge first line segment and second line segment whether in straight line On, if not point-blank, then the step of after carrying out, two isometric parallel lines can be directly excluded before step S601 The case where section distance is 0, can be improved whole efficiency.
Preferably, before generating three-dimensional wall, all wall combinations are traversed, the wall combination includes that two class labels are The meta graph recognition of wall, judges whether described two meta graph recognitions have coincidence, if so, then indicating represented by described two meta graph recognitions Two walls can intersect, determine intersection point, and two walls are accordingly extended to intersection point, generation effect can be improved.
The data format of preset building element can be added, modifies, delete in server, can also be according to current Novel design adjusts, and can match most of house type plan view, adaptable, and practicability is high.
Embodiment three
Referring to figure 5., the present embodiment is that a kind of two-dimentional house type plan view of corresponding above-described embodiment is converted to three-dimensional space The system of figure, comprising:
First obtains module 1, for obtaining CAD two dimension house type plan view;
Second obtains module 2, for parsing the two-dimentional house type plan view, obtains the pel of corresponding each figure layer;
Composite module 3 obtains the meta graph recognition of at least one for the pel in each figure layer to be combined;
Matching module 4, for by the data format of each meta graph recognition respectively with the data lattice of preset building element Formula is matched;
Adding module 5, for extracting the meta graph recognition of successful match, and corresponding addition class label;
Generation module 6 is generated and is corresponded to for the data according to the class label and the preset correspondence classification The 3-D graphic of each building element of successful match.
Further include:
Module 7 is obtained, for according to the 3-D graphic, obtaining corresponding to the three-dimensional space of the two-dimentional house type plan view Figure;
Sending module 8, for the three-dimensional graph to be sent to client.
Described second, which obtains module 2, includes:
Reading unit 21, for reading the pel in the two-dimentional house type plan view, the pel includes line segment, multi-section-line And circular arc;
First grouped element 22, for obtaining the pel of corresponding each figure layer according to the figure layer where the pel.
The composite module 3 includes:
Second packet unit 31, for being grouped to the line segment in a figure layer according to identical slope;
Assembled unit 32, for every line segment in each grouping to be carried out group two-by-two with other line segments in same grouping It closes, obtains multiple line segment combinations;The line segment combination includes the first line segment and second line segment;
First projecting cell 33, for two endpoints of first line segment to be projected in respectively where the second line segment Straight line;
Second projecting cell 34, for two endpoints of the second line segment to be projected in respectively where first line segment Straight line;
First obtains unit 35, if the subpoint of two endpoints for first line segment is all in the second line segment It is interior, then retain first line segment and using the subpoint as the line segment of endpoint, obtains what two isometric parallel segments were constituted The combination of first line segment;
Second obtains unit 36, if the subpoint of two endpoints for the second line segment is all in first line segment It is interior, then retain the second line segment and using the subpoint as the line segment of endpoint, obtains what two isometric parallel segments were constituted Second line segment combination;
Third obtains unit 37, if the subpoint of the first end point for first line segment in the second line segment, The subpoint of second endpoint of the second line segment then retains in first line segment with the first end point and the second endpoint Subpoint be endpoint line segment, and using the second endpoint and the subpoint of first end point as the line segment of endpoint, obtain two etc. The third line segment combination that long parallel segment is constituted;
Acquiring unit 38, the combination constituted for obtaining multi-section-line and circular arc;
The matching module 4 includes:
First matching unit 41, for combining obtained first line segment, second line segment combines or third line segment group The data format of conjunction is matched with the data format of the data format of preset wall and preset window;
Second matching unit 42, combined data format and preset door for being constituted the multi-section-line and circular arc Data format matched;
The adding module 5 includes:
First adding unit 51, if first line segment for obtaining combines, second line segment combines or third line segment group The distance between two isometric parallel segments in conjunction are consistent with preset wall thickness, then to first line segment combination, second Line segment combination or the combination of third line segment increase the class label of wall;
Second adding unit 52, if in line segment combination that class label is wall there are other line segments, and the line segment Combination and the combination of other line segments then can combine and other lines the line segment with the pattern matched of preset window The combination of section increases the class label of window, while deleting the class label of wall;
Third adding unit 53, if for the multi-section-line and circular arc the data format for constituting combination can with it is default Door pattern matched, then to the multi-section-line and circular arc constituted combination increase door class label.
The generation module 6 includes:
First generation unit 61 generates three-dimensional wall according to preset height if being wall for the class label;
Second generation unit 62, if being door for the class label, according to door corresponding to the class label Pattern, gate-width and preset door height generate three dimensional door;
Third generation unit 63, if being window for the class label, according to window corresponding to the class label Pattern, window width and preset window are high, terrain clearance generates three-dimensional window.
In conclusion a kind of two-dimentional house type plan view provided by the invention is converted to the method for three-dimensional graph and its is System, by by the data format of each meta graph recognition in each figure layer in two-dimentional house type plan view respectively with it is preset in server The data format of building element compares matching, and increases class label to the meta graph recognition of successful match, finally according to class Distinguishing label squeezes out corresponding 3-D graphic, to obtain three-dimensional graph;The present invention is not necessarily to carry out two-dimentional house type plan view pre- Processing, suitable for the CAD house type map file of all standards, can automatically complete online, without human intervention, be easy to use;Clothes The data format of preset building element can be added, modifies, delete in business device, can also be according to the design of present novel It adjusts, most of house type plan view can be matched, adaptable, practicability is high.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include In scope of patent protection of the invention.

Claims (8)

1. a kind of method that two dimension house type plan view is converted to three-dimensional graph characterized by comprising
Obtain CAD two dimension house type plan view;
The two-dimentional house type plan view is parsed, the pel of corresponding each figure layer is obtained;
Pel in each figure layer is combined, the meta graph recognition of at least one is obtained;
The data format of each meta graph recognition is matched with the data format of preset building element respectively;
Extract the meta graph recognition of successful match, and corresponding addition class label;
According to the class label and the data of the preset correspondence classification, Corresponding matching successfully each building is generated The 3-D graphic of component;
It is described " pel in each figure layer to be combined, the meta graph recognition of at least one is obtained;By the number of each meta graph recognition Matched respectively with the data format of preset building element according to format " specifically:
According to identical slope, the line segment in a figure layer is grouped;
Every line segment in each grouping is subjected to combination of two with other line segments in same grouping, obtains multiple line segments combinations; The line segment combination includes the first line segment and second line segment;
The straight line two endpoints of first line segment being projected in respectively where the second line segment;
The straight line two endpoints of the second line segment being projected in respectively where first line segment;
If the subpoint of two endpoints of first line segment all in the second line segment, retain first line segment and with The subpoint is the line segment of endpoint, obtains the first line segment combination that two isometric parallel segments are constituted;
If the subpoint of two endpoints of the second line segment all in first line segment, retain the second line segment and with The subpoint is the line segment of endpoint, obtains the second line segment combination that two isometric parallel segments are constituted;
If the subpoint of the first end point of first line segment in the second line segment, the second endpoint of the second line segment Subpoint in first line segment, then retain using the subpoint of the first end point and the second endpoint as the line segment of endpoint, with And using the second endpoint and the subpoint of first end point as the line segment of endpoint, the third line that two isometric parallel segments are constituted is obtained Duan Zuhe;
By the combination of obtained first line segment, the data format of second line segment combination or the combination of third line segment and preset wall Data format and the data format of preset window are matched;
Obtain the combination that multi-section-line and circular arc are constituted;
The combined data format that the multi-section-line and circular arc are constituted is matched with the data format of preset door.
2. the method that two dimension house type plan view according to claim 1 is converted to three-dimensional graph, which is characterized in that described " according to the class label and the data of the preset correspondence classification, generate Corresponding matching successfully each building element 3-D graphic " after, further comprise:
According to the 3-D graphic, the three-dimensional graph for corresponding to the two-dimentional house type plan view is obtained;
The three-dimensional graph is sent to client.
3. the method that two dimension house type plan view according to claim 1 is converted to three-dimensional graph, which is characterized in that described " the parsing two-dimentional house type plan view, obtain the pel of corresponding each figure layer " specifically:
The pel in the two-dimentional house type plan view is read, the pel includes line segment, multi-section-line and circular arc;
According to the figure layer where the pel, the pel is grouped, obtains the pel of corresponding each figure layer.
4. the method that two dimension house type plan view according to claim 1 is converted to three-dimensional graph, which is characterized in that described " extracting the meta graph recognition of successful match, and corresponding addition class label " specifically:
If obtain first line segment combination, second line segment combination or third line segment combination in two isometric parallel segments it Between distance it is consistent with preset wall thickness, then to first line segment combination, second line segment combination or third line segment combination increase Add the class label of wall;
If class label is that there are other line segments in the line segment combination of wall, and the line segment combines the combination with other line segments The classification mark of window can then be increased line segment combination with the combination of other line segments with the pattern matched of preset window Label, while deleting the class label of wall;
If the combined data format that the multi-section-line and circular arc are constituted can with the pattern matched of preset door, it is right The combination of the multi-section-line and circular arc increases the class label of door.
5. the method that two dimension house type plan view according to claim 1 is converted to three-dimensional graph, which is characterized in that described " according to the class label and the data of the preset correspondence classification, generate Corresponding matching successfully each building element 3-D graphic " specifically:
If the class label is wall, three-dimensional wall is generated according to preset height;
If the class label is door, according to the pattern of door corresponding to the class label, gate-width and preset Men Gaosheng At three dimensional door;
If the class label is window, according to the pattern of window corresponding to the class label, window width and preset window it is high, from Ground height generates three-dimensional window.
6. a kind of system that two dimension house type plan view is converted to three-dimensional graph characterized by comprising
First obtains module, for obtaining CAD two dimension house type plan view;
Second obtains module, for parsing the two-dimentional house type plan view, obtains the pel of corresponding each figure layer;
Composite module obtains the meta graph recognition of at least one for the pel in each figure layer to be combined;
Matching module, for carrying out the data format of each meta graph recognition with the data format of preset building element respectively Matching;
Adding module, for extracting the meta graph recognition of successful match, and corresponding addition class label;
Generation module, for according to the data of the class label and the preset correspondence classification, generate Corresponding matching at The 3-D graphic of each building element of function;
The composite module includes:
Second packet unit, for being grouped to the line segment in a figure layer according to identical slope;
Assembled unit is obtained for every line segment in each grouping to be carried out combination of two with other line segments in same grouping Multiple line segment combinations;The line segment combination includes the first line segment and second line segment;
First projecting cell is straight where the second line segment for being projected in two endpoints of first line segment respectively Line;
Second projecting cell is straight where first line segment for being projected in two endpoints of the second line segment respectively Line;
First obtains unit, if the subpoint of two endpoints for first line segment is protected all in the second line segment It stays first line segment and using the subpoint as the line segment of endpoint, obtains the first line segment that two isometric parallel segments are constituted Combination;
Second obtains unit, if the subpoint of two endpoints for the second line segment is protected all in first line segment It stays the second line segment and using the subpoint as the line segment of endpoint, obtains the second line segment that two isometric parallel segments are constituted Combination;
Third obtains unit, if the subpoint of the first end point for first line segment in the second line segment, described The subpoint of second endpoint of two line segments then retains in first line segment with the projection of the first end point and the second endpoint Point is the line segment of endpoint, and using the second endpoint and the subpoint of first end point as the line segment of endpoint, obtain two it is isometric parallel The third line segment combination that line segment is constituted;
Acquiring unit, the combination constituted for obtaining multi-section-line and circular arc;
The matching module includes:
First matching unit, the number for combining the combination of obtained first line segment, second line segment combination or third line segment It is matched according to format with the data format of the data format of preset wall and preset window;
Second matching unit, the data of combined data format and preset door for being constituted the multi-section-line and circular arc Format is matched;
The adding module includes:
First adding unit, if first line segment for obtaining combines, second line segment combination or third line segment combination in The distance between two isometric parallel segments are consistent with preset wall thickness, then to first line segment combination, second line segment group It closes or third line segment combines the class label for increasing wall;
Second adding unit, if for class label be wall line segment combination in exist other line segments, and the line segment combination and The combination of other line segments can then combine the group with other line segments with the pattern matched of preset window to the line segment The class label for increasing window is closed, while deleting the class label of wall;
Third adding unit, if the combined data format for the multi-section-line and circular arc to be constituted can be with preset door Pattern matched, the then combination constituted to the multi-section-line and circular arc increase the class label of door.
7. the system that two dimension house type plan view according to claim 6 is converted to three-dimensional graph, which is characterized in that described Second, which obtains module, includes:
Reading unit, for reading the pel in the two-dimentional house type plan view, the pel includes line segment, multi-section-line and circle Arc;
First grouped element, for obtaining the pel of corresponding each figure layer according to the figure layer where the pel.
8. the system that two dimension house type plan view according to claim 6 is converted to three-dimensional graph, which is characterized in that described Generation module includes:
First generation unit generates three-dimensional wall according to preset height if being wall for the class label;
Second generation unit, if being door, pattern, door according to door corresponding to the class label for the class label Wide and preset door height generates three dimensional door;
Third generation unit, if being window, pattern, window according to window corresponding to the class label for the class label Wide and preset window is high, terrain clearance generates three-dimensional window.
CN201610206811.6A 2016-04-05 2016-04-05 Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph Active CN105913372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610206811.6A CN105913372B (en) 2016-04-05 2016-04-05 Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610206811.6A CN105913372B (en) 2016-04-05 2016-04-05 Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph

Publications (2)

Publication Number Publication Date
CN105913372A CN105913372A (en) 2016-08-31
CN105913372B true CN105913372B (en) 2019-04-02

Family

ID=56745263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610206811.6A Active CN105913372B (en) 2016-04-05 2016-04-05 Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph

Country Status (1)

Country Link
CN (1) CN105913372B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918665B (en) * 2017-11-23 2021-12-14 上海模袋网络科技有限公司 System and method for rapid rendering of three-dimensional model and CAD information query
CN108597026A (en) * 2018-04-09 2018-09-28 中国电子科技集团公司第二十八研究所 A method of three-dimensional building model is quickly generated based on two-dintension CAD drawing
CN109977474A (en) * 2019-02-27 2019-07-05 壹仟零壹艺网络科技(北京)有限公司 Three-dimensional entity model method and system are automatically generated by AutoCAD two dimension house type
CN110033523A (en) * 2019-04-19 2019-07-19 深圳格调网络运营有限公司 A kind of Decoration Design building model three-dimensional space intelligent conversion system
CN110378048A (en) * 2019-07-24 2019-10-25 广东电网有限责任公司 A kind of online analyzing method expanded based on industry by electrical engineering CAD diagram paper
CN111339336B (en) * 2020-03-11 2021-04-30 贝壳找房(北京)科技有限公司 Analysis method and system for house type data
CN111611936B (en) * 2020-05-22 2021-05-14 青矩技术股份有限公司 Automatic identification system for similar vector diagrams in CAD drawings
CN113297651B (en) * 2020-07-16 2024-06-14 每平每屋(上海)科技有限公司 Three-dimensional house type data generation method, device and equipment
CN113011327A (en) * 2021-03-18 2021-06-22 苏州市开鑫智慧教育科技有限公司 Three-dimensional graph recognition method, device, equipment and storage medium
CN117635837B (en) * 2023-12-04 2024-07-05 壹仟零壹艺数智(北京)科技有限公司 Quick three-dimensional method and system for two-dimensional CAD drawing data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673410A (en) * 2008-09-12 2010-03-17 中国科学院计算技术研究所 Vector building drawing based method for reconstructing three-dimensional model

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7629985B2 (en) * 2006-01-26 2009-12-08 Autodesk, Inc. Method for creation of architectural space objects for area and volume calculation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673410A (en) * 2008-09-12 2010-03-17 中国科学院计算技术研究所 Vector building drawing based method for reconstructing three-dimensional model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于DXF数据的建筑物三维建模;张国栋;《万方数据库》;20120903;全文

Also Published As

Publication number Publication date
CN105913372A (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN105913372B (en) Two-dimentional house type plan view is converted to the method and its system of three-dimensional graph
Malinverni et al. Deep learning for semantic segmentation of 3D point cloud
Wang et al. Lidar point clouds to 3-D urban models $: $ A review
CN104376596B (en) A kind of three-dimensional scene structure modeling and register method based on single image
CN105989604A (en) Target object three-dimensional color point cloud generation method based on KINECT
Winkler et al. Multi‐scale geometry interpolation
WO2015139574A1 (en) Static object reconstruction method and system
CN106570468A (en) Method for reconstructing LiDAR original point cloud building contour
CN104751505A (en) Three-dimensional scene rendering algorithm based on LOD (Levels of Detail) model and quadtree level structure
CN110148084A (en) By method, apparatus, equipment and the storage medium of 2D image reconstruction 3D model
CN110544298B (en) Substation modeling method, device, computer equipment and storage medium
CN109425348A (en) A kind of while positioning and the method and apparatus for building figure
Liu et al. Finding surface correspondences using symmetry axis curves
CN105469355B (en) The method for extracting 2.5 dimension map contour of building based on city threedimensional model
CN113223159B (en) Single remote sensing image three-dimensional modeling method based on target texture virtualization processing
Koutsoudis et al. 3D pottery shape matching using depth map images
CN110021043A (en) A kind of scene depth acquisition methods based on Stereo matching and confidence spread
Wang et al. A local structure and direction-aware optimization approach for three-dimensional tree modeling
CN110009745A (en) According to plane primitive and model-driven to the method for data reduction plane
CN110717978B (en) Three-dimensional head reconstruction method based on single image
CN109598301A (en) Detection zone minimizing technology, device, terminal and storage medium
CN104866687B (en) Support the dynamically spatial-data index construction method of STL data source
CN107679127A (en) Point cloud information parallel extraction method and its system based on geographical position
CN118230391A (en) 3D face enhancement recognition system based on point cloud and RGB image
Ni et al. Edge guidance network for semantic segmentation of high resolution remote sensing images

Legal Events

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