CN105913372A - Two-dimensional room plane graph to three-dimensional graph conversion method and system thereof - Google Patents
Two-dimensional room plane graph to three-dimensional graph conversion method and system thereof Download PDFInfo
- Publication number
- CN105913372A CN105913372A CN201610206811.6A CN201610206811A CN105913372A CN 105913372 A CN105913372 A CN 105913372A CN 201610206811 A CN201610206811 A CN 201610206811A CN 105913372 A CN105913372 A CN 105913372A
- Authority
- CN
- China
- Prior art keywords
- line segment
- combination
- line
- graph
- class label
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000006243 chemical reaction Methods 0.000 title abstract description 4
- 239000002131 composite material Substances 0.000 claims description 8
- 150000001875 compounds Chemical class 0.000 claims description 6
- 230000008878 coupling Effects 0.000 claims description 5
- 238000010168 coupling process Methods 0.000 claims description 5
- 238000005859 coupling reaction Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000007418 data mining Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000001125 extrusion Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000002203 pretreatment Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/06—Topological mapping of higher dimensional structures onto lower dimensional surfaces
- G06T3/067—Reshaping 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 a two-dimensional room plane graph to three-dimensional graph conversion method and a system thereof. The method comprises steps that a CAD two-dimensional room plane graph is acquired; the two-dimensional room plane graph is analyzed to acquire graphic primitives corresponding to each graph layer; the graphic primitives of each graph layer are combined to acquire at least one graphic primitive combination; a data format of each graphic primitive combination is matched with a data format of a preset building element; all the successfully-matched graphic primitive combinations are extracted, and category labels are correspondingly added; according to the category labels and the corresponding preset category data, three-dimensional graphs corresponding to all the successfully-matched building elements are generated. Through the method, operation can be automatically accomplished online without manual operation, convenient use is realized, most room plane graphs can be matched, and the method further has properties of strong adaptability and high practicality.
Description
Technical field
The present invention relates to image conversion art, particularly relate to a kind of two dimension house type plane graph and be converted to three dimensions
The method of figure and system thereof.
Background technology
At present, CAD house type plane graph is converted to three-dimensional graph, it is generally required in three-dimensionals such as 3ds Max
Software for producing is carried out.This just can must be carried out on the computer be mounted with corresponding software, and to operation
The professional standards of personnel have higher requirements, and need to take a significant amount of time.
In the Chinese patent open file of Publication No. CN104318607A, disclose a kind of by building two
The method that dimension image is converted to three dimensional structure.First the method carries out pretreatment to DXF file, manually sets
The map data mining platform corresponding to building element different in DXF file, is identified with the title set, further according to
The title set reads the information of building element from corresponding diagram layer, carries out the figure layer in DXF file successively
Import.Because adding map data mining platform pre-treatment step, the method can guarantee that door in correct reading DXF file,
The building element such as window, wall, but the most therefore cannot realize automatic on-line and complete.
Summary of the invention
The technical problem to be solved is: provide a kind of two dimension house type plane graph to be converted to three dimensions
The method of figure and system thereof, can realize the conversion to three-dimensional graph of the CAD two dimension house type plane graph by automatic on-line.
In order to solve above-mentioned technical problem, the technical solution used in the present invention is: a kind of two dimension house type plane graph
The method being converted to three-dimensional graph, including:
Obtain CAD two dimension house type plane graph;
Resolve described two dimension house type plane graph, obtain the pel of corresponding each figure layer;
Pel in each figure layer is combined, obtains the meta graph recognition of at least one;
By the data form of each described meta graph recognition, data form with default building element is carried out respectively
Join;
Extract the described meta graph recognition that the match is successful, and corresponding interpolation class label;
According to described class label, and the data of the described classification of correspondence preset, generate Corresponding matching success
The 3-D graphic of each building element.
The invention still further relates to a kind of two dimension house type plane graph and be converted to the system of three-dimensional graph, including:
First acquisition module, is used for obtaining CAD two dimension house type plane graph;
Second acquisition module, is used for resolving described two dimension house type plane graph, obtains the pel of corresponding each figure layer;
Composite module, for being combined by the pel in each figure layer, obtains the meta graph recognition of at least one;
Matching module, for by the data form of each described meta graph recognition respectively with the number of default building element
Mate according to form;
Add module, for extracting the described meta graph recognition that the match is successful, and corresponding interpolation class label;
Generation module, is used for according to described class label, and the data of the described classification of correspondence preset, raw
Become the 3-D graphic of corresponding each building element that the match is successful.
The beneficial effects of the present invention is: by by each figure tuple in each figure layer in two dimension house type plane graph
The data form closed carries out contrast with the data form of building element preset in server respectively and mates, and right
The data form of the meta graph recognition that the match is successful increases class label, corresponding finally according to class label extrusion
3-D graphic, thus obtain three-dimensional graph;The present invention can complete the most online, it is not necessary to manual operation,
It is easy to use;The data form of the building element preset in server can be added, revises, delete,
Can also adjust according to the design of present novel, can match most house type plane graph, strong adaptability,
Practicality is high.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that the present invention a kind of two dimension house type plane graph 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 representation that the present invention a kind of two dimension house type plane graph is converted to the system of three-dimensional graph;
Fig. 5 is the system structure schematic diagram of the embodiment of the present invention three.
Label declaration:
1, the first acquisition module;2, the second acquisition module;3, composite module;4, matching module;5, add
Add module;6, generation module;7, module is obtained;8, sending module;
21, unit is read;22, the first grouped element;
31, the second grouped element;32, assembled unit;33, the first projecting cell;34, the second projection is single
Unit;35, first obtains unit;36, second obtains unit;37, the 3rd obtains unit;38, list is obtained
Unit;
41, the first matching unit;42, the second matching unit;
51, the first adding device;52, the second adding device;53, the 3rd adding device;
61, the first signal generating unit;62, the second signal generating unit;63, the 3rd signal generating unit.
Detailed description of the invention
By describing the technology contents of the present invention in detail, being realized purpose and effect, below in conjunction with embodiment also
Accompanying drawing is coordinated to be explained in detail.
The design of most critical of the present invention is: by the data form of the meta graph recognition of each figure layer and the data preset
Form carries out contrast coupling, and the match is successful then corresponding adds class label, generates graphics according to class label
Shape.
Refer to Fig. 1, a kind of method that two dimension house type plane graph is converted to three-dimensional graph, including:
Obtain CAD two dimension house type plane graph;
Resolve described two dimension house type plane graph, obtain the pel of corresponding each figure layer;
Pel in each figure layer is combined, obtains the meta graph recognition of at least one;
By the data form of each described meta graph recognition, data form with default building element is carried out respectively
Join;
Extract the described meta graph recognition that the match is successful, and corresponding interpolation class label;
According to described class label, and the data of the described classification of correspondence preset, generate Corresponding matching success
The 3-D graphic of each building element.
Knowable to foregoing description, the beneficial effects of the present invention is: can complete the most online, it is not necessary to artificial
Operation, it is simple to use;Can match most house type plane graph, strong adaptability, practicality is high.
Further, described " according to described class label, and the data of the described classification of correspondence preset,
Generate the 3-D graphic of Corresponding matching successfully each building element " after, farther include:
According to described 3-D graphic, obtain the three-dimensional graph of corresponding described two dimension house type plane graph;
Described three-dimensional graph is sent to client.
Seen from the above description, user can watch three-dimensional graph by client, can select arbitrarily angled,
And can roam in three dimensions, viewpoint can move freely in indoor;User also can download three-dimensional graph
Data, are processed further and apply.
Further, described " resolving described two dimension house type plane graph, obtain the pel of corresponding each figure layer " tool
Body is:
Reading the pel in described two dimension house type plane graph, described pel includes line segment, multi-section-line and circular arc;
According to the figure layer at described pel place, described pel is grouped, obtains the pel of corresponding each figure layer.
Further, described " pel in each figure layer be combined, obtain the meta graph recognition of at least one;
The data form of each described meta graph recognition is mated with the data form of default building element respectively " tool
Body is:
According to identical slope, the line segment in a figure layer is grouped;
Every line segment in each packet is carried out combination of two with other line segments in same packet, obtains multiple
Line segment combines;The combination of described line segment includes the first line segment and the second line segment;
Two end points of described first line segment are projected in respectively the straight line at described second line segment place;
Two end points of described second line segment are projected in respectively the straight line at described first line segment place;
If the subpoint of two end points of described first line segment is all in described second line segment, then retain described
One line segment and the line segment with described subpoint as end points, obtain the First Line that two isometric parallel segments are constituted
Duan Zuhe;
If the subpoint of two end points of described second line segment is all in described first line segment, then retain described
Two line segments and the line segment with described subpoint as end points, obtain the second line that two isometric parallel segments are constituted
Duan Zuhe;
If the subpoint of the first end points of described first line segment is in described second line segment, described second line segment
Double-pointed subpoint in described first line segment, then retains with described first end points and double-pointed throwing
Shadow point is the line segment of end points, and the line segment with the subpoint of the second end points and the first end points as end points, obtains
Article two, the 3rd line segment combination that isometric parallel segment is constituted;
By described first line segment combination, second line segment combination or the 3rd line segment combination data form with preset
The data form of the data form of wall and default window mates;
Traversal multi-section-line and the combination of circular arc;
The data form of the data form of described multi-section-line and the combination of circular arc with the door preset is mated.
Further, described " extracting the described meta graph recognition that the match is successful, and corresponding interpolation class label "
Particularly as follows:
If two articles of isometric parallel lines in described first line segment combination, the second line segment combination or the combination of the 3rd line segment
Distance between Duan with preset wall thickness consistent, then to described first line segment combination, second line segment combine or
3rd line segment combination increases the class label of wall;
If the line segment combination internal memory that class label is wall is at other line segments, and described line segment combines and other line segments
Compound mode can be with the pattern matched of default window, then to the combination of described line segment with other line segments
Combination increases the class label of window, deletes the class label of wall simultaneously;
If the data form of the combination of described multi-section-line and circular arc can with the pattern matched of default door,
Then described multi-section-line and circular arc are combined and increase the class label of door.
Further, described " according to described class label, and the data of the described classification of correspondence preset,
Generate the 3-D graphic of Corresponding matching successfully each building element " particularly as follows:
If described class label is wall, then generate three-dimensional body of wall according to the height preset;
If described class label is door, then according to the pattern of door corresponding to described class label, gate-width and pre-
If door high generation three dimensional door;
If described class label is window, then according to the pattern of window corresponding to described class label, window width and pre-
If window is high, terrain clearance generates three-dimensional window.
Seen from the above description, it is not necessary to two dimension house type plane graph is carried out pretreatment, it is adaptable to all standards
CAD floor plan file, can realize automatically completing online, be user-friendly to, and improves Consumer's Experience.
Refer to Fig. 4, the present invention also proposes a kind of two dimension house type plane graph and is converted to the system of three-dimensional graph,
Including:
First acquisition module, is used for obtaining CAD two dimension house type plane graph;
Second acquisition module, is used for resolving described two dimension house type plane graph, obtains the pel of corresponding each figure layer;
Composite module, for being combined by the pel in each figure layer, obtains the meta graph recognition of at least one;
Matching module, for by the data form of each described meta graph recognition respectively with the number of default building element
Mate according to form;
Add module, for extracting the described meta graph recognition that the match is successful, and corresponding interpolation class label;
Generation module, is used for according to described class label, and the data of the described classification of correspondence preset, raw
Become the 3-D graphic of corresponding each building element that the match is successful.
Further, described second acquisition module includes:
Read unit, for read described two dimension house type plane graph in pel, described pel include line segment,
Multi-section-line and circular arc;
First grouped element, for the figure layer according to described pel place, obtains the pel of corresponding each figure layer.
Further, described composite module includes:
Second grouped element, for according to identical slope, is grouped the line segment in a figure layer;
Assembled unit, for carrying out every line segment in each packet two-by-two with other line segments in same packet
Combination, obtains the combination of multiple line segment;The combination of described line segment includes the first line segment and the second line segment;
First projecting cell, for being projected in described second line segment respectively by two end points of described first line segment
The straight line at place;
Second projecting cell, for being projected in described first line segment respectively by two end points of described second line segment
The straight line at place;
First obtains unit, if being used for the subpoint of two end points of described first line segment all at described second line
Section in, then retain described first line segment and the line segment with described subpoint as end points, obtain two isometric parallel
The first line segment combination that line segment is constituted;
Second obtains unit, if being used for the subpoint of two end points of described second line segment all at described First Line
Section in, then retain described second line segment and the line segment with described subpoint as end points, obtain two isometric parallel
The second line segment combination that line segment is constituted;
3rd obtains unit, if being used for the subpoint of the first end points of described first line segment at described second line segment
In, the double-pointed subpoint of described second line segment in described first line segment, then retains with described first
End points and double-pointed subpoint are the line segment of end points, and with the second end points and the subpoint of the first end points
For the line segment of end points, obtain the 3rd line segment combination that two articles of isometric parallel segments are constituted;
Acquiring unit, for the combination obtaining multi-section-line and circular arc is constituted;
Described matching module includes:
First matching unit, for the described first line segment combination that will obtain, the second line segment combination or the 3rd line
The data form of Duan Zuhe mates with the data form of the wall preset and the data form of default window;
Second matching unit, for the data form of combination that described multi-section-line and circular arc are constituted with preset
The data form of door mate;
Described interpolation module includes:
First adding device, if for the described first line segment combination obtained, the second line segment combination or the 3rd line
The distance between two isometric parallel segments in Duan Zuhe is consistent, then to described first with the wall thickness preset
Line segment combination, the second line segment combination or the combination of the 3rd line segment increase the class label of wall;
Second adding device, if it is at other line segments and described to combine internal memory for the line segment that class label is wall
The compound mode of line segment combination and other line segments can be with the pattern matched of default window, then to described line
Duan Zuhe and the class label of the combination increase window of other line segments, delete the class label of wall simultaneously;
3rd adding device, if the data form of the combination constituted for described multi-section-line and circular arc can be with
The pattern matched of the door preset, then the combination constituted described multi-section-line and circular arc increases the classification of door
Label.
Further, described generation module includes:
First signal generating unit, if being wall for described class label, then generates three-dimensional wall according to the height preset
Body;
Second signal generating unit, if being door for described class label, then according to corresponding to described class label
Pattern, gate-width and the default door high generation three dimensional door of door;
3rd signal generating unit, if being window for described class label, then according to corresponding to described class label
The pattern of window, window width and default window are high, terrain clearance generates three-dimensional window.
Embodiment one
Refer to Fig. 2, embodiments of the invention one are: a kind of two dimension house type plane graph is converted to three-dimensional graph
Method, comprise the steps:
S1: obtain CAD two dimension house type plane graph;User can be by client upload DXF or DWG form
Two dimension house type plane graph.
S2: reading the pel in described two dimension house type plane graph, described pel includes line segment, multi-section-line and circle
Arc.
S3: according to the figure layer at described pel place, be grouped described pel, obtains corresponding each figure layer
Pel;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, obtains the meta graph recognition of at least one;Will respectively scheme layer
Interior pel carries out all possible combination according to default rule;Meta graph recognition includes can form and build
Build the combination of the pel of component.
S5: by the data of building element default with server respectively for the data form of each described meta graph recognition
Form mates;The data form of the building element preset in server could also say that default figure tuple
The data form closed, will respectively scheme the combination of pel in layer and carry out contrasting with the combination of the pel preset and mate.
S6: extract the meta graph recognition that the match is successful, and corresponding interpolation class label;I.e. to the figure that the match is successful
The class label of corresponding building element is added in unit's combination, such as wall, window, door etc.;Preferably, described classification mark
Sign the pattern that further comprises concrete building element.
S7: according to described class label, and the data of the described classification of correspondence preset, generate Corresponding matching
The successfully 3-D graphic of each building element.
S8: according to described 3-D graphic, obtain the three-dimensional graph of corresponding described two dimension house type plane graph;Can
Selection of land, preserves described three-dimensional graph on the server.
S9: described three-dimensional graph is sent to client;User can watch three-dimensional graph by client,
Can select arbitrarily angled, and can roam in three dimensions, viewpoint can move freely in indoor;Optional
Ground, user also can download three dimensions diagram data, is processed further and applies.
The present embodiment by by two dimension house type plane graph in each figure layer in meta graph recognition respectively with server
In the data form of building element preset carry out contrast coupling, and the meta graph recognition that the match is successful is increased class
Distinguishing label, extrudes corresponding 3-D graphic finally according to class label, thus obtains three-dimensional graph;Without
Two dimension house type plane graph is carried out pretreatment, it is adaptable to the CAD floor plan file of all standards, can realize complete
Automatic on-line completes, and is user-friendly to, and improves Consumer's Experience.
Embodiment two
Refer to Fig. 3, the present embodiment is to a kind of concrete reality of step S4, S5, S6 and S7 in embodiment one
Existing mode, something in common is not repeated, and comprises the steps:
S401: according to identical slope, the line segment in a figure layer is grouped;Will slope in a figure layer
Identical line segment is divided into one group, and the slope of the line segment in the packet of each line segment is identical.
S402: every line segment in each packet is carried out combination of two with other line segments in same packet, obtains
Take the combination of multiple line segment;The combination of described line segment includes the first line segment and the second line segment;
S403: two end points of two lines section are all projected to the straight line at another line segment place;Will be described
Two end points of the first line segment are projected in the straight line at described second line segment place respectively;By described second line segment
Two end points are projected in the straight line at described first line segment place respectively.
S404: judge the subpoint of two end points of the first line segment the most all in described second line segment, if so,
Then perform step S405, if it is not, then perform step S406.
S405: retain described first line segment and the line segment with described subpoint as end points, obtain two isometric flat
The first line segment combination that line section is constituted;Perform step S501.
S406: judge the subpoint of two end points of the second line segment the most all in described first line segment, if so,
Then perform step S407, if it is not, then perform step S408.
S407: retain described second line segment and the line segment with described subpoint as end points, obtain two isometric flat
The second line segment combination that line section is constituted;Perform step S501.
S408: judge whether the subpoint meeting the first end points of described first line segment in described second line segment,
The double-pointed subpoint of described second line segment in described first line segment, i.e. judge described first line segment and
Whether part relatively, the most then performs step S409, if not, then it represents that described two lines section to second line segment
The most relative.
S409: retain with described first end points and the double-pointed subpoint line segment as end points, and with the
The subpoint of two end points and the first end points is the line segment of end points, obtain that two articles of isometric parallel segments are constituted
Three line segment combinations;Perform step S501.
S410: the multi-section-line in a figure layer and circular arc are carried out all possible combination, obtains multi-section-line and circle
The combination that arc is constituted;Perform step S502;
S501: two in described first line segment combination, the second line segment combination or the combination of the 3rd line segment that will obtain
The isometric parallel segment of bar mates with the data form of the wall preset and the data form of default window;Preferably
Ground, can compare the distance between described two isometric parallel segments with the wall thickness preset;Perform step
Rapid S601.
S502: the combination that traversal multi-section-line and circular arc are constituted;Because in two dimension house type plane graph, Men Yi
As be made up of multi-section-line and circular arc.
S503: the data form of the combination that described multi-section-line and circular arc are constituted and the data lattice of default door
Formula is mated;Perform step S606.
S601: judge two articles etc. in described first line segment combination, the second line segment combination or the combination of the 3rd line segment
Distance between long parallel segment is the most consistent with the wall thickness preset, the most then perform step S602.
S602: described first line segment combination, the second line segment combination or the combination of the 3rd line segment are increased the classification of wall
Label.
S603: whether there are other line segments in judging the line segment combination that class label is wall, the most then perform
Step S604, if it is not, perform step S701.
S604: judge whether the compound mode of the combination of described line segment and other line segments can be with the number of default window
According to format match, the most then perform step S605.
S605: the combination of described line segment and other line segments are combined the class label of increase window, deletes wall simultaneously
Class label;Perform step S702.The pattern of the window that the class label of described window also comprises, such as, one
Plant window pattern to be made up of four isometric parallel segments, then four isometric parallel segments are added the window of corresponding patterns
Class label.
S606: judge whether the data form of the combination that multi-section-line and circular arc constituted can be with default door
Pattern matched, the most then perform step S607.
S607: the combination being constituted described multi-section-line and circular arc increases the class label of door;Perform step
S703.The pattern of the door that the class label of described such as door also comprises, such as, single open-door is to be enclosed by multi-section-line
The rectangle become forms with circular arc, and wherein the 3rd summit of rectangle overlaps, then to this with a summit of circular arc
The class label of single open-door is added in the combination planting multi-section-line and circular arc.
S701: generate three-dimensional body of wall according to the height preset.
S702: according to the pattern of window corresponding to described class label, window width and default window height high, liftoff
Degree generates three-dimensional window;Can, terrain clearance high according to the built-in pattern of window preset of server, window width, window
Synopsis generates three-dimensional window.
S703: generate three-dimensional according to the pattern of door corresponding to described class label, gate-width and default door are high
Door;Can according to server built-in preset the pattern of door, gate-width, the high synopsis of door generate three dimensional door.
Preferably, after step S402, can first judge that whether described first line segment and the second line segment are one
On bar straight line, if the most point-blank, the step after carrying out the most again, can be before step S601, directly
Getting rid of two isometric parallel segment distances is the situation of 0, can improve whole efficiency.
Preferably, before generating three-dimensional body of wall, traveling through the combination of all walls, the combination of described wall includes two classes
Distinguishing label is the meta graph recognition of wall, it is judged that whether said two meta graph recognition has coincidence, if having, then it represents that institute
State two walls represented by two meta graph recognition can intersect, determine intersection point, and accordingly two walls are extended to
Intersection point, can improve generation effect.
The data form of the building element preset in server can be added, revises, delete, it is also possible to
Design according to present novel adjusts, and can match most house type plane graph, strong adaptability, practicality
Property high.
Embodiment three
Refer to Fig. 5, the present embodiment is that a kind of two dimension house type plane graph of corresponding above-described embodiment is converted to three-dimensional
The system of space diagram, including:
First acquisition module 1, is used for obtaining CAD two dimension house type plane graph;
Second acquisition module 2, is used for resolving described two dimension house type plane graph, obtains the pel of corresponding each figure layer;
Composite module 3, for being combined by the pel in each figure layer, obtains the meta graph recognition of at least one;
Matching module 4, for by the data form of each described meta graph recognition respectively with the number of default building element
Mate according to form;
Add module 5, for extracting the described meta graph recognition that the match is successful, and corresponding interpolation class label;
Generation module 6, is used for according to described class label, and the data of the described classification of correspondence preset, raw
Become the 3-D graphic of corresponding each building element that the match is successful.
Also include:
Obtain module 7, for according to described 3-D graphic, obtaining the three-dimensional of corresponding described two dimension house type plane graph
Space diagram;
Sending module 8, for sending described three-dimensional graph to client.
Described second acquisition module 2 includes:
Read unit 21, for read described two dimension house type plane graph in pel, described pel include line segment,
Multi-section-line and circular arc;
First grouped element 22, for the figure layer according to described pel place, obtains the pel of corresponding each figure layer.
Described composite module 3 includes:
Second grouped element 31, for according to identical slope, is grouped the line segment in a figure layer;
Assembled unit 32, for carrying out two by every line segment in each packet with other line segments in same packet
Two combinations, obtain the combination of multiple line segment;The combination of described line segment includes the first line segment and the second line segment;
First projecting cell 33, for being projected in described second line respectively by two end points of described first line segment
The straight line at section place;
Second projecting cell 34, for being projected in described First Line respectively by two end points of described second line segment
The straight line at section place;
First obtains unit 35, if being used for the subpoint of two end points of described first line segment all described second
In line segment, then retain described first line segment and the line segment with described subpoint as end points, obtain two isometric flat
The first line segment combination that line section is constituted;
Second obtains unit 36, if being used for the subpoint of two end points of described second line segment all described first
In line segment, then retain described second line segment and the line segment with described subpoint as end points, obtain two isometric flat
The second line segment combination that line section is constituted;
3rd obtains unit 37, if being used for the subpoint of the first end points of described first line segment at described second line
In section, the double-pointed subpoint of described second line segment in described first line segment, then retains with described the
End point and double-pointed subpoint are the line segment of end points, and with the second end points and the projection of the first end points
Point is the line segment of end points, obtains the 3rd line segment combination that two articles of isometric parallel segments are constituted;
Acquiring unit 38, for the combination obtaining multi-section-line and circular arc is constituted;
Described matching module 4 includes:
First matching unit 41, for the described first line segment combination that will obtain, the second line segment combination or the 3rd
The data form of line segment combination mates with the data form of the data form of the wall preset and default window;
Second matching unit 42, for the data form of combination that described multi-section-line and circular arc constituted with pre-
If the data form of door mate;
Described interpolation module 5 includes:
First adding device 51, if for the described first line segment combination obtained, the second line segment combination or the 3rd
The distance between two isometric parallel segments in line segment combination is consistent with default wall thickness, then to described the
One line segment combination, the second line segment combination or the combination of the 3rd line segment increase the class label of wall;
Second adding device 52, if for line segment combination internal memory that class label is wall at other line segments, and institute
The compound mode stating line segment combination and other line segments can be with the pattern matched of default window, then to described
Line segment combination and the class label of the combination increase window of other line segments, delete the class label of wall simultaneously;
3rd adding device 53, if the data form being constituted combination for described multi-section-line and circular arc can
With the pattern matched of default door, then the combination constituted described multi-section-line and circular arc increases the class of door
Distinguishing label.
Described generation module 6 includes:
First signal generating unit 61, if being wall for described class label, then generates three-dimensional according to the height preset
Body of wall;
Second signal generating unit 62, if being door for described class label, then according to corresponding to described class label
The pattern of door, gate-width and default door high generation three dimensional door;
3rd signal generating unit 63, if being window for described class label, then according to corresponding to described class label
The pattern of window, window width and default window be high, terrain clearance generates three-dimensional window.
In sum, the present invention provide a kind of two dimension house type plane graph be converted to three-dimensional graph method and
Its system, by by two dimension house type plane graph in each figure layer in each meta graph recognition data form respectively with
The data form of the building element preset in server carries out contrast coupling, and to the meta graph recognition that the match is successful
Increase class label, extrude corresponding 3-D graphic finally according to class label, thus obtain three-dimensional graph;
The present invention is without carrying out pretreatment to two dimension house type plane graph, it is adaptable to the CAD floor plan file of all standards,
Can complete the most online, it is not necessary to manual operation, it is simple to use;The number of the building element preset in server
Can be added according to form, revise, delete, it is also possible to adjust according to the design of present novel, can
Allotting most house type plane graph, strong adaptability, practicality is high.
The foregoing is only embodiments of the invention, not thereby limit the scope of the claims of the present invention, every profit
The equivalents made by description of the invention and accompanying drawing content, or directly or indirectly it is used in relevant technology
Field, is the most in like manner included in the scope of patent protection of the present invention.
Claims (10)
1. the method that a two-dimentional house type plane graph is converted to three-dimensional graph, it is characterised in that including:
Obtain CAD two dimension house type plane graph;
Resolve described two dimension house type plane graph, obtain the pel of corresponding each figure layer;
Pel in each figure layer is combined, obtains the meta graph recognition of at least one;
By the data form of each described meta graph recognition, data form with default building element is carried out respectively
Join;
Extract the described meta graph recognition that the match is successful, and corresponding interpolation class label;
According to described class label, and the data of the described classification of correspondence preset, generate Corresponding matching success
The 3-D graphic of each building element.
The method that two dimension house type plane graph the most according to claim 1 is converted to three-dimensional graph, it is special
Levy and be, described " according to described class label, and the data of the described classification of correspondence preset, it is right to generate
Answer the 3-D graphic of each building element that the match is successful " after, farther include:
According to described 3-D graphic, obtain the three-dimensional graph of corresponding described two dimension house type plane graph;
Described three-dimensional graph is sent to client.
The method that two dimension house type plane graph the most according to claim 1 is converted to three-dimensional graph, it is special
Levy and be, described " resolve described two dimension house type plane graph, obtain the pel of corresponding each figure layer " particularly as follows:
Reading the pel in described two dimension house type plane graph, described pel includes line segment, multi-section-line and circular arc;
According to the figure layer at described pel place, described pel is grouped, obtains the pel of corresponding each figure layer.
The method that two dimension house type plane graph the most according to claim 1 is converted to three-dimensional graph, it is special
Levy and be, described " pel in each figure layer be combined, obtain the meta graph recognition of at least one;Will be each
The data form of described meta graph recognition mates with the data form of default building element respectively " particularly as follows:
According to identical slope, the line segment in a figure layer is grouped;
Every line segment in each packet is carried out combination of two with other line segments in same packet, obtains multiple
Line segment combines;The combination of described line segment includes the first line segment and the second line segment;
Two end points of described first line segment are projected in respectively the straight line at described second line segment place;
Two end points of described second line segment are projected in respectively the straight line at described first line segment place;
If the subpoint of two end points of described first line segment is all in described second line segment, then retain described
One line segment and the line segment with described subpoint as end points, obtain the First Line that two isometric parallel segments are constituted
Duan Zuhe;
If the subpoint of two end points of described second line segment is all in described first line segment, then retain described
Two line segments and the line segment with described subpoint as end points, obtain the second line that two isometric parallel segments are constituted
Duan Zuhe;
If the subpoint of the first end points of described first line segment is in described second line segment, described second line segment
Double-pointed subpoint in described first line segment, then retains with described first end points and double-pointed throwing
Shadow point is the line segment of end points, and the line segment with the subpoint of the second end points and the first end points as end points, obtains
Article two, the 3rd line segment combination that isometric parallel segment is constituted;
By obtain described first line segment combination, second line segment combination or the 3rd line segment combination data form with
The data form of the wall preset and the data form of default window mate;
The combination that acquisition multi-section-line and circular arc are constituted;
The data form of the combination described multi-section-line and circular arc constituted is carried out with the data form of the door preset
Coupling.
The method that two dimension house type plane graph the most according to claim 4 is converted to three-dimensional graph, it is special
Levy and be, described " extract the described meta graph recognition that the match is successful, and corresponding add class label " particularly as follows:
If two articles in the described first line segment combination, the second line segment combination or the combination of the 3rd line segment that obtain isometric
Distance between parallel segment is consistent with the wall thickness preset, then to described first line segment combination, the second line segment
Combination or the combination of the 3rd line segment increase the class label of wall;
If the line segment combination internal memory that class label is wall is at other line segments, and described line segment combines and other line segments
Compound mode can be with the pattern matched of default window, then to the combination of described line segment with other line segments
Combination increases the class label of window, deletes the class label of wall simultaneously;
If the data form of the combination that described multi-section-line and circular arc are constituted can be with the data form of default door
Coupling, then combine described multi-section-line and circular arc and increase the class label of door.
The method that two dimension house type plane graph the most according to claim 1 is converted to three-dimensional graph, it is special
Levy and be, described " according to described class label, and the data of the described classification of correspondence preset, it is right to generate
Answer the 3-D graphic of each building element that the match is successful " particularly as follows:
If described class label is wall, then generate three-dimensional body of wall according to the height preset;
If described class label is door, then according to the pattern of door corresponding to described class label, gate-width and pre-
If door high generation three dimensional door;
If described class label is window, then according to the pattern of window corresponding to described class label, window width and pre-
If window is high, terrain clearance generates three-dimensional window.
7. a two-dimentional house type plane graph is converted to the system of three-dimensional graph, it is characterised in that including:
First acquisition module, is used for obtaining CAD two dimension house type plane graph;
Second acquisition module, is used for resolving described two dimension house type plane graph, obtains the pel of corresponding each figure layer;
Composite module, for being combined by the pel in each figure layer, obtains the meta graph recognition of at least one;
Matching module, for by the data form of each described meta graph recognition respectively with the number of default building element
Mate according to form;
Add module, for extracting the described meta graph recognition that the match is successful, and corresponding interpolation class label;
Generation module, is used for according to described class label, and the data of the described classification of correspondence preset, raw
Become the 3-D graphic of corresponding each building element that the match is successful.
Two dimension house type plane graph the most according to claim 7 is converted to the system of three-dimensional graph, and it is special
Levying and be, described second acquisition module includes:
Read unit, for read described two dimension house type plane graph in pel, described pel include line segment,
Multi-section-line and circular arc;
First grouped element, for the figure layer according to described pel place, obtains the pel of corresponding each figure layer.
Two dimension house type plane graph the most according to claim 7 is converted to the system of three-dimensional graph, and it is special
Levying and be, described composite module includes:
Second grouped element, for according to identical slope, is grouped the line segment in a figure layer;
Assembled unit, for carrying out every line segment in each packet two-by-two with other line segments in same packet
Combination, obtains the combination of multiple line segment;The combination of described line segment includes the first line segment and the second line segment;
First projecting cell, for being projected in described second line segment respectively by two end points of described first line segment
The straight line at place;
Second projecting cell, for being projected in described first line segment respectively by two end points of described second line segment
The straight line at place;
First obtains unit, if being used for the subpoint of two end points of described first line segment all at described second line
Section in, then retain described first line segment and the line segment with described subpoint as end points, obtain two isometric parallel
The first line segment combination that line segment is constituted;
Second obtains unit, if being used for the subpoint of two end points of described second line segment all at described First Line
Section in, then retain described second line segment and the line segment with described subpoint as end points, obtain two isometric parallel
The second line segment combination that line segment is constituted;
3rd obtains unit, if being used for the subpoint of the first end points of described first line segment at described second line segment
In, the double-pointed subpoint of described second line segment in described first line segment, then retains with described first
End points and double-pointed subpoint are the line segment of end points, and with the second end points and the subpoint of the first end points
For the line segment of end points, obtain the 3rd line segment combination that two articles of isometric parallel segments are constituted;
Acquiring unit, for the combination obtaining multi-section-line and circular arc is constituted;
Described matching module includes:
First matching unit, for the described first line segment combination that will obtain, the second line segment combination or the 3rd line
The data form of Duan Zuhe mates with the data form of the wall preset and the data form of default window;
Second matching unit, for the data form of combination that described multi-section-line and circular arc are constituted with preset
The data form of door mate;
Described interpolation module includes:
First adding device, if for the described first line segment combination obtained, the second line segment combination or the 3rd line
The distance between two isometric parallel segments in Duan Zuhe is consistent, then to described first with the wall thickness preset
Line segment combination, the second line segment combination or the combination of the 3rd line segment increase the class label of wall;
Second adding device, if it is at other line segments and described to combine internal memory for the line segment that class label is wall
The compound mode of line segment combination and other line segments can be with the pattern matched of default window, then to described line
Duan Zuhe and the class label of the combination increase window of other line segments, delete the class label of wall simultaneously;
3rd adding device, if the data form of the combination constituted for described multi-section-line and circular arc can be with
The pattern matched of the door preset, then the combination constituted described multi-section-line and circular arc increases the classification of door
Label.
Two dimension house type plane graph the most according to claim 7 is converted to the system of three-dimensional graph, its
Being characterised by, described generation module includes:
First signal generating unit, if being wall for described class label, then generates three-dimensional wall according to the height preset
Body;
Second signal generating unit, if being door for described class label, then according to corresponding to described class label
Pattern, gate-width and the default door high generation three dimensional door of door;
3rd signal generating unit, if being window for described class label, then according to corresponding to described class label
The pattern of window, window width and default window are high, terrain clearance generates three-dimensional window.
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 true CN105913372A (en) | 2016-08-31 |
CN105913372B 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) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107918665A (en) * | 2017-11-23 | 2018-04-17 | 上海蒙袋网络科技有限公司 | A kind of system and method for Fast rendering and the CAD information inquiry of threedimensional model |
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 |
CN111339336A (en) * | 2020-03-11 | 2020-06-26 | 贝壳技术有限公司 | Analysis method and system for house type data |
CN111611936A (en) * | 2020-05-22 | 2020-09-01 | 青矩技术股份有限公司 | Automatic identification system for similar vector diagrams in CAD drawings |
CN113011327A (en) * | 2021-03-18 | 2021-06-22 | 苏州市开鑫智慧教育科技有限公司 | Three-dimensional graph recognition method, device, equipment and storage medium |
CN113297651A (en) * | 2020-07-16 | 2021-08-24 | 躺平设计家(上海)科技有限公司 | Three-dimensional house type data generation method, device and equipment |
CN117635837A (en) * | 2023-12-04 | 2024-03-01 | 壹仟零壹艺网络科技(北京)有限公司 | Quick three-dimensional method and system for two-dimensional CAD drawing data |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070171223A1 (en) * | 2006-01-26 | 2007-07-26 | Autodesk, Inc. | Method for creation of architectural space objects |
CN101673410A (en) * | 2008-09-12 | 2010-03-17 | 中国科学院计算技术研究所 | Vector building drawing based method for reconstructing three-dimensional model |
-
2016
- 2016-04-05 CN CN201610206811.6A patent/CN105913372B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070171223A1 (en) * | 2006-01-26 | 2007-07-26 | Autodesk, Inc. | Method for creation of architectural space objects |
CN101673410A (en) * | 2008-09-12 | 2010-03-17 | 中国科学院计算技术研究所 | Vector building drawing based method for reconstructing three-dimensional model |
Non-Patent Citations (1)
Title |
---|
张国栋: "基于DXF数据的建筑物三维建模", 《万方数据库》 * |
Cited By (13)
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 |
CN107918665A (en) * | 2017-11-23 | 2018-04-17 | 上海蒙袋网络科技有限公司 | A kind of system and method for Fast rendering and the CAD information inquiry of threedimensional model |
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 |
CN111339336A (en) * | 2020-03-11 | 2020-06-26 | 贝壳技术有限公司 | Analysis method and system for house type data |
CN111611936A (en) * | 2020-05-22 | 2020-09-01 | 青矩技术股份有限公司 | Automatic identification system for similar vector diagrams in CAD drawings |
CN113297651A (en) * | 2020-07-16 | 2021-08-24 | 躺平设计家(上海)科技有限公司 | Three-dimensional house type data generation method, device and equipment |
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 |
CN117635837A (en) * | 2023-12-04 | 2024-03-01 | 壹仟零壹艺网络科技(北京)有限公司 | Quick three-dimensional method and system for two-dimensional CAD drawing data |
CN117635837B (en) * | 2023-12-04 | 2024-07-05 | 壹仟零壹艺数智(北京)科技有限公司 | Quick three-dimensional method and system for two-dimensional CAD drawing data |
Also Published As
Publication number | Publication date |
---|---|
CN105913372B (en) | 2019-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105913372A (en) | Two-dimensional room plane graph to three-dimensional graph conversion method and system thereof | |
US10297074B2 (en) | Three-dimensional modeling from optical capture | |
Cheng et al. | Registration of laser scanning point clouds: A review | |
Garagnani | Building Information Modeling and real world knowledge: A methodological approach to accurate semantic documentation for the built environment | |
DE69733014T2 (en) | INTEGRATED SYSTEM FOR SHAPING AND MODELING THREE-DIMENSIONAL OBJECTS | |
Moyano et al. | Operability of point cloud data in an architectural heritage information model | |
CN103606188B (en) | Geography information based on imaging point cloud acquisition method as required | |
Yaagoubi et al. | HybVOR: A voronoi-based 3D GIS approach for camera surveillance network placement | |
Puttonen et al. | Improved sampling for terrestrial and mobile laser scanner point cloud data | |
CN106611246A (en) | Integrated management system of land and resources | |
CN107491071A (en) | A kind of Intelligent multi-robot collaboration mapping system and its method | |
Shen et al. | Change analysis in structural laser scanning point clouds: The baseline method | |
Aljumaily et al. | Big-data approach for three-dimensional building extraction from aerial laser scanning | |
Abreu et al. | Procedural point cloud modelling in scan-to-BIM and scan-vs-BIM applications: a review | |
Jia et al. | Methods of Conserving and Managing Cultural Heritage in Classical Chinese Royal Gardens Based on 3D Digitalization | |
CN111914615A (en) | Fire-fighting area passability analysis system based on stereoscopic vision | |
Shao et al. | Spatio-temporal-spectral-angular observation model that integrates observations from UAV and mobile mapping vehicle for better urban mapping | |
Singer et al. | Dales objects: A large scale benchmark dataset for instance segmentation in aerial lidar | |
CN109035400A (en) | A method of urban planning is established using oblique photograph | |
Ma et al. | A cloud-based BIM platform for information collaboration | |
Cutugno et al. | Structure-from-motion 3d reconstruction of the historical overpass ponte della cerra: A comparison between micmac® open source software and metashape® | |
CN114820975A (en) | Three-dimensional scene simulation reconstruction system and method based on all-element parameter symbolization | |
Sánchez et al. | Automatically annotated dataset of a ground mobile robot in natural environments via gazebo simulations | |
Pu et al. | Feature analysis of scanning point cloud of structure and research on hole repair technology considering space-ground multi-source 3D data acquisition | |
Li et al. | A hierarchical deformable deep neural network and an aerial image benchmark dataset for surface multiview stereo reconstruction |
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 |