CN106127850A - The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device - Google Patents

The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device Download PDF

Info

Publication number
CN106127850A
CN106127850A CN201610486584.7A CN201610486584A CN106127850A CN 106127850 A CN106127850 A CN 106127850A CN 201610486584 A CN201610486584 A CN 201610486584A CN 106127850 A CN106127850 A CN 106127850A
Authority
CN
China
Prior art keywords
point
building
indoor
dimensional
plane
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.)
Pending
Application number
CN201610486584.7A
Other languages
Chinese (zh)
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.)
Wuhan Joint Space Time Mdt Infotech Ltd
Original Assignee
Wuhan Joint Space Time Mdt Infotech 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 Wuhan Joint Space Time Mdt Infotech Ltd filed Critical Wuhan Joint Space Time Mdt Infotech Ltd
Priority to CN201610486584.7A priority Critical patent/CN106127850A/en
Publication of CN106127850A publication Critical patent/CN106127850A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses three-dimensional visualization method and the device of a kind of mobile terminal indoor and outdoor integration, this device includes data preprocessing module, building solid stretching module and indoor and outdoor integration rendering module;The present invention passes through simplified model, uses solid stretching algorithm, it is achieved the rapid build of lot-size model;And it being divided into two figure layers in room objects and building outline, render and the rendering of room objects of building outline are independent of each other, it is ensured that intermodule lower coupling and independence;Also through building outline it can be seen that indoor arrangement, outdoor environment and the distribution of interior architecture thing are covered all at one glance;From outdoor to indoor transparence progressive formation, automatically focal point is switched to room objects from contour of building, promotes Consumer's Experience.

Description

The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device
Technical field
The present invention relates to the method and apparatus that the indoor and outdoor three-dimensional letter mould integration of a kind of mobile terminal renders, particularly relate to one The three-dimensional visualization method of mobile terminal indoor and outdoor integration and device.
Background technology
Along with masses' enhancing to indoor navigation demand, the study hotspot in location-based service field extends to room from outdoor In, outdoor airmanship has tended to ripe, and indoor navigation technology is vigorously developed, the indoor and outdoor integration relevant to indoor navigation Three-dimensional visualization is also given birth to because of fortune.
At present, domestic and international achievement in research, in the indoor and outdoor integration of mobile terminal, lacks integrative ideal, it is impossible to well will Indoor and outdoors effectively combines, mobile terminal indoor navigation in map visualization problem, or lay particular emphasis on indoor two three-dimensionals can Ignore indoor and outdoor one depending on changing, or there is the problems such as inconsistent, the indoor and outdoor visualization disunity of indoor and outdoor data modeling.Domestic There is less research for indoor and outdoor integration data model tissue and visualization aspect outward, indoor level of detail performance is ground Studying carefully achievement the fewest, correlational study is also in the starting stage.
Summary of the invention
Based on the problems referred to above, the present invention takes the rapid build of threedimensional model into account, proposes stair stretching algorithm, uses a kind of profit The method realizing indoor and outdoor integration by the observability of map zoom levels and ground resolution Controlling model, it is possible to effective Realize the effect of indoor and outdoor integrally exhibiting.
The above-mentioned technical problem of the present invention is mainly addressed by following technical proposals;
The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration, comprises the following steps:
Step 1, data prediction;
In described step 1, data prediction is specifically comprised the following steps that
The process of step 1.1, stair and escalator, is that figure is carried out cutting and attribute assignment;Described attribute assignment refers to Altitude range and the assignment of lifting point index, obtain stair and escalator data A1;
Step 1.2, building outline processes, and is the stair and escalator data A1 and other obtaining interpolation step 1.1 The closure box of house data A2, obtains building outline B;In order to realize indoor and outdoor integration effect, building outline, building Layer outline all must add;Described building outline is the closure box of the geometric data of all floors, described Floor outline is the closure box of the geometric data of every floor layer;
Step 2, building solid stretches;The two-dimentional interior architecture thing data obtaining step 1 carry out stretch processing, by solid Stretching algorithm builds threedimensional model;
In described step 2, the two-dimentional interior architecture thing data obtaining step 1 carry out stretch processing, obtain room objects and build Build the threedimensional model of beyond the region of objective existence profile, specifically comprise the following steps that
Step 2.1, common building thing stretches, interior architecture thing data A2 and the building outline to non-stair and escalator B carries out planar stretch, obtains threedimensional model Ma2 and the building foreign steamer of interior architecture thing data A2 of non-stair and escalator Wide threedimensional model Mb;
Step 2.2, stair and escalator stretching;Obtain the threedimensional model Ma1 of stair and escalator data A1;For stair Between plane, use step 2.1 method stretch;For stair inclined-plane and escalator inclined-plane, two-dimensional points is being extended to During three-dimensional point addition point chain, the height of inclined-plane low spot and inclined-plane high point is processed respectively;
Step 3, indoor and outdoor integration renders;The room objects obtaining step 2 and contour of building model separately process, and utilize The observability of map zoom levels Controlling model and ground resolution Controlling model realizes indoor and outdoor integration;
Step 4, terminates.
Further, in described step 1.1, what the cutting of described figure was concrete is: the 2-d plane graph of stair Assume be a rectangle, etc. the stair of regular shape;The process of stair is that this general image is carried out cutting, is divided into stair Between plane and two stair inclined-plane two parts;
Escalator only one of which inclined-plane forms, and the 2-d plane graph of escalator is processed into a rectangle;
Described process altitude range concrete be: to the 2-d plane graph rational height range attribute after cutting;
For inclined-plane, the starting altitude setting point low in inclined-plane is h as minh, the starting altitude of point high in inclined-plane, Stretching height is step;, the altitude range of inclined-plane high point be [h, h+step], other non-high point i.e. altitude ranges of low spot are [min,minh+step];
For staircase plane, setting starting altitude as minh, after stretching, height is h;The institute of staircase plane a little height one Sample, altitude range is [minh, h];
What described record lifting point index was concrete is: index the 2-d plane graph record lifting point after cutting;For tiltedly Face, the index of storage lifting point, show that lifting point is the high point in inclined-plane for other are put, other some acquiescences are all low Point.
Further, described step 2.1, the stretching of common building thing specifically comprises the following steps that
Step 2.1.1, copy-point;
By planar point, (x, y) is copied into two points, is that (2 h), and are added to new by x, y for the end (x, y, minh) and top respectively Structure point chain in, obtain a chain L1;
(elevation h, with ground as starting point, is above the ground level as just plane coordinate system, low for x, Web Mercator projection coordinate y) used It is negative in ground;In order to emphasize that floor is distributed, elevation uses relative coordinate, by floor gap away from amplification, simultaneously by building in floor Build thing reduced height;
New structure point chain refer to each some chain element is deposited a three-dimensional point (x, y, h);New structure point chain bag Include bottom surface point chain and end face point chain, described bottom surface point chain and end face point chain to be finally placed in a some chain, in order to construct three Edged surface sheet index is convenient, adds a base point and adds a top point again, and in some chain, storage order is lower going up up and down, at first the end Top, forms the mode of Z-shaped index;
Step 2.1.2, builds side;
Point in the L1 point chain obtained in step 2.1.1 is carried out the structure of side tri patch index;The end added with current, Top and next step end to be added, top four points based on, construct two tri patch F1 and F2, form normal counterclockwise Outside dough sheet, it is ensured that above dough sheet is visible;
Step 2.1.3, odd even limit stores;
Tri patch F1 and F2 that step 2.1.2 is obtained carry out the judgement of odd even limit and be stored in corresponding sides array of indexes in; In order to highlight stereoeffect, the color of odd even side to recalculate according to illumination;Specify initial line for even limit, often calculate one Limit, overturns the parity of its index storage, and the parity on the most adjacent both sides is different, and its triangle index is individually placed to different two In array of indexes;
Step 2.1.4, builds end face;
Summit in the L1 point chain obtained in step 2.1.1 is carried out end face dough sheet structure and is stored in top margin array of indexes; Generating polygon according to top margin summit, described polygon divides simple polygon and complex polygon two kinds, carries out polygon Triangle decomposition;
Step 2.1.5, model construction;
Point in L1 point chain constitutes the vertex data of model, and side, end face array of indexes constitute the index data of model, so far Model construction completes.
Further, in described step 2.2, for stair inclined-plane and the stretching on escalator inclined-plane, including following step Rapid:
Step 2.2.1, copy-point;
For the X-Y scheme form point of input, (x, y), first determines whether that whether the lifting point in its attribute is empty, and this field stores height Point index information;
If sky, showing that this point is planar point, (x y) is extended to two three-dimensional point low (x, y, minh) and top to two dimensional surface point (x,y,minh+step);
If non-NULL, show that this point is bevel point, then judge that this point indexes whether in lifting point set;If, show This point is high point, two-dimensional inclined point (x, y) be extended at the bottom of two three-dimensional point (x, y, h) and top (x, y, h+step);If no , showing that this point is low spot, (x y) is extended to (x, y, minh) at the bottom of two three-dimensional point and top (x, y, minh to two-dimensional inclined point +step);
Finally, the end and 2, top, added in new structure point chain, obtains a chain L2;
Step 2.2.2, builds side;
Point in the L2 point chain obtaining step 2.2.1 carries out the structure of side tri patch index;The end, top with current interpolation With next step end to be added, top four points based on, construct two tri patch F3 and F4, formed normal counterclockwise to Outer dough sheet, it is ensured that above dough sheet is visible;
Step 2.2.3, odd even limit stores;
Tri patch F3 and F4 that step 2.2.2 is obtained carry out the judgement of odd even limit and be stored in corresponding sides array of indexes in; In order to highlight stereoeffect, the color of odd even side to recalculate according to illumination;Specify initial line for even limit, often calculate one Limit, overturns the parity of its index storage, and the parity on the most adjacent both sides is different, and its triangle index is individually placed to different two In array of indexes;
Step 2.2.4, builds end face;
Summit in the L2 point chain obtaining step 2.2.1 carries out end face dough sheet structure and is stored in top margin array of indexes;Root Generate polygon, the polygon that i.e. top margin contour line surrounds according to top margin summit, divide simple polygon and complex polygon two kinds, right Polygon carries out triangle decomposition;
Step 2.2.5, model construction;
Point in L2 point chain constitutes the vertex data of model, and side, end face array of indexes constitute the index data of model, model Structure completes.
Further, in described step 3, indoor and outdoor integration renders the room objects three-dimensional mould being to obtain step 2 Type Ma1, Ma2 and building outline model M b separately process, and utilize map zoom levels Controlling model and ground resolution control The observability of simulation realizes indoor and outdoor integration.
Further, described indoor and outdoor integration renders and comprises the steps:
Step 3.1, indoor and outdoor separately renders;
Whole solitary building model is divided into room objects and building outline two parts, leaves two different figure layers respectively in, Room objects figure layer Ly1 and building outline figure layer Ly2, separately renders;
Step 3.2, two three-dimensional switchings;
Two 3-D graphic observabilities of room objects and building outline are judged according to level of zoom;Map zoom levels is more than Threshold value is that three-dimensional visible two dimension is invisible, is that two dimension is visible three-dimensional invisible less than threshold value, if visible switching table present two Dimensional plane is stretched as 3 D stereo, and described drawing process is moment animation, is three according to increase resolution two dimensional surface height The three-dimensional height of dimension;
Step 3.2, indoor and outdoor switches;
When step 3.2, middle two dimensional surface is stretched as 3 D stereo after, then use ground resolution to control room objects and building The transparency of beyond the region of objective existence skeleton pattern, thus control its observability.
Further, described threshold value is 17 grades of map zoom levels.
Further, described employing ground resolution controls room objects and the transparency of building outline model, Particularly:
For building outline: when ground resolution is more than 0.3, building outline is the opaquest;Differentiate on ground When rate is less than 0.3 more than 0.2, building outline transparency 0.9;When ground resolution is less than 0.2 more than 0.1, building Outline transparency 0.6;When ground resolution is less than 0.1 more than 0.09, building outline transparency 0.3;At ground distributor When resolution is less than 0.09, completely into indoor, building outline is fully transparent invisible;
For room objects: when ground resolution is more than 0.3, room objects is nearly transparent invisible;Big in ground resolution When 0.2 less than 0.3, room objects transparency 0.9;When ground resolution is less than 0.2 more than 0.1, room objects transparency 0.6;When ground resolution is less than 0.1, completely into indoor, room objects is the opaquest.
A kind of three-dimensional visualization device of mobile terminal indoor and outdoor integration, including:
Data preprocessing module: for stair and the process of escalator;Building outline processes;
Building solid stretching module: the two-dimentional interior architecture thing data for obtaining data preprocessing module are carried out at stretching Reason, builds threedimensional model by solid stretching algorithm;
Including for the stretching to common building thing;Including for the stretching to stair and escalator;
Indoor and outdoor integration rendering module: for the room objects that building solid stretching module is obtained and contour of building mould Type separately processes, and utilizes the observability of map zoom levels Controlling model and ground resolution Controlling model to realize indoor and outdoor one Body.
In sum, present invention have the advantage that
1., by simplified model, use solid stretching algorithm, it is achieved the rapid build of lot-size model, particularly achieve stair etc. The three-dimensional modeling of special building.
2. room objects and building outline are divided into two figure layers, building outline render the wash with watercolours with room objects Dye is independent of each other, it is ensured that intermodule lower coupling and independence.
3. in view of the raising of display efficiency, when the visual field is far, it is not necessary to display interior architecture thing object, it is not required that By the three-D profile of building, as long as expressing shape with two dimensional surface.When furthering in the visual field, become 3 D stereo from two dimension Building, expresses with threedimensional model.
4. through building outline it can be seen that nothing is had a guide look of in indoor arrangement, outdoor environment and the distribution of interior architecture thing Remaining.From outdoor to indoor transparence progressive formation, automatically focal point is switched to room objects from contour of building, promotes and use Family is experienced.
Accompanying drawing explanation
Fig. 1 is a kind of method flow schematic diagram of the present invention;
Fig. 2 is stair X-Y scheme processing procedure schematic diagrams;
Fig. 3 is three-dimensional drawing process schematic diagram;
Fig. 4 is Z-shaped index storage schematic diagram;
Fig. 5 is to build side process schematic;
Fig. 6 is odd even limit storing process schematic diagram.
Detailed description of the invention
Below by example, and combine accompanying drawing, technical scheme is described in further detail.
If Fig. 1 is a kind of method flow schematic diagram of the present invention, invention mainly comprises the steps that
1. the three-dimensional visualization method of a mobile terminal indoor and outdoor integration, it is characterised in that comprise the following steps:
Step 1, data prediction;For two dimension interior architecture thing data redundancy, the situation of shortage of data, be removed respectively or Complement operation.
In described step 1, data prediction is specifically comprised the following steps that
The cutting of the process of step 1.1, stair and escalator, i.e. figure and attribute assignment, attribute assignment refer to altitude range and The assignment of lifting point index, obtains stair and escalator data A1, specifically comprises the following steps that
What the cutting of described figure was concrete is: the 2-d plane graph of stair assume be a rectangle, etc. regular shape Stair;The process of stair is that this general image is carried out cutting, is divided into staircase plane and two stair inclined-plane two parts;
Escalator only one of which inclined-plane forms, and the 2-d plane graph of escalator is processed into a rectangle;
Described process altitude range concrete be: to the 2-d plane graph rational height range attribute after cutting;
For inclined-plane, the starting altitude setting point low in inclined-plane is h as minh, the starting altitude of point high in inclined-plane, Stretching height is step;The altitude range of inclined-plane high point is [h, h+step], and other non-high point i.e. altitude ranges of low spot are [min,minh+step];
For staircase plane, setting starting altitude as minh, after stretching, height is h;The institute of staircase plane a little height one Sample, altitude range is [minh, h];
What described record lifting point index was concrete is:
2-d plane graph record lifting point after cutting is indexed;For inclined-plane, the index of storage lifting point, show lifting point Being the high point in inclined plane for other are put, other some acquiescences are all low spots;If Fig. 2 is that stair X-Y scheme processed Journey schematic diagram, wherein in inclined-plane 1, the lifting point of storage is [0:3], and in inclined-plane 2, the lifting point of storage is [2:3].
Step 1.2, building outline processes, i.e. add the stair that obtain of step 1.1 and escalator data A1 and its The closure box of he house data A2, obtains building outline B;In order to realize indoor and outdoor integration effect, building outline, Floor outline all must add;Described building outline is the closure box of the geometric data of all floors, described Floor outline be the closure box of geometric data of every floor layer.
Step 2, building solid stretches;The two-dimentional interior architecture thing data obtaining step 1 carry out stretch processing, pass through Three-dimensional stretching algorithm builds threedimensional model;
In described step 2, the two-dimentional interior architecture thing data obtaining step 1 carry out stretch processing, obtain room objects and build Build the threedimensional model of beyond the region of objective existence profile, specifically comprise the following steps that
Step 2.1, common building thing stretches, interior architecture thing data A2 and the building outline to non-stair and escalator B carries out planar stretch, obtains threedimensional model Ma2 and the building foreign steamer of interior architecture thing data A2 of non-stair and escalator Wide threedimensional model Mb;If Fig. 3 is three-dimensional drawing process schematic diagram, highly consistent for the point on same plane, it is stretched as Solid, on the one hand to replicate the point in one group of plane, and the height assignment on the other hand put these the most also will be to these points The face constituted carries out triangle decomposition.Stretching step is as follows:
Step 2.1.1, copy-point;
By planar point, (x, y) is copied into two points, is that (2 h), and are added to new by x, y for the end (x, y, minh) and top respectively Structure point chain in, obtain a chain L1;
(elevation h, with ground as starting point, is above the ground level as just plane coordinate system, low for x, Web Mercator projection coordinate y) used It is negative in ground;In order to emphasize that floor is distributed, elevation uses relative coordinate, by floor gap away from amplification, simultaneously by building in floor Build thing reduced height;
New structure point chain refer to each some chain element is deposited a three-dimensional point (x, y, h);Such as, in index 0 position 1 Some chain element in deposit a three-dimensional point (x1, y1, h1), the some chain element of position 2 is deposited a three-dimensional point (x2,y2,h2)。
New structure point chain includes that bottom surface point chain and end face point chain, described bottom surface point chain and end face point chain finally to be put In a some chain, convenient in order to construct tri patch index, add a base point and add a top point again, some chain is deposited Storage order is lower go up up and down, push up at first the end, forms the mode that Z-shaped indexes;If Fig. 4 is Z-shaped index storage schematic diagram, it is assumed that Point chain subscript is from the beginning of 0, after X-Y scheme being copied into bottom surface point chain and end face point chain and being finally placed on a some chain, and bottom surface point Chain is 0,2,4,6 in the position of maximal end point chain ..., end face point chain is 1,3,5,7 in the position of maximal end point chain ..., construct triangular facet Sheet forms Z-shaped index.
Step 2.1.2, builds side;
Point in the L1 point chain obtained in step 2.1.1 is carried out the structure of side tri patch index;The end added with current, Top and next step end to be added, top four points based on, construct two tri patch F1 and F2, form normal counterclockwise Outside dough sheet, it is ensured that above dough sheet is visible;If Fig. 5 is to build side process schematic, it is assumed that some chain subscript from the beginning of 0, side End point 0 that face has been added and summit 1, with next step end that will add point 2 and summit 3, four build face counterclockwise It is (0,2,1) and (1,2,3) respectively that sheet obtains two tri patch indexes.
Step 2.1.3, odd even limit stores;
Tri patch F1 and F2 that step 2.1.2 is obtained carry out the judgement of odd even limit and be stored in corresponding sides array of indexes in; In order to highlight stereoeffect, the color of odd even side to recalculate according to illumination;Specify initial line for even limit, often calculate one Limit, overturns the parity of its index storage, and the parity on the most adjacent both sides is different, and its triangle index is individually placed to different two In array of indexes.Fig. 6 is odd even limit storing process schematic diagram, it is assumed that some chain subscript is from the beginning of 0, and starts record from even face, Index [0] storage even limit index, index [1] stores strange limit index, and the tri patch index of even limit structure is (0,2,1) respectively (1,2,3), is stored as index [0]=[0,2,1,1,2,3], the tri patch rope of strange limit structure in the array of indexes of even limit Drawing is (2,4,3) and (3,4,5) respectively, is stored as index [1]=[2,4,3,3,4,5] in the array of indexes of strange limit.
Step 2.1.4, builds end face;
Summit in the L1 point chain obtained in step 2.1.1 is carried out end face dough sheet structure and is stored in top margin array of indexes; Generating polygon, the polygon surrounded for top margin contour line according to top margin summit, described polygon divides simple polygon with multiple Two kinds of miscellaneous polygon, carries out triangle decomposition to polygon;
Step 2.1.5, model construction;
Point in L1 point chain constitutes the vertex data of model, and side, end face array of indexes constitute the index data of model, so far Model construction completes;
In three dimensional graphics, model is all made up of simple triangle surface, and model vertices can be several triangle Have, these vertex information can be stored when storing these vertex information in the way of index of reference, save memory space, carry High rendering speed.Create vertex buffer by vertex data and index data and model data be sent to video card by index buffering, Then draw triangle and obtain three-dimensional model image.Therefore, vertex data and index data are important set in three-dimensional graphics renderer Become part, as model skeleton, color or texture are as model clothes.
Step 2.2, stair and escalator stretching;Obtain the threedimensional model Ma1 of stair and escalator data A1;For Staircase plane, the point on same plane is highly consistent, is stretched as solid, on the one hand to replicate the point in one group of plane, another The height assignment that these to be put by aspect, the face the most also constituted these points carries out triangle decomposition, and this part can use step The method of rapid 2.1 stretches;For stair inclined-plane and escalator inclined-plane, two-dimensional points is being extended to three-dimensional point addition point chain Time, the height of inclined-plane low spot and inclined-plane high point is processed respectively;
Described for stair inclined-plane and the stretching on escalator inclined-plane, comprise the steps:
Step 2.2.1, copy-point;
For the X-Y scheme form point of input, (x, y), first determines whether that whether the lifting point in its attribute is empty, and this field stores height Point index information;
If sky, showing that this point is planar point, (x y) is extended to two three-dimensional point low (x, y, minh) and top to two dimensional surface point (x,y,minh+step);
If non-NULL, show that this point is bevel point, then judge that this point indexes whether in lifting point set;If, show This point is high point, two-dimensional inclined point (x, y) be extended at the bottom of two three-dimensional point (x, y, h) and top (x, y, h+step);If no , showing that this point is low spot, (x y) is extended to (x, y, minh) at the bottom of two three-dimensional point and top (x, y, minh to two-dimensional inclined point +step);
Finally, the end and 2, top, added in new structure point chain, obtains a chain L2;
Step 2.2.2, builds side;
Point in the L2 point chain obtaining step 2.2.1 carries out the structure of side tri patch index;The end, top with current interpolation With next step end to be added, top four points based on, construct two tri patch F3 and F4, formed normal counterclockwise to Outer dough sheet, it is ensured that above dough sheet is visible;
Step 2.2.3, odd even limit stores;
Tri patch F3 and F4 that step 2.2.2 is obtained carry out the judgement of odd even limit and be stored in corresponding sides array of indexes in; In order to highlight stereoeffect, the color of odd even side to recalculate according to illumination;Specify initial line for even limit, often calculate one Limit, overturns the parity of its index storage, and the parity on the most adjacent both sides is different, and its triangle index is individually placed to different two In array of indexes;
Step 2.2.4, builds end face;
Summit in the L2 point chain obtaining step 2.2.1 carries out end face dough sheet structure and is stored in top margin array of indexes;Root Generate polygon, the polygon that i.e. top margin contour line surrounds according to top margin summit, divide simple polygon and complex polygon two kinds, right Polygon carries out triangle decomposition;
Step 2.2.5, model construction;
Point in L2 point chain constitutes the vertex data of model, and side, end face array of indexes constitute the index data of model, model Structure completes.
Step 3, indoor and outdoor integration renders;The room objects obtaining step 2 and contour of building model separately process, Utilize the observability of map zoom levels Controlling model and ground resolution Controlling model to realize indoor and outdoor integration;
In described step 3, described indoor and outdoor integration renders room objects threedimensional model Ma1, the Ma2 being to obtain step 2 Separately processing with building outline model M b, utilize map zoom levels Controlling model and ground resolution Controlling model can Opinion property, to realize indoor and outdoor integration, comprises the steps:
Step 3.1, indoor and outdoor separately renders;
Whole solitary building model is divided into room objects and building outline two parts, leaves two different figure layers respectively in, Room objects figure layer Ly1 and building outline figure layer Ly2, separately renders;
Step 3.2, two three-dimensional switchings;
Two 3-D graphic observabilities of room objects and building outline are judged according to level of zoom;Map zoom levels is more than Threshold value is that three-dimensional visible two dimension is invisible, is that two dimension is visible three-dimensional invisible less than threshold value, if visible switching table present two Dimensional plane is stretched as 3 D stereo, and described drawing process is moment animation, is three according to increase resolution two dimensional surface height The three-dimensional height of dimension;
Concrete, described threshold value is 17 grades of map zoom levels.
Building outline: when map zoom levels is less than 17 grades, building outline shows as two dimensional surface profile, There is no three-dimensional building image;After reaching 17 grades, two dimensional surface outline disappears, and 3 D stereo building occurs;Map scales Rank still shows with this 3 D stereo image more than 17 grades, but is as the visual field and furthers in building, after entering indoor, and building Beyond the region of objective existence profile is the most invisible.
Room objects: when map zoom levels is less than 17 grades, due to only building outline, also do not reach display room Interior degree, indoor two dimensional surface profile does not shows, more need not show three-dimensional room objects;17 grades are reached at map zoom levels After, three-dimensional room objects builds, but does not renders;Map zoom levels still shows with this 3 D stereo image more than 17 grades Showing, but be as the visual field and further in building, room objects is the most visible.
Step 3.2, indoor and outdoor switches;
When step 3.2, middle two dimensional surface is stretched as 3 D stereo after, then use ground resolution to control room objects and building The transparency of beyond the region of objective existence skeleton pattern, thus control its observability;When ground resolution is relatively low, building outline model is complete Opaque, the room objects model such as floor, stair is fully transparent, now can not see the structural environment of indoor;At ground distributor During resolution improves, building outline model is the most transparent, and room objects model is the opaquest, indoor building, house Layout layer gradually highlights;During until entering indoor, room objects model is the opaquest, and building outline model is the most saturating Bright.
Concrete, building outline: when ground resolution is more than 0.3, building outline is the opaquest;On ground When face resolution is less than 0.3 more than 0.2, building outline transparency 0.9;When ground resolution is less than 0.2 more than 0.1, Building outline transparency 0.6;When ground resolution is less than 0.1 more than 0.09, building outline transparency 0.3;? When ground resolution is less than 0.09, completely into indoor, building outline is fully transparent invisible;
Room objects: when ground resolution is more than 0.3, room objects is nearly transparent invisible;In ground resolution more than 0.2 During less than 0.3, room objects transparency 0.9;When ground resolution is less than 0.2 more than 0.1, room objects transparency 0.6;? When ground resolution is less than 0.1, completely into indoor, room objects is the opaquest.
Step 4, terminates.
A kind of three-dimensional visualization device of mobile terminal indoor and outdoor integration, including:
Data preprocessing module: for stair and the process of escalator;Building outline processes;
Building solid stretching module: the two-dimentional interior architecture thing data for obtaining data preprocessing module are carried out at stretching Reason, builds threedimensional model by solid stretching algorithm;
Including for the stretching to common building thing;Including for the stretching to stair and escalator;
Indoor and outdoor integration rendering module: for the room objects that building solid stretching module is obtained and contour of building mould Type separately processes, and utilizes the observability of map zoom levels Controlling model and ground resolution Controlling model to realize indoor and outdoor one Body.
This method and device, from data process, increase building outline, cutting editor's stair, reject redundant digit According to, it is that the data that indoor and outdoor integration is expressed are basic;Use the stretch processing of solid stretching algorithm, especially stair, it is achieved model Rapid build, be indoor and outdoor integration express algorithm basis;It is divided into two figure layers by indoor and outdoor building object to render, Two three-dimensional switchings and the design of indoor and outdoor switching, final realization sees indoor three-dimensional layout, from outdoor through building outline To indoor and outdoor integration expression effects such as indoor gradual transitions.
Specific embodiment described herein is only to present invention spirit explanation for example.Technology neck belonging to the present invention Described specific embodiment can be made various amendment or supplements or use similar mode to replace by the technical staff in territory Generation, but without departing from the spirit of the present invention or surmount scope defined in appended claims.

Claims (9)

1. the three-dimensional visualization method of a mobile terminal indoor and outdoor integration, it is characterised in that comprise the following steps:
Step 1, data prediction;
In described step 1, data prediction is specifically comprised the following steps that
The process of step 1.1, stair and escalator, is that figure is carried out cutting and attribute assignment;Described attribute assignment refers to Altitude range and the assignment of lifting point index, obtain stair and escalator data A1;
Step 1.2, building outline processes, and is the stair and escalator data A1 and other obtaining interpolation step 1.1 The closure box of house data A2, obtains building outline B;In order to realize indoor and outdoor integration effect, building outline, building Layer outline all must add;Described building outline is the closure box of the geometric data of all floors, described Floor outline is the closure box of the geometric data of every floor layer;
Step 2, building solid stretches;The two-dimentional interior architecture thing data obtaining step 1 carry out stretch processing, by solid Stretching algorithm builds threedimensional model;
In described step 2, the two-dimentional interior architecture thing data obtaining step 1 carry out stretch processing, obtain room objects and build Build the threedimensional model of beyond the region of objective existence profile, specifically comprise the following steps that
Step 2.1, common building thing stretches, interior architecture thing data A2 and the building outline to non-stair and escalator B carries out planar stretch, obtains threedimensional model Ma2 and the building foreign steamer of interior architecture thing data A2 of non-stair and escalator Wide threedimensional model Mb;
Step 2.2, stair and escalator stretching;Obtain the threedimensional model Ma1 of stair and escalator data A1;For stair Between plane, use step 2.1 method stretch;For stair inclined-plane and escalator inclined-plane, two-dimensional points is being extended to During three-dimensional point addition point chain, the height of inclined-plane low spot and inclined-plane high point is processed respectively;
Step 3, indoor and outdoor integration renders;The room objects obtaining step 2 and contour of building model separately process, and utilize The observability of map zoom levels Controlling model and ground resolution Controlling model realizes indoor and outdoor integration;
Step 4, terminates.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 1 indoor and outdoor integration, it is characterised in that institute In the step 1.1 stated, what the cutting of described figure was concrete is: the 2-d plane graph of stair assume be a rectangle, etc. The stair of regular shape;The process of stair is that this general image is carried out cutting, is divided into staircase plane and two stair are oblique Face two parts;
Escalator only one of which inclined-plane forms, and the 2-d plane graph of escalator is processed into a rectangle;
Described process altitude range concrete be: to the 2-d plane graph rational height range attribute after cutting;
For inclined-plane, the starting altitude setting point low in inclined-plane is h as minh, the starting altitude of point high in inclined-plane, Stretching height is step;The altitude range of inclined-plane high point is [h, h+step], and other non-high point i.e. altitude ranges of low spot are [min,minh+step];
For staircase plane, setting starting altitude as minh, after stretching, height is h;The institute of staircase plane a little height one Sample, altitude range is [minh, h];
What described record lifting point index was concrete is: index the 2-d plane graph record lifting point after cutting;For tiltedly Face, the index of storage lifting point, show that lifting point is the high point in inclined-plane for other are put, other some acquiescences are all low Point.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 1 indoor and outdoor integration, it is characterised in that institute The step 2.1 stated, the stretching of common building thing specifically comprises the following steps that
Step 2.1.1, copy-point;
By planar point, (x, y) is copied into two points, is that (2 h), and are added to new by x, y for the end (x, y, minh) and top respectively Structure point chain in, obtain a chain L1;
(elevation h, with ground as starting point, is above the ground level as just plane coordinate system, low for x, Web Mercator projection coordinate y) used It is negative in ground;In order to emphasize that floor is distributed, elevation uses relative coordinate, by floor gap away from amplification, simultaneously by building in floor Build thing reduced height;
New structure point chain refer to each some chain element deposit a three-dimensional point (x, y, h);New structure point chain includes Bottom surface point chain and end face point chain, described bottom surface point chain and end face point chain to be finally placed in a some chain, in order to construct triangle Dough sheet index is convenient, adds a base point and adds a top point again, and in some chain, storage order is lower going up up and down, at first the end Top, forms the mode of Z-shaped index;
Step 2.1.2, builds side;
Point in the L1 point chain obtained in step 2.1.1 is carried out the structure of side tri patch index;The end added with current, Top and next step end to be added, top four points based on, construct two tri patch F1 and F2, form normal counterclockwise Outside dough sheet, it is ensured that above dough sheet is visible;
Step 2.1.3, odd even limit stores;
Tri patch F1 and F2 that step 2.1.2 is obtained carry out the judgement of odd even limit and be stored in corresponding sides array of indexes in; In order to highlight stereoeffect, the color of odd even side to recalculate according to illumination;Specify initial line for even limit, often calculate one Limit, overturns the parity of its index storage, and the parity on the most adjacent both sides is different, and its triangle index is individually placed to different two In array of indexes;
Step 2.1.4, builds end face;
Summit in the L1 point chain obtained in step 2.1.1 is carried out end face dough sheet structure and is stored in top margin array of indexes; Generating polygon according to top margin summit, described polygon divides simple polygon and complex polygon two kinds, carries out polygon Triangle decomposition;
Step 2.1.5, model construction;
Point in L1 point chain constitutes the vertex data of model, and side, end face array of indexes constitute the index data of model, so far Model construction completes.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 1 indoor and outdoor integration, it is characterised in that institute In the step 2.2 stated, for stair inclined-plane and the stretching on escalator inclined-plane, comprise the steps:
Step 2.2.1, copy-point;
For the X-Y scheme form point of input, (x, y), first determines whether that whether the lifting point in its attribute is empty, and this field stores height Point index information;
If sky, showing that this point is planar point, (x y) is extended to two three-dimensional point low (x, y, minh) and top to two dimensional surface point (x,y,minh+step);
If non-NULL, show that this point is bevel point, then judge that this point indexes whether in lifting point set;If, show This point is high point, two-dimensional inclined point (x, y) be extended at the bottom of two three-dimensional point (x, y, h) and top (x, y, h+step);If no , showing that this point is low spot, (x y) is extended to (x, y, minh) at the bottom of two three-dimensional point and top (x, y, minh to two-dimensional inclined point +step);
Finally, the end and 2, top, added in new structure point chain, obtains a chain L2;
Step 2.2.2, builds side;
Point in the L2 point chain obtaining step 2.2.1 carries out the structure of side tri patch index;The end, top with current interpolation With next step end to be added, top four points based on, construct two tri patch F3 and F4, formed normal counterclockwise to Outer dough sheet, it is ensured that above dough sheet is visible;
Step 2.2.3, odd even limit stores;
Tri patch F3 and F4 that step 2.2.2 is obtained carry out the judgement of odd even limit and be stored in corresponding sides array of indexes in; In order to highlight stereoeffect, the color of odd even side to recalculate according to illumination;Specify initial line for even limit, often calculate one Limit, overturns the parity of its index storage, and the parity on the most adjacent both sides is different, and its triangle index is individually placed to different two In array of indexes;
Step 2.2.4, builds end face;
Summit in the L2 point chain obtaining step 2.2.1 carries out end face dough sheet structure and is stored in top margin array of indexes;Root Generate polygon, the polygon that i.e. top margin contour line surrounds according to top margin summit, divide simple polygon and complex polygon two kinds, right Polygon carries out triangle decomposition;
Step 2.2.5, model construction;
Point in L2 point chain constitutes the vertex data of model, and side, end face array of indexes constitute the index data of model, model Structure completes.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 1 indoor and outdoor integration, it is characterised in that institute In the step 3 stated, indoor and outdoor integration renders outside room objects threedimensional model Ma1, the Ma2 and building being to obtain step 2 Skeleton pattern Mb separately processes, and utilizes the observability of map zoom levels Controlling model and ground resolution Controlling model to realize Indoor and outdoor integration.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 5 indoor and outdoor integration, it is characterised in that institute The indoor and outdoor integration stated renders and comprises the steps:
Step 3.1, indoor and outdoor separately renders;
Whole solitary building model is divided into room objects and building outline two parts, leaves two different figure layers respectively in, Room objects figure layer Ly1 and building outline figure layer Ly2, separately renders;
Step 3.2, two three-dimensional switchings;
Two 3-D graphic observabilities of room objects and building outline are judged according to level of zoom;Map zoom levels is more than Threshold value is that three-dimensional visible two dimension is invisible, is that two dimension is visible three-dimensional invisible less than threshold value, if visible switching table present two Dimensional plane is stretched as 3 D stereo, and described drawing process is moment animation, is three according to increase resolution two dimensional surface height The three-dimensional height of dimension;
Step 3.2, indoor and outdoor switches;
When step 3.2, middle two dimensional surface is stretched as 3 D stereo after, then use ground resolution to control room objects and building The transparency of beyond the region of objective existence skeleton pattern, thus control its observability.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 5 indoor and outdoor integration, it is characterised in that institute The threshold value stated is 17 grades of map zoom levels.
The three-dimensional visualization method of a kind of mobile terminal the most according to claim 5 indoor and outdoor integration, it is characterised in that institute The employing ground resolution stated controls room objects and the transparency of building outline model, particularly:
For building outline: when ground resolution is more than 0.3, building outline is the opaquest;Differentiate on ground When rate is less than 0.3 more than 0.2, building outline transparency 0.9;When ground resolution is less than 0.2 more than 0.1, building Outline transparency 0.6;When ground resolution is less than 0.1 more than 0.09, building outline transparency 0.3;At ground distributor When resolution is less than 0.09, completely into indoor, building outline is fully transparent invisible;
For room objects: when ground resolution is more than 0.3, room objects is nearly transparent invisible;Big in ground resolution When 0.2 less than 0.3, room objects transparency 0.9;When ground resolution is less than 0.2 more than 0.1, room objects transparency 0.6;When ground resolution is less than 0.1, completely into indoor, room objects is the opaquest.
9. the three-dimensional visualization device of a mobile terminal indoor and outdoor integration, it is characterised in that including:
Data preprocessing module: for stair and the process of escalator;Building outline processes;
Building solid stretching module: the two-dimentional interior architecture thing data for obtaining data preprocessing module are carried out at stretching Reason, builds threedimensional model by solid stretching algorithm;
Including for the stretching to common building thing;Including for the stretching to stair and escalator;
Indoor and outdoor integration rendering module: for the room objects that building solid stretching module is obtained and contour of building mould Type separately processes, and utilizes the observability of map zoom levels Controlling model and ground resolution Controlling model to realize indoor and outdoor one Body.
CN201610486584.7A 2016-06-28 2016-06-28 The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device Pending CN106127850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610486584.7A CN106127850A (en) 2016-06-28 2016-06-28 The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610486584.7A CN106127850A (en) 2016-06-28 2016-06-28 The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device

Publications (1)

Publication Number Publication Date
CN106127850A true CN106127850A (en) 2016-11-16

Family

ID=57267422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610486584.7A Pending CN106127850A (en) 2016-06-28 2016-06-28 The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device

Country Status (1)

Country Link
CN (1) CN106127850A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480407A (en) * 2017-09-30 2017-12-15 北京汇筑建筑科技有限公司 Equivalent rectangular section computational methods, device and the terminal of steel pipe concrete profiled pile
CN108363867A (en) * 2018-02-09 2018-08-03 广州大学 Building method for automatic modeling based on architectural drawing
CN108984604A (en) * 2017-06-02 2018-12-11 苹果公司 Place map application and system
CN110779479A (en) * 2019-09-02 2020-02-11 腾讯科技(深圳)有限公司 Object processing method applied to indoor map
CN113284259A (en) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 Method and device for three-dimensional display of building

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000348162A (en) * 1999-06-04 2000-12-15 Nippon Telegr & Teleph Corp <Ntt> Device and method for data composing display and recording medium where data composing display program is recorded
CN101763656A (en) * 2010-01-28 2010-06-30 北京航空航天大学 Construction and display control method for floor and house division model of three-dimensional urban building
CN104318513A (en) * 2014-09-29 2015-01-28 陈奕 Building three-dimensional image display platform and application system thereof
CN104463948A (en) * 2014-09-22 2015-03-25 北京大学 Seamless visualization method for three-dimensional virtual reality system and geographic information system
CN104751479A (en) * 2015-04-20 2015-07-01 中测新图(北京)遥感技术有限责任公司 Building extraction method and device based on TIN data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000348162A (en) * 1999-06-04 2000-12-15 Nippon Telegr & Teleph Corp <Ntt> Device and method for data composing display and recording medium where data composing display program is recorded
CN101763656A (en) * 2010-01-28 2010-06-30 北京航空航天大学 Construction and display control method for floor and house division model of three-dimensional urban building
CN104463948A (en) * 2014-09-22 2015-03-25 北京大学 Seamless visualization method for three-dimensional virtual reality system and geographic information system
CN104318513A (en) * 2014-09-29 2015-01-28 陈奕 Building three-dimensional image display platform and application system thereof
CN104751479A (en) * 2015-04-20 2015-07-01 中测新图(北京)遥感技术有限责任公司 Building extraction method and device based on TIN data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹家: "建筑图的三维重建系统", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984604A (en) * 2017-06-02 2018-12-11 苹果公司 Place map application and system
US11536585B2 (en) 2017-06-02 2022-12-27 Apple Inc. Venues map application and system
US11635303B2 (en) 2017-06-02 2023-04-25 Apple Inc. Application and system providing indoor searching of a venue
US11680815B2 (en) 2017-06-02 2023-06-20 Apple Inc. Venues map application and system providing a venue directory
CN107480407A (en) * 2017-09-30 2017-12-15 北京汇筑建筑科技有限公司 Equivalent rectangular section computational methods, device and the terminal of steel pipe concrete profiled pile
CN107480407B (en) * 2017-09-30 2020-10-30 北京和筑科技有限公司 Equivalent rectangular cross section calculation method and device for steel pipe concrete special-shaped column and terminal
CN108363867A (en) * 2018-02-09 2018-08-03 广州大学 Building method for automatic modeling based on architectural drawing
CN108363867B (en) * 2018-02-09 2021-04-20 广州大学 Building automatic modeling method based on building drawing
CN110779479A (en) * 2019-09-02 2020-02-11 腾讯科技(深圳)有限公司 Object processing method applied to indoor map
CN110779479B (en) * 2019-09-02 2022-01-14 腾讯科技(深圳)有限公司 Object processing method applied to indoor map
CN113284259A (en) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 Method and device for three-dimensional display of building
CN113284259B (en) * 2020-02-20 2024-06-14 北京京东振世信息技术有限公司 Method and device for three-dimensional display of building

Similar Documents

Publication Publication Date Title
CN106127850A (en) The three-dimensional visualization method of a kind of mobile terminal indoor and outdoor integration and device
CN101930627B (en) Three-dimensional dwelling size modeling method based on two-dimensional dwelling size diagram
CN102289845B (en) Three-dimensional model drawing method and device
CN102117500B (en) Three-dimensional modeling method and system
CN104077446B (en) The method and system of two-dimentional electrical construction document are extracted from digital three-dimemsional model
CN102074049A (en) Wide-range terrain scheduling simplifying method based on movement of viewpoint
KR20220043157A (en) Pixel point identification method and apparatus, lighting rendering method and apparatus, electronic device and storage medium
US10163253B2 (en) Lighting management in virtual worlds
CN114219902A (en) Volume rendering method and device for meteorological data and computer equipment
CN103503031B (en) Pixel based on low-resolution buffer is rejected
CN109118588B (en) Automatic color LOD model generation method based on block decomposition
CN104751507A (en) Method and device for rendering pattern contents
CN105205861A (en) Tree three-dimensional visualization model realization method based on Sphere-Board
CN101593361A (en) A kind of large-scale terrain rendering system based on double-layer nested grid
CN113034657B (en) Rendering method, device and equipment for illumination information in game scene
CN111986303A (en) Fluid rendering method and device, storage medium and terminal equipment
KR20150124112A (en) Method for Adaptive LOD Rendering in 3-D Terrain Visualization System
CN112419511A (en) Three-dimensional model file processing method and device, storage medium and server
WO2022161319A1 (en) Shadow mapping processing method and apparatus, and device, computer-readable storage medium and program product
EP3051497A1 (en) Three-dimensional map display system
CN109949413A (en) Model display method, system and electronic equipment
CN102509344B (en) Real-time drawing method based on nonuniform sampling three-dimensional object reflection
do Nascimento et al. Gpu-based real-time procedural distribution of vegetation on large-scale virtual terrains
CN109064546A (en) A kind of landform image data fast dispatch method and its system
CN103886635A (en) Self-adaption LOD model establishing method based on face clustering

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116

RJ01 Rejection of invention patent application after publication