CN108664670B - Method for realizing automatic generation of 3D house type model by house type CAD - Google Patents

Method for realizing automatic generation of 3D house type model by house type CAD Download PDF

Info

Publication number
CN108664670B
CN108664670B CN201710190130.XA CN201710190130A CN108664670B CN 108664670 B CN108664670 B CN 108664670B CN 201710190130 A CN201710190130 A CN 201710190130A CN 108664670 B CN108664670 B CN 108664670B
Authority
CN
China
Prior art keywords
wall
model
cad
house type
door
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
CN201710190130.XA
Other languages
Chinese (zh)
Other versions
CN108664670A (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.)
Changsha Mourui Network Technology Co ltd
Original Assignee
Changsha Mourui Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Mourui Network Technology Co ltd filed Critical Changsha Mourui Network Technology Co ltd
Priority to CN201710190130.XA priority Critical patent/CN108664670B/en
Publication of CN108664670A publication Critical patent/CN108664670A/en
Application granted granted Critical
Publication of CN108664670B publication Critical patent/CN108664670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for realizing automatic generation of a 3D house type model by a house type CAD, which expresses corresponding 3D information through the characteristics of a CAD drawing, sets 3D information such as doors, windows, floor heights and the like through some digital parameters in 3Dmax software by convention with the CAD drawing, and automatically generates the 3D model by using a MaxScript language. The method has the advantages that the optimized single-sided model presents a complete indoor model, and convenience is provided for the use of the quart platform. The problems of untight seams, heavy noodles, broken noodles and the like in manual production are avoided.

Description

Method for realizing automatic generation of 3D house type model by house type CAD
Technical Field
The invention relates to a transmission control procedure, in particular to an implementation method for automatically generating a 3D house type model by a house type CAD (computer-aided design), relating to image analysis.
Background
The indoor design work comprises the links of designing, drawing a construction drawing, making an effect drawing, budget quotation and the like, the first step of making the effect drawing is to make a 3D model, at present, the indoor model making is to firstly clear redundant data in AutoCAD, then 3dsMax software is used for leading in the CAD, then the model is made according to the data of the CAD, the whole making process is finished by manually using the 3D making software, and under the condition that the rendering technology and hardware equipment are more and more advanced, the model making becomes a bottleneck for improving the making efficiency of the effect drawing. With the advent of VR (virtual reality), the use of 3D models is not just for rendering effect maps, but VR demands much higher model quality than effect maps. The number and quality of modelers is currently inadequate.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide an implementation method for automatically generating a 3D house type model by a house type CAD. Corresponding 3D information is expressed through the characteristics of a CAD drawing, 3D information such as doors, windows and floor heights is set through some digital parameters in 3Dmax software through agreement with the CAD drawing, and a MaxScript script language is used for automatically generating a 3D model.
The technical scheme adopted by the invention for solving the technical problems is as follows: the method for automatically generating the 3D house type model by the house type CAD is characterized in that the 3D model is automatically generated by using a MaxScript script language, and comprises the following steps:
firstly, manufacturing a CAD file according to the description requirement of the CAD file; the description of the CAD file requires the following:
hierarchical type: a Frame layer; a hole door and window layer; identification layer; a Split line segment layer; a text layer; wall body layer;
color type: picture frame color: line 130 cyan; door color: cyan; window: yellow; marking: green; line splitting: red; and (3) writing: white; and (3) wall color: gray line number 9;
line requirements: all wall lines need to be sealed, and the outer wall which is not indoors is removed; dismantling the wall body of the air conditioner external unit; all wall lines cannot overlap and must be broken up;
other requirements are as follows: the storage format is DXF; the file name cannot have a special symbol;
setting a 3Dmax import option when the CAD graphic primitive is used for the first time, and importing the CAD graphic primitive according to the color in the 3Dmax import file option;
collecting two-dimensional lines in the CAD in the imported CAD file, classifying according to attributes (layers, colors and the like) of the lines, and receiving related parameters set externally;
fourthly, all two-dimensional lines in wall are connected into one sample line in parallel, and the sample line is named as:
wallshape, convert Wallshape to polygon, face named: WallFloorObj;
fifthly, creating an outer wall line by the polygonal surface WallFloorObj generated in the fourth step, adding a modifier to the outer wall line according to parameter setting, extruding a sealed top to serve as a top surface light shield, extruding a sealed bottom to serve as a ground light shield, extruding the height of a wall surface to serve as an outer wall surface, and combining the three to form a light shield object (namely an outer wall body);
selecting the lines inside the polygon to create an inner wall line and a ground and a ceiling according to the polygon surfaces generated in the step four; completely frying the ground and the ceiling, and separating the living room, the bedroom and other grounds; meanwhile, the ground is classified into a ground group, and the ceiling is classified into a ceiling group;
selecting all sides of the floor of the living room generated in the step six, enabling the sides to have a value of an inward contour, separating an inner side face, enabling an outer ring to be arranged in a wave routing group, and enabling the inner side face to be arranged in a floor group;
eighthly, selecting the polygon generated in the step four, creating a wall body through adding commands, and deleting the top surface and the ground of the inner wall body model generated by the shell;
ninthly, determining the position and the size of the door and the window through the collected door transmission lines and external parameter settings; generating a corresponding box object, and opening a cavity of a door and a window on the wall surface through super Boolean operation;
tenthly, converting the original door and window model into a function form, judging and classifying the function form and the set width value and increment value of a single door and window, and then guiding the function form into a corresponding position in the house type model;
eleven, selecting each group classified in the front, adding a material ball to the object according to the group name, and adding a mapping command;
resetting the axial center point and the axial direction of each object; renaming all objects;
thirteen, removing all two-dimensional lines; and the model is completely finished, and the model is exported to a specified folder.
The invention has the beneficial effects that: and the optimized single-sided model presents a complete indoor model, so that convenience is provided for cross-platform use. The problems of untight seams, heavy noodles, broken noodles and the like in manual production are avoided.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a flow chart of the steps of the present invention.
Detailed Description
Referring to the attached drawings, the invention discloses a method for automatically generating a 3D house type model by a house type CAD, which is characterized by comprising the following steps:
firstly, manufacturing a CAD file according to the description requirement of the CAD file; the method is characterized in that a convention with a CAD two-dimensional drawing is determined at first, and subsequent steps can be realized only through the convention;
secondly, setting a 3Dmax import option; in a 3Dmax Import file option (AutoCAD DWG/DXF Import operations), selecting to export an AutoCAD primitive (derived AutoCAD Primitives by: Color) according to Color; this option only needs to be set when first used;
collecting two-dimensional lines in the CAD in the imported CAD file, classifying according to attributes (colors, layers and other attributes) of the lines, and receiving related parameters (such as house type height, door and window height and the like) set externally;
fourthly, all two-dimensional lines in the wall (wall body layer) are welded into a sample line (spline) which is named as: wallshape, convert Wallshape to a polygonal face named: WallFloorObj; the polygonal surface is the basis of a subsequent procedure, and the ground, the ceiling and the wall are evolved from wallshape;
fifthly, creating an outer wall line (spline sample line) by the polygonal surface WallFloorObj generated in the fourth step, adding an (extreme) modifier to the outer wall line according to parameter setting, extruding (amplitude is 500) a top seal (Cap Start) to serve as a top surface light shield, extruding (amplitude is 500) a bottom seal (Cap End) to serve as a ground light shield, extruding the height of a wall surface (the height is an external setting parameter) to serve as an outer wall surface, and combining the three to form a light shield object (namely the outer wall surface);
selecting internal lines of the polygon to create an internal wall line according to the polygon surfaces generated in the step four, and creating a ground and a ceiling through a command (changeable _ poly); completely frying the ground and the ceiling, and separating the living room, the bedroom and other grounds; meanwhile, the ground is classified into a ground group, and the ceiling is classified into a ceiling group;
selecting all sides of the floor of the living room generated in the step six, setting a value of an inward contour (which is set by the wave routing width), separating an inner side face, enabling an outer ring to be classified into a wave routing group, and enabling the inner side face to be classified into a floor group;
eighthly, selecting the polygon generated in the step four, creating a wall body through an adding command (shell), and deleting the top surface and the ground of an inner wall body model generated by the shell;
ninthly, determining the position and the size of the door and the window through the collected door transmission lines and external parameter setting; generating a corresponding box object, and forming a cavity of a door and a window on the wall surface through super Boolean operation (ProBoolean);
tenthly, converting the original door and window model into a function form, judging and classifying the function form and the set width value and increment value of a single door and window, and then guiding the function form into a corresponding position in the house type model;
eleven, selecting each group classified in the front, adding a material ball to the object according to the group name, and adding a uvwmap mapping command;
resetting the axial center point and the axial direction of each object; renaming all objects; (this operation is mainly convenient for the model to be imported into other software for use);
thirteen, removing all two-dimensional lines; the model is completely automatically completed by this time, and the model is exported to a specified folder.
In an embodiment of the present invention, the following requirements are specified for the CAD file:
(a) and the hierarchical type: frame (Frame layer) \\ hole (door and window layer) \ Identification (segment layer) \\ text (text layer) \\ wall (wall layer);
(b) and color type: picture frame color: cyan 130 # line \ gate color: cyan \ window: yellow \ mark: green \ dividing line: red \ text: white \ wall color: gray line number 9;
(c) and line requirement:
1. all wall lines need to be sealed, and the outer wall which is not indoors is removed; 2. dismantling the wall body of the air conditioner external unit; 3. all wall lines cannot overlap and must be broken up;
(d) and other requirements are as follows: 1. the storage format is DXF; 2. the file name cannot appear with a special symbol.

Claims (1)

1. A realization method for automatically generating a 3D house type model by a house type CAD is characterized in that: the method for automatically generating the 3D model by using the MaxScript scripting language comprises the following steps:
firstly, manufacturing a CAD file according to the description requirement of the CAD file; the description of the CAD file requires the following:
hierarchical type: a Frame layer; a hole door and window layer; identification layer; a Split line segment layer; a text layer; wall body layer;
color type: picture frame color: line 130 cyan; door color: cyan; window: yellow; marking: green; line splitting: red; and (3) writing: white; and (3) wall color: gray line number 9;
line requirements: all wall lines need to be sealed, and the outer wall which is not indoors is removed; dismantling the wall body of the air conditioner external unit; all wall lines cannot overlap and must be broken up;
other requirements are as follows: the storage format is DXF; the file name cannot have a special symbol;
setting a 3Dmax import option when the system is used for the first time; in the 3Dmax import file option, selecting to export an AutoCAD graphic element according to the color;
collecting two-dimensional lines in the CAD in the imported CAD file, classifying according to the colors and layer attributes of the lines, and receiving related parameters set externally;
fourthly, all two-dimensional lines in the wall are welded into a sample line spline which is named as: wallshape, converting Wallshape into polygonal faces, named: WallFloorObj;
fifthly, creating an outer wall by the polygonal surface WallFloorObj generated in the fourth step, adding an extreme modifier to an outer wall line according to parameter setting, extruding an amount which is 500 capping CapStart as a top surface light shield, extruding an amount which is-500 capping Cap End as a ground light shield, extruding the height of a wall surface as an outer wall surface, and combining the three to obtain a light shield object;
selecting all sides of the floor of the living room generated in the step six, enabling the sides to have a value of an inward contour, separating an inner side face, enabling an outer ring to be arranged in a wave routing group, and enabling the inner side face to be arranged in a floor group;
selecting internal lines of the polygon to create an internal wall line according to the polygon surface generated in the step four, and creating the ground and the ceiling through a command convertto. Completely frying the ground and the ceiling, and separating the living room, the bedroom and other grounds; meanwhile, the ground is classified into a ground group, and the ceiling is classified into a ceiling group;
eighthly, selecting the polygon generated in the step four, creating a wall body by adding a command shell, and deleting the top surface and the ground of an inner wall body model generated by the shell;
ninthly, determining the position and the size of the door and the window through the collected door transmission lines and external parameter settings; generating a corresponding box object, and forming a cavity of a door and a window on the wall surface through a super Boolean operation ProBoolean;
tenthly, converting the original door and window model into a function form, judging and classifying the function form and the set width value and increment value of a single door and window, and then guiding the function form into a corresponding position in the house type model;
eleven, selecting each group classified in the front, adding a material ball to the object according to the group name, and adding a uvwmap mapping command;
resetting the axial center point and the axial direction of each object; renaming all objects;
thirteen, removing all two-dimensional lines; and the model is completely finished, and the model is exported to a specified folder.
CN201710190130.XA 2017-03-27 2017-03-27 Method for realizing automatic generation of 3D house type model by house type CAD Active CN108664670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710190130.XA CN108664670B (en) 2017-03-27 2017-03-27 Method for realizing automatic generation of 3D house type model by house type CAD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710190130.XA CN108664670B (en) 2017-03-27 2017-03-27 Method for realizing automatic generation of 3D house type model by house type CAD

Publications (2)

Publication Number Publication Date
CN108664670A CN108664670A (en) 2018-10-16
CN108664670B true CN108664670B (en) 2021-07-20

Family

ID=63786307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710190130.XA Active CN108664670B (en) 2017-03-27 2017-03-27 Method for realizing automatic generation of 3D house type model by house type CAD

Country Status (1)

Country Link
CN (1) CN108664670B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109175910A (en) * 2018-10-17 2019-01-11 湖北公惠网络科技有限公司 A kind of manufacturing method of product forms
CN109977474A (en) * 2019-02-27 2019-07-05 壹仟零壹艺网络科技(北京)有限公司 Three-dimensional entity model method and system are automatically generated by AutoCAD two dimension house type
CN109992852A (en) * 2019-03-18 2019-07-09 壹仟零壹艺网络科技(北京)有限公司 Interior decoration face object-oriented modeling method and system
CN110765524A (en) * 2019-10-17 2020-02-07 上海红星美凯龙设计云信息科技有限公司 House type automatic layout system based on mDesk equipment
CN110990912A (en) * 2019-11-04 2020-04-10 上海吉舍云计算机技术有限公司 Calculation method and system for demolished wall and display system
CN114708383A (en) * 2022-03-22 2022-07-05 广州市圆方计算机软件工程有限公司 Ceiling and ground construction method and system for converting two-dimensional plane into three-dimensional stereo scene
CN116425046B (en) * 2023-03-31 2024-03-19 江苏苏港智能装备产业创新中心有限公司 Portal crane abnormal state identification system based on digital twinning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155271A1 (en) * 2012-04-11 2013-10-17 Pinpoint 3D Systems and methods for obtaining parameters for a three dimensional model from reflectance data
CN104821011A (en) * 2015-05-20 2015-08-05 郭小虎 Method of generating 3D house type model by 2D house type model based on camera shooting
CN105975675A (en) * 2016-05-04 2016-09-28 杭州群核信息技术有限公司 Method for generating housing type by editing imported local file on line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013155271A1 (en) * 2012-04-11 2013-10-17 Pinpoint 3D Systems and methods for obtaining parameters for a three dimensional model from reflectance data
CN104821011A (en) * 2015-05-20 2015-08-05 郭小虎 Method of generating 3D house type model by 2D house type model based on camera shooting
CN105975675A (en) * 2016-05-04 2016-09-28 杭州群核信息技术有限公司 Method for generating housing type by editing imported local file on line

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3DsMAX多边形室内建模教程;佚名;《https://www,jb51.net/3DMAX/175600_all.html》;20140611;第1-15页 *

Also Published As

Publication number Publication date
CN108664670A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108664670B (en) Method for realizing automatic generation of 3D house type model by house type CAD
CN107393003A (en) A kind of method of three-dimensional house automatic modeling based on cloud computing and realization
CN103065357B (en) Based on the figure for shadow-play model production method of common three-dimensional model
CA2413056A1 (en) Apparatus and method for depth image-based representation of 3-dimensional object
CN109118588B (en) Automatic color LOD model generation method based on block decomposition
CN110889900A (en) Low-airspace-oriented three-dimensional modeling and visualization method
CN101655993A (en) Multi-resolution modeling method for three dimensional model of complex building
CN109344533B (en) Method for establishing underground working well cable network model
CN104091366B (en) Three-dimensional intelligent digitalization generation method and system based on two-dimensional shadow information
CN104103091A (en) 3D intelligent modeling method and system and a flexible manufacturing system of 3D model
CN104036294B (en) Spectral tag based adaptive multi-spectral remote sensing image classification method
CN114998503B (en) White mold automatic texture construction method based on live-action three-dimension
CN101477705B (en) Computer assisted character animation drawing method based on light irradiated ball model
US20090033674A1 (en) Method and apparatus for graphically defining surface normal maps
CN115375811A (en) Model chartlet rendering method suitable for Cesium
CN101789030A (en) Virtual geographical environment (VGE) symbolic model and map symbol sharing system and method based on same
CN109858059B (en) Application method of virtual reality technology based on CAD (computer-aided design) super-large model in hydropower station simulation
CN109064556B (en) Landform high-precision simulation modeling system facing ISR
CN112258621B (en) Method for observing three-dimensional rendering two-dimensional animation in real time
CN108763767B (en) VR engine-oriented large-data-volume IGS industrial model POLYGON conversion method
CN106780700B (en) Game personalized 3D coloring method based on VR technology
CN116776411A (en) LIM technology-based landscape garden plant sunlight radiation analysis and configuration method
CN114972665A (en) Three-dimensional visual virtual scene modeling method in unmanned aerial vehicle virtual simulation
CN106910239A (en) A kind of soft shadowses method for drafting based on echo
CN114882197A (en) High-precision three-dimensional face reconstruction method based on graph neural network

Legal Events

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