CN109165399A - A kind of automatized three-dimensional Buildings Modeling method and system based on SketchUp API - Google Patents

A kind of automatized three-dimensional Buildings Modeling method and system based on SketchUp API Download PDF

Info

Publication number
CN109165399A
CN109165399A CN201810725192.0A CN201810725192A CN109165399A CN 109165399 A CN109165399 A CN 109165399A CN 201810725192 A CN201810725192 A CN 201810725192A CN 109165399 A CN109165399 A CN 109165399A
Authority
CN
China
Prior art keywords
measurement
data
point
window
sketchup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810725192.0A
Other languages
Chinese (zh)
Other versions
CN109165399B (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.)
China University of Geosciences
Original Assignee
China University of Geosciences
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 China University of Geosciences filed Critical China University of Geosciences
Priority to CN201810725192.0A priority Critical patent/CN109165399B/en
Publication of CN109165399A publication Critical patent/CN109165399A/en
Application granted granted Critical
Publication of CN109165399B publication Critical patent/CN109165399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The automatized three-dimensional Buildings Modeling method and system based on SketchUp API that the present invention provides a kind of, it is measured by electronic compass and laser measurement ruler, using the parameters of structural dimension of laser measurement ruler and electronic compass measurement interior architecture facility, the parameters of structural dimension of acquisition is measured to the measurement data file for saving rule and saving as Excel form according to the position of interior architecture facility;Then the measurement data in measurement data file is converted to by the architecture indoor three-dimensional coordinate point data that modeling needs by data conversion, and be stored in intermediate data file;The finally addition modeling plug-in unit in SketchUp, calls the data in the intermediate data file, runs and generate three-dimensional building model.The present invention has stronger practicability and creativeness, has vast potential for future development.

Description

A kind of automatized three-dimensional Buildings Modeling method and system based on SketchUp API
Technical field
The present invention relates to three-dimensional buildings to model field, and especially a kind of automatized three-dimensional based on SketchUp API is built Build modeling method and system.
Background technique
After current computer 3 d modeling software manually calculates measurement data there is still a need for designer, by building 3 dimensional drawing manual creation come out, this needs a part consumption of designer's energy carrying out cumbersome operation.Design Shi Buneng concentrates body and mind to carry out the creation on simple design.Meanwhile some places have measurement work, design work and patcher The phenomenon that work belongs to different personnel, it is gem-pure that this just needs designer to have the measurement rules of survey crew Otherwise solution is difficult to accurately on computers accurately model the house indoor structure implementation of client.
Since most urban architecture has similar design principle.So the indoor shape in house generally has one Fixed rule can be followed, and design program for this rule, and house is automatically converted to room by program by after rule measurement Room model can simplify the work of Decoration personnel, and obstructed generation can also be exchanged to avoid worker information Mistake.
Summary of the invention
The present invention is difficult to accurately for existing three-dimensional modeling method on computers to the house indoor structure of client Implementation accurately models disadvantage, proposes a kind of automatized three-dimensional Buildings Modeling method and system based on SketchUp API, The method comprising the steps of:
S1, the parameters of structural dimension that interior architecture facility is measured using laser measurement ruler and electronic compass, by the structure of acquisition Dimensional parameters are according to the preset measurement data file for saving rule and saving as Excel form;
S2, the measurement data in measurement data file is converted to by the architecture indoor three-dimensional that modeling needs by data conversion Coordinate point data, and be stored in intermediate data file;
S3, the addition modeling plug-in unit in SketchUp, call the data in the intermediate data file, run and generate three Tie up buildings model.
Preferably, in a kind of automatized three-dimensional Buildings Modeling side based on SketchUp API of the invention, step S1 In using laser measurement ruler and electronic compass measurement interior architecture facility parameters of structural dimension specifically:
1) interior architecture object ground data measures: a vertex on ground in room being set as initial baseline point, in room It is No. 1 measurement point with another vertex of initial baseline point point-blank, begins to use single straight line from initial baseline point Measurement pattern measures, and obtains the linear distance between initial baseline point and No. 1 measurement point;It chooses with No. 1 measurement point one A vertex on straight line is No. 2 measurement points, and No. 1 measurement point is updated to datum mark, begins to use single straight from No. 1 measurement point Line measurement pattern measures, and obtains the linear distance between No. 1 measurement point and No. 2 measurement points, is carried out using same method Measurement completes the ground line measurement of interior architecture facility according to preset indoor measuring sequence, obtains the data of flooring;
It is high using high and horizontal distance measurement pattern measurement room after the completion of line measurement, obtain the high record value in room;
2) measurement of interior architecture object gated data:
Selecting the known point of a coordinate on ground is observation point, is measured at the top of observation point and doorframe by electronic compass The azimuth of left side endpoint measures height on the left of doorframe by triangle high measurement mode;Observation point is measured by electronic compass With the azimuth of doorframe top right side endpoint, height on the right side of doorframe is measured by triangle high measurement mode, carries out calculating acquisition The coordinate on four vertex of door, to obtain the data of interior architecture object door;
3) measurement of building window data
It is observation point that point known to a coordinate is selected from ground, is measured by electronic compass and is pushed up on the left of observation point and window The azimuth in portion and bottom endpoint passes through height on the left of triangle auxiliary line measurement pattern measurement window;It is measured by electronic compass The azimuth of observation point and window right hand top and bottom endpoint, highly by triangle auxiliary line measurement pattern measurement window right side, The coordinate for calculate four vertex for obtaining window, to obtain the data of interior architecture object window.
Wherein, the laser measurement ruler used includes following four measurement pattern: single line measurement mode, height and horizontal distance Measurement pattern, triangle high measurement mode, triangle auxiliary line measurement pattern.
Preferably, in a kind of automatized three-dimensional Buildings Modeling side based on SketchUp API of the invention, step S2 In data conversion specific steps are as follows:
S21: the library Apache POI is imported by the software project management tool Maven of Java and is read in Excel table Measurement data, every a line represents a measurement data in Excel table, is parsed line by line, and every reading data line is all newly-built One entity class corresponding with the DATA REASONING mode, it includes all entities that all measurement data, which read and complete to return later, The List container of class;
S22: the data class that traversing operation judges each measurement data is carried out to the List container set for saving measurement data Type:
The update of coordinate points just is carried out if there is the record of single line measurement mode, and new coordinate points are added To the List container set of not used coordinate points;
If data type is high and horizontal distance measurement pattern measurement record, the high degree in this record is just read According to being added to the set of house coordinate points, while saving height of house, obtain a SketchUpPushPullModel object;
If it is triangle high measurement mode and triangle auxiliary line measurement pattern, it can be judged as the number of door or window According to the data and observation point coordinate of door or window are all preserved, wait institutes by newly-built OriginDoor or OriginWindow class After the completion of some room datas all obtain, row processing again after the thickness of every sidewalls is calculated, is finally obtained SketchUpPushPullModel object;
S23: calculating the plan view of house entirety according to the set of the coordinate points in each room, will build integral planar, room Room height and door and window coordinate save as a SketchUp extruded object;
S24: all SketchUp extruded objects are output in intermediate data file according to default rule, complete number According to conversion.
Preferably, in a kind of automatized three-dimensional Buildings Modeling side based on SketchUp API of the invention, step S3 Comprising the following steps:
S31: automatic modeling is added in the toolbar of window using the menu attribute of the UI module in SketchUp API Option;
S32: clicking automatic modeling button, a pop-up is opened using the inputbox attribute in the UI module, in bullet The path that intermediate data file is inputted in window is clicked and calls modeling functions to start to model after determining;To generate interior architecture mould Type.
The automatized three-dimensional Buildings Modeling system based on SketchUp API that the present invention also provides a kind of, comprising with lower die Block:
Measurement data file acquisition module, for using laser measurement ruler and electronic compass to measure the structure of interior architecture facility Dimensional parameters, by the parameters of structural dimension of acquisition according to the preset measurement data for saving rule and saving as Excel form File;
Intermediate data file obtains module, for being converted to the measurement data in measurement data file by data conversion The architecture indoor three-dimensional coordinate point data needed is modeled, and is stored in intermediate data file;
Three-dimensional building model generation module calls the intermediate data text for the addition modeling plug-in unit in SketchUp Data in part run and generate three-dimensional building model.
Preferably, in a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API of the invention, measurement Data file obtains specific using laser measurement ruler and the parameters of structural dimension of electronic compass measurement interior architecture facility in module Are as follows:
1) interior architecture object ground data measures: a vertex on ground in room being set as initial baseline point, in room It is No. 1 measurement point with another vertex of initial baseline point point-blank, begins to use single straight line from initial baseline point Measurement pattern measures, and obtains the linear distance between initial baseline point and No. 1 measurement point;It chooses with No. 1 measurement point one A vertex on straight line is No. 2 measurement points, and No. 1 measurement point is updated to datum mark, begins to use single straight from No. 1 measurement point Line measurement pattern measures, and obtains the linear distance between No. 1 measurement point and No. 2 measurement points, is carried out using same method Measurement completes the ground line measurement of interior architecture facility according to preset indoor measuring sequence, obtains the data of flooring;
It is high using high and horizontal distance measurement pattern measurement room after the completion of line measurement, obtain the high record value in room;
2) measurement of interior architecture object gated data:
Selecting the known point of a coordinate on ground is observation point, is measured at the top of observation point and doorframe by electronic compass The azimuth of left side endpoint measures height on the left of doorframe by triangle high measurement mode;Observation point is measured by electronic compass With the azimuth of doorframe top right side endpoint, height on the right side of doorframe is measured by triangle high measurement mode, carries out calculating acquisition The coordinate on four vertex of door, to obtain the data of interior architecture object door;
3) measurement of building window data
It is observation point that point known to a coordinate is selected from ground, is measured by electronic compass and is pushed up on the left of observation point and window The azimuth in portion and bottom endpoint passes through height on the left of triangle auxiliary line measurement pattern measurement window;It is measured by electronic compass The azimuth of observation point and window right hand top and bottom endpoint, highly by triangle auxiliary line measurement pattern measurement window right side, The coordinate for calculate four vertex for obtaining window, to obtain the data of interior architecture object window.
Wherein, the laser measurement ruler used includes following four measurement pattern: single line measurement mode, height and horizontal distance Measurement pattern, triangle high measurement mode, triangle auxiliary line measurement pattern.
Preferably, intermediate in a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API of the invention Data file obtains the data conversion specific steps in module are as follows:
Measurement data parsing module, for importing the library Apache POI by the software project management tool Maven of Java The measurement data in Excel table is read, every a line represents a measurement data in Excel table, is parsed line by line, every reading Data line is taken all to create an entity class corresponding with the DATA REASONING mode, all measurement data are read after completion Return to the List container comprising all entity class;
Judgment module judges each measurement data for carrying out traversing operation to the List container set for saving measurement data Data type:
The update of coordinate points just is carried out if there is the record of single line measurement mode, and new coordinate points are added To the List container set of not used coordinate points;
If data type is high and horizontal distance measurement pattern measurement record, the high degree in this record is just read According to being added to the set of house coordinate points, while saving height of house, obtain a SketchUpPushPullModel object;
If it is triangle high measurement mode and triangle auxiliary line measurement pattern, it can be judged as the number of door or window According to the data and observation point coordinate of door or window are all preserved, wait institutes by newly-built OriginDoor or OriginWindow class After the completion of some room datas all obtain, row processing again after the thickness of every sidewalls is calculated, is finally obtained SketchUpPushPullModel object;
Extruded object generation module calculates the plan view of house entirety for the set according to the coordinate points in each room, Building integral planar, height of house and door and window coordinate are saved as into a SketchUp extruded object;
Data conversion completes module, for all SketchUp extruded objects to be output to centre according to default rule In data file, data conversion is completed.
Preferably, in a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API of the invention, three Buildings model generation module comprising the following steps:
Automatic modeling card module is added, for using the menu attribute of the UI module in SketchUp API in window The option of automatic modeling is added in toolbar;
Modeling functions module is called to use the inputbox attribute in the UI module for clicking automatic modeling button A pop-up is opened, the path of intermediate data file is inputted in pop-up, clicks and calls modeling functions to start to model after determining, from And generate indoor building model.
The beneficial effects of the present invention are can be converted to threedimensional model for the measurement data of laser ranging tool, help Architecture Decoration Design teacher directly carries out Architecture Decoration Design work itself, convenient and efficient without going manual calculations to model, tool There is stronger practical value.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is measurement data file of the embodiment of the present invention;
Fig. 3 is intermediate data file of the embodiment of the present invention;
Fig. 4 is SketchUp of embodiment of the present invention modeling plug-in unit addition schematic diagram;
Fig. 5 is that the embodiment of the present invention calls schematic diagram data in intermediate data file;
Fig. 6 is automatic modeling result figure of the embodiment of the present invention.
Specific embodiment
In order to which the technical features, objects and effects of invention are more clearly understood, now compare attached drawing and this is described in detail The specific embodiment of invention.
With reference to Fig. 1, a kind of automatized three-dimensional Buildings Modeling method based on SketchUp API of the invention includes following Step:
S1, the parameters of structural dimension that interior architecture facility is measured using laser measurement ruler and electronic compass, by the structure of acquisition Dimensional parameters are shown in figure according to the preset measurement data file for saving rule and saving as Excel form, measurement data file 2;
S2, the measurement data in measurement data file is converted to by the architecture indoor three-dimensional that modeling needs by data conversion Coordinate point data, and be stored in intermediate data file;
S3, the addition modeling plug-in unit in SketchUp, call the data in the intermediate data file, run and generate three Tie up buildings model.
Wherein, in a kind of automatized three-dimensional Buildings Modeling side based on SketchUp API of the invention, in step S1 Using laser measurement ruler and electronic compass measurement interior architecture facility parameters of structural dimension specifically:
1) interior architecture object ground data measures: a vertex on ground in room being set as initial baseline point, in room It is No. 1 measurement point with another vertex of initial baseline point point-blank, begins to use single straight line from initial baseline point Measurement pattern measures, and obtains the linear distance between initial baseline point and No. 1 measurement point;It chooses with No. 1 measurement point one A vertex on straight line is No. 2 measurement points, and No. 1 measurement point is updated to datum mark, begins to use single straight from No. 1 measurement point Line measurement pattern measures, and obtains the linear distance between No. 1 measurement point and No. 2 measurement points, is carried out using same method Measurement completes the ground line measurement of interior architecture facility according to preset indoor measuring sequence, obtains the data of flooring;
It is high using high and horizontal distance measurement pattern measurement room after the completion of line measurement, obtain the high record value in room;
2) measurement of interior architecture object gated data:
Selecting the known point of a coordinate on ground is observation point, is measured at the top of observation point and doorframe by electronic compass The azimuth of left side endpoint measures height on the left of doorframe by triangle high measurement mode;Observation point is measured by electronic compass With the azimuth of doorframe top right side endpoint, height on the right side of doorframe is measured by triangle high measurement mode, carries out calculating acquisition The coordinate on four vertex of door, to obtain the data of interior architecture object door;
3) measurement of building window data
It is observation point that point known to a coordinate is selected from ground, is measured by electronic compass and is pushed up on the left of observation point and window The azimuth in portion and bottom endpoint passes through height on the left of triangle auxiliary line measurement pattern measurement window;It is measured by electronic compass The azimuth of observation point and window right hand top and bottom endpoint, highly by triangle auxiliary line measurement pattern measurement window right side, The coordinate for calculate four vertex for obtaining window, to obtain the data of interior architecture object window.
Wherein, the laser measurement ruler used includes following four measurement pattern: single line measurement mode, height and horizontal distance Measurement pattern, triangle high measurement mode, triangle auxiliary line measurement pattern.
The wherein data conversion specific steps in step S2 are as follows:
S21: the library Apache POI is imported by the software project management tool Maven of Java and is read in Excel table Measurement data, every a line represents a measurement data in Excel table, is parsed line by line, and every reading data line is all newly-built One entity class corresponding with the DATA REASONING mode, it includes all entities that all measurement data, which read and complete to return later, The List container of class;
S22: the data class that traversing operation judges each measurement data is carried out to the List container set for saving measurement data Type:
The update of coordinate points just is carried out if there is the record of single line measurement mode, and new coordinate points are added To the List container set of not used coordinate points;
If data type is high and horizontal distance measurement pattern measurement record, the high degree in this record is just read According to being added to the set of house coordinate points, while saving height of house, obtain a SketchUpPushPullModel object; It if it is triangle high measurement mode and triangle auxiliary line measurement pattern, can be judged as the data of door or window, create The data and observation point coordinate of door or window are all preserved, wait all rooms by OriginDoor or OriginWindow class Between after the completion of data all obtain, calculate row processing again after the thickness of every sidewalls, finally obtain SketchUpPushPullModel object;
S23: calculating the plan view of house entirety according to the set of the coordinate points in each room, will build integral planar, room Room height and door and window coordinate save as a SketchUp extruded object;
S24: all SketchUp extruded objects are output in intermediate data file according to default rule, complete number According to conversion, intermediate data file is obtained, intermediate data file is shown in Fig. 3.
Wherein step S3 comprising the following steps:
S31: automatic modeling is added in the toolbar of window using the menu attribute of the UI module in SketchUp API Option, see Fig. 4;
S32: clicking automatic modeling button, a pop-up is opened using the inputbox attribute in the UI module, in bullet The path that intermediate data file is inputted in window, sees Fig. 5, clicks and calls modeling functions to start to model after determining;To generate interior Buildings model is shown in Fig. 6.
Of both modeling functions mainly have the function of: circulation reads every data line of coordinate dot file, creates Face, which stretch, generates model.
The method that creation face uses is add_face, is inherited in Entities parent.The parameter of add_face is by a system Column represent a point data with the one-dimension array that comma separates or a two-dimensional array, each of array are one-dimensional Array is all the data of a coordinate points.Then pushpull operation is carried out to newly-generated face.It is carried out by circulation above-mentioned Operation, can increasingly generate indoor building model.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (8)

1. a kind of automatized three-dimensional Buildings Modeling method based on SketchUp API, which is characterized in that comprise the steps of:
S1, the parameters of structural dimension that interior architecture facility is measured using laser measurement ruler and electronic compass, by the structure size of acquisition Parameter is according to the preset measurement data file for saving rule and saving as Excel form;
S2, the measurement data in measurement data file is converted to by the architecture indoor three-dimensional coordinate that modeling needs by data conversion Point data, and be stored in intermediate data file;
S3, the addition modeling plug-in unit in SketchUp, call the data in the intermediate data file, run and generate three-dimensional and build Build model.
2. a kind of automatized three-dimensional Buildings Modeling method based on SketchUp API, feature exist according to claim 1 In, in step S1 using laser measurement ruler and electronic compass measurement interior architecture facility parameters of structural dimension specifically:
1) interior architecture object ground data measures: a vertex on ground in room being set as initial baseline point, in room at the beginning of Another vertex of primordium on schedule point-blank is No. 1 measurement point, begins to use single line measurement from initial baseline point Mode measures, and obtains the linear distance between initial baseline point and No. 1 measurement point;It chooses straight at one with No. 1 measurement point A vertex on line is No. 2 measurement points, and No. 1 measurement point is updated to datum mark, begins to use single straight line to survey from No. 1 measurement point Amount mode measures, and obtains the linear distance between No. 1 measurement point and No. 2 measurement points, is measured using same method, The ground line measurement that interior architecture facility is completed according to preset indoor measuring sequence, obtains the data of flooring;
It is high using high and horizontal distance measurement pattern measurement room after the completion of line measurement, obtain the high record value in room;
2) measurement of interior architecture object gated data:
Selecting the known point of a coordinate on ground is observation point, measures observation point and doorframe top left side by electronic compass The azimuth of endpoint measures height on the left of doorframe by triangle high measurement mode;Observation dotted or gate is measured by electronic compass The azimuth of endpoint on the right side of arch measures height on the right side of doorframe by triangle high measurement mode, carries out calculating and obtain door The coordinate on four vertex, to obtain the data of interior architecture object door;
3) measurement of building window data
It is observation point that point is selected known to a coordinate from ground, by electronic compass measure observation point and window left side top and The azimuth of bottom endpoint passes through height on the left of triangle auxiliary line measurement pattern measurement window;It is measured and is observed by electronic compass The azimuth of point and window right hand top and bottom endpoint is carried out by height on the right side of triangle auxiliary line measurement pattern measurement window The coordinate for obtaining four vertex of window is calculated, to obtain the data of interior architecture object window;
Wherein, the laser measurement ruler used includes following four measurement pattern: single line measurement mode, height and horizontal distance measurement Mode, triangle high measurement mode, triangle auxiliary line measurement pattern.
3. a kind of automatized three-dimensional Buildings Modeling method based on SketchUp API, feature exist according to claim 1 In data conversion specific steps in step S2 are as follows:
S21: the measurement in the library Apache POI reading Excel table is imported by the software project management tool Maven of Java Data, every a line represents a measurement data in Excel table, is parsed line by line, and every reading data line is all one newly-built Entity class corresponding with the DATA REASONING mode, all measurement data, which are read, to be completed to be returned later comprising all entity class List container;
S22: the data type that traversing operation judges each measurement data is carried out to the List container set for saving measurement data:
The update of coordinate points just is carried out if there is the record of single line measurement mode, and new coordinate points are added to not The List container set of the coordinate points used;
If data type is high and horizontal distance measurement pattern measurement record, the altitude information in this record is just read, It is added to the set of house coordinate points, while saves height of house, obtains a SketchUpPushPullModel object;
If it is triangle high measurement mode and triangle auxiliary line measurement pattern, it can be judged as the data of door or window, newly OriginDoor or OriginWindow class is built, the data and observation point coordinate of door or window are all preserved, are waited all After the completion of room data all obtains, row processing again after the thickness of every sidewalls is calculated, is finally obtained SketchUpPushPullModel object;
S23: calculating the plan view of house entirety according to the set of the coordinate points in each room, and building integral planar, house is high Degree and door and window coordinate save as a SketchUp extruded object;
S24: all SketchUp extruded objects are output in intermediate data file according to default rule, are completed data and are turned It changes.
4. a kind of automatized three-dimensional Buildings Modeling method based on SketchUp API, feature exist according to claim 1 In, step S3 comprising the following steps:
S31: the choosing of automatic modeling is added in the toolbar of window using the menu attribute of the UI module in SketchUp API ?;
S32: clicking automatic modeling button, a pop-up is opened using the inputbox attribute in the UI module, in pop-up The path of intermediate data file is inputted, clicks and calls modeling functions to start to model after determining;To generate indoor building model.
5. a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API, which is characterized in that comprising with lower module:
Measurement data file acquisition module, for using laser measurement ruler and electronic compass to measure the structure size of interior architecture facility Parameter, by the parameters of structural dimension of acquisition according to the preset measurement data file for saving rule and saving as Excel form;
Intermediate data file obtains module, for the measurement data in measurement data file to be converted to modeling by data conversion The architecture indoor three-dimensional coordinate point data needed, and be stored in intermediate data file;
Three-dimensional building model generation module calls in the intermediate data file for the addition modeling plug-in unit in SketchUp Data, run and generate three-dimensional building model.
6. a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API, feature exist according to claim 5 In the structure size using laser measurement ruler and electronic compass measurement interior architecture facility in measurement data file acquisition module is joined Number specifically:
1) interior architecture object ground data measures: a vertex on ground in room being set as initial baseline point, in room at the beginning of Another vertex of primordium on schedule point-blank is No. 1 measurement point, begins to use single line measurement from initial baseline point Mode measures, and obtains the linear distance between initial baseline point and No. 1 measurement point;It chooses straight at one with No. 1 measurement point A vertex on line is No. 2 measurement points, and No. 1 measurement point is updated to datum mark, begins to use single straight line to survey from No. 1 measurement point Amount mode measures, and obtains the linear distance between No. 1 measurement point and No. 2 measurement points, is measured using same method, The ground line measurement that interior architecture facility is completed according to preset indoor measuring sequence, obtains the data of flooring;
It is high using high and horizontal distance measurement pattern measurement room after the completion of line measurement, obtain the high record value in room;
2) measurement of interior architecture object gated data:
Selecting the known point of a coordinate on ground is observation point, measures observation point and doorframe top left side by electronic compass The azimuth of endpoint measures height on the left of doorframe by triangle high measurement mode;Observation dotted or gate is measured by electronic compass The azimuth of endpoint on the right side of arch measures height on the right side of doorframe by triangle high measurement mode, carries out calculating and obtain door The coordinate on four vertex, to obtain the data of interior architecture object door;
3) measurement of building window data
It is observation point that point is selected known to a coordinate from ground, by electronic compass measure observation point and window left side top and The azimuth of bottom endpoint passes through height on the left of triangle auxiliary line measurement pattern measurement window;It is measured and is observed by electronic compass The azimuth of point and window right hand top and bottom endpoint is carried out by height on the right side of triangle auxiliary line measurement pattern measurement window The coordinate for obtaining four vertex of window is calculated, to obtain the data of interior architecture object window;
Wherein, the laser measurement ruler used includes following four measurement pattern: single line measurement mode, height and horizontal distance measurement Mode, triangle high measurement mode, triangle auxiliary line measurement pattern.
7. a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API, feature exist according to claim 5 In intermediate data file obtains the data conversion specific steps in module are as follows:
Measurement data parsing module imports the library Apache POI for the software project management tool Maven by Java and reads Measurement data in Excel table, every a line represents a measurement data in Excel table, is parsed line by line, every to read one Row data all create an entity class corresponding with the DATA REASONING mode, and all measurement data, which are read, to be completed to return later List container comprising all entity class;
Judgment module, for carrying out the number that traversing operation judges each measurement data to the List container set for saving measurement data According to type:
The update of coordinate points just is carried out if there is the record of single line measurement mode, and new coordinate points are added to not The List container set of the coordinate points used;
If data type is high and horizontal distance measurement pattern measurement record, the altitude information in this record is just read, It is added to the set of house coordinate points, while saves height of house, obtains a SketchUpPushPullModel object;
If it is triangle high measurement mode and triangle auxiliary line measurement pattern, it can be judged as the data of door or window, newly OriginDoor or OriginWindow class is built, the data and observation point coordinate of door or window are all preserved, are waited all After the completion of room data all obtains, row processing again after the thickness of every sidewalls is calculated, is finally obtained SketchUpPushPullModel object;
Extruded object generation module calculates the plan view of house entirety for the set according to the coordinate points in each room, will build It builds integral planar, height of house and door and window coordinate and saves as a SketchUp extruded object;
Data conversion completes module, for all SketchUp extruded objects to be output to intermediate data according to default rule In file, data conversion is completed.
8. a kind of automatized three-dimensional Buildings Modeling system based on SketchUp API, feature exist according to claim 5 In, three buildings model generation modules comprising the following steps:
Automatic modeling card module is added, for using the menu attribute of the UI module in SketchUp API in the tool of window The option of automatic modeling is added in column;
Modeling functions module is called, for clicking automatic modeling button, is opened using the inputbox attribute in the UI module One pop-up inputs the path of intermediate data file in pop-up, clicks and calls modeling functions to start to model after determining, thus raw At indoor building model.
CN201810725192.0A 2018-07-04 2018-07-04 SketchUp API-based automatic three-dimensional building modeling method and system Active CN109165399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810725192.0A CN109165399B (en) 2018-07-04 2018-07-04 SketchUp API-based automatic three-dimensional building modeling method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810725192.0A CN109165399B (en) 2018-07-04 2018-07-04 SketchUp API-based automatic three-dimensional building modeling method and system

Publications (2)

Publication Number Publication Date
CN109165399A true CN109165399A (en) 2019-01-08
CN109165399B CN109165399B (en) 2023-01-03

Family

ID=64897294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810725192.0A Active CN109165399B (en) 2018-07-04 2018-07-04 SketchUp API-based automatic three-dimensional building modeling method and system

Country Status (1)

Country Link
CN (1) CN109165399B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977474A (en) * 2019-02-27 2019-07-05 壹仟零壹艺网络科技(北京)有限公司 Three-dimensional entity model method and system are automatically generated by AutoCAD two dimension house type
CN111382225A (en) * 2020-03-18 2020-07-07 北京山维科技股份有限公司 Method and system for storing building planning measurement result data
WO2022012248A1 (en) * 2020-07-13 2022-01-20 长鑫存储技术有限公司 Processing method and system for measurement data of semiconductor device, and computer device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2876445A1 (en) * 2004-02-19 2006-04-14 Measurix Sarl Polygonal flat surfaces` area measuring method for e.g. floor of building, involves using device having processing unit calculating area by generating segments and/or straight lines based on spherical co-ordinates of measuring points
CN101763656A (en) * 2010-01-28 2010-06-30 北京航空航天大学 Construction and display control method for floor and house division model of three-dimensional urban building
CN105654545A (en) * 2014-11-18 2016-06-08 苏州美谷视典软件科技有限公司 Construction and hierarchical display control method for 3D interactive villa type

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2876445A1 (en) * 2004-02-19 2006-04-14 Measurix Sarl Polygonal flat surfaces` area measuring method for e.g. floor of building, involves using device having processing unit calculating area by generating segments and/or straight lines based on spherical co-ordinates of measuring points
CN101763656A (en) * 2010-01-28 2010-06-30 北京航空航天大学 Construction and display control method for floor and house division model of three-dimensional urban building
CN105654545A (en) * 2014-11-18 2016-06-08 苏州美谷视典软件科技有限公司 Construction and hierarchical display control method for 3D interactive villa type

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977474A (en) * 2019-02-27 2019-07-05 壹仟零壹艺网络科技(北京)有限公司 Three-dimensional entity model method and system are automatically generated by AutoCAD two dimension house type
CN111382225A (en) * 2020-03-18 2020-07-07 北京山维科技股份有限公司 Method and system for storing building planning measurement result data
CN111382225B (en) * 2020-03-18 2023-08-04 北京山维科技股份有限公司 Method and system for storing building planning measurement result data
WO2022012248A1 (en) * 2020-07-13 2022-01-20 长鑫存储技术有限公司 Processing method and system for measurement data of semiconductor device, and computer device and computer readable storage medium

Also Published As

Publication number Publication date
CN109165399B (en) 2023-01-03

Similar Documents

Publication Publication Date Title
CN104091215B (en) A kind of project planning management system based on BIM
CN102521878B (en) Programmable three-dimensional human body modeling and human body measurement system and method thereof
CN102194253B (en) Method for generating tetrahedron gridding for three-dimensional geological structure
US9020783B2 (en) Direct manipulation of composite terrain objects with intuitive user interaction
Garagnani Building Information Modeling and real world knowledge: A methodological approach to accurate semantic documentation for the built environment
CN108875177B (en) Method for creating inland waterway dredging graph under single beam measuring point based on BIM model
CN108763685A (en) A kind of construction method of spacial special-shaped curved surface curtain wall system
CN109165399A (en) A kind of automatized three-dimensional Buildings Modeling method and system based on SketchUp API
CN108846888A (en) A kind of Gu wooden building components fine size information automation extracting method
CN105118091B (en) A kind of method and system constructing the non-homogeneous geology mesh surface model of more precision
CN105160708B (en) A kind of engineering geology inside and outside trade integration information system
CN108733911B (en) Construction aluminum template construction code design method based on three-dimensional digital model
CN109344506A (en) In-depth figure automatic generation method, equipment and the storage medium of BIM threedimensional model
CN105205864B (en) Geologic structure face threedimensional model method for automatic modeling and system based on multi-source data
CN110210120A (en) Railway engineering automation modeling method based on parametrization
CN109508508A (en) Open-pit mine treatment and exploration design method
CN108978573A (en) A kind of method of terrain data quick visualization auxiliary river bed change research
CN103644896A (en) Three-dimensional laser scanning-based engineering geological mapping method
CN110188927A (en) A kind of analysis method, device and the storage medium of urban heat island Dominated Factors
US9196085B2 (en) Interactively shaping terrain through composable operations
CN110287567A (en) The BIM fast modeling method driven based on parameterized units by design parameter
CN107944203A (en) A kind of visual architectural design method of wind-velocity streamline
CN108073747A (en) Aircraft structure Three Dimensional Design Model quality detecting system and method
CN101593360A (en) A kind of output intent of simulated environment noise and device
CN107784690B (en) Completion plan automatic drawing method based on three-dimensional point cloud

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