CN113434939B - Stair two-dimensional view generation method and device, electronic equipment and storage medium - Google Patents

Stair two-dimensional view generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113434939B
CN113434939B CN202110726536.1A CN202110726536A CN113434939B CN 113434939 B CN113434939 B CN 113434939B CN 202110726536 A CN202110726536 A CN 202110726536A CN 113434939 B CN113434939 B CN 113434939B
Authority
CN
China
Prior art keywords
stair
floor
dimensional view
stairs
feature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110726536.1A
Other languages
Chinese (zh)
Other versions
CN113434939A (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.)
Glodon Co Ltd
Original Assignee
Glodon Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202110726536.1A priority Critical patent/CN113434939B/en
Publication of CN113434939A publication Critical patent/CN113434939A/en
Application granted granted Critical
Publication of CN113434939B publication Critical patent/CN113434939B/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

Abstract

One or more embodiments of the present invention provide a stair two-dimensional view generating method, apparatus, electronic device, and storage medium, where the stair two-dimensional view generating method includes: in a three-dimensional geometric model of the stairs, determining a vertical cutting range corresponding to the current floor; searching a first characteristic of a first stair of the current floor and a second characteristic of a second stair connected with the first stair in the vertical sectioning range; according to the first characteristic and the second characteristic, a two-dimensional view of the stairs in the vertical cutting range is generated.

Description

Stair two-dimensional view generation method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of constructional engineering design, in particular to a stair two-dimensional view generation method and device, electronic equipment and a storage medium.
Background
At present, a traditional CAD (Computer Aided Design ) two-dimensional design tool cannot truly express the spatial relationship between the stairs at the up and down floors, so that the two-dimensional expression of the stairs mainly depends on the two-dimensional information data of the stairs to generate the graphic effect, but all the graphic expressions need to be manually processed, and particularly when the shape difference of the stairs at the up and down floors is met, the two-dimensional graphic contents of the stairs at each floor need to be modified one by one to meet the requirements of drawing design specifications. Although the two-dimensional graphic effect of the stairs of the floor can be generated by sectioning the three-dimensional model by using the three-dimensional design tool, only the two-dimensional information of the stairs in the view corresponding to the sectioning height of the current view can be obtained, and the two-dimensional graphic effect of the association relationship between the stairs in the space of the crossing floor cannot be expressed.
Disclosure of Invention
In view of this, one or more embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for generating a two-dimensional view of a stair, which can improve the efficiency of generating the two-dimensional view of the stair.
One or more embodiments of the present invention provide a stair two-dimensional view generating method, including: in a three-dimensional geometric model of the stairs, determining a vertical cutting range corresponding to the current floor; searching a first characteristic of a first stair of the current floor and a second characteristic of a second stair connected with the first stair in the vertical sectioning range; and generating a two-dimensional view of the stairs within the vertical cutting range according to the first feature and the second feature.
Optionally, the method further comprises: determining a spatial type of the first stair from the first feature and the second feature before generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature, wherein the spatial type comprises: a bottom layer, a middle layer and a top layer.
Optionally, determining the space type of the first stair according to the first feature and the second feature includes: judging whether stairs exist below the current floor elevation and whether stairs exist above the current floor elevation in the vertical sectioning range; in response to the existence of a stair connected with the first stair above the current floor elevation, determining that the space type of the first stair is the first floor, wherein no stair connected with the first stair exists below the current floor elevation; in response to the existence of a stair connected with the first stair above the current floor elevation, the existence of a stair connected with the first stair below the current floor elevation, and determining the space type of the first stair as an intermediate layer; in response to there being a next-floor stairway below the current floor elevation, there being no stairway above the current floor elevation that is connected to the next-floor stairway, determining a space type of the next-floor stairway as a top layer.
Optionally, generating a two-dimensional view of the stair in the vertical section range according to the first feature and the second feature includes: and determining the expression form of the stairs in the vertical cutting range in the two-dimensional view according to the first characteristic and the second characteristic, and displaying the stairs in the two-dimensional view according to the expression form.
Optionally, determining an expression form of the stair in the vertical section range in the two-dimensional view according to the first feature and the second feature, and displaying the stair in the two-dimensional view according to the expression form includes: in response to the presence of a staircase within the vertical cut range having a top height that does not exceed a view cut height corresponding to a next floor, determining that the representation is such that the staircase is not visible in the two-dimensional view and not displaying the staircase in the two-dimensional view; responding to overlapping of the stairs of the current floor and the stairs of the next floor in the vertical splitting range, determining that the expression form is that the stairs of the current floor and the stairs of the next floor are displayed in a superposition mode in the two-dimensional view, and displaying the superimposed stairs of the current floor and the stairs of the next floor in the two-dimensional view; and in response to the fact that no stair of the current floor exists in the vertical sectioning range and the stair of the next floor exists, determining that the expression form is that the stair of the next floor is displayed completely, and displaying the stair of the next floor completely in the two-dimensional view.
Optionally, the method further comprises: after displaying the stairs in the two-dimensional view according to the representation, displaying at least one annotation element in the two-dimensional view according to the first feature and/or the second feature: floor elevation, stair width, stair railing position, stair platform depth, stair climbing direction and broken line.
Optionally, the marking position of the breaking line on the stairs and the directions of going upstairs and downstairs are determined according to the view cutting height corresponding to the current floor.
Optionally, in the three-dimensional geometric model of the stair, determining a vertical splitting range corresponding to the current floor includes: adding a preset height on the basis of the floor elevation of the next floor to obtain a view sectioning height corresponding to the current floor, wherein the preset height is larger than the height of one floor; and determining the floor elevation of the next floor and the view sectioning height corresponding to the current floor as a vertical sectioning range corresponding to the current floor.
One or more embodiments of the present invention provide a stair two-dimensional view generating apparatus, including: the first determining module is configured to determine a vertical cutting range corresponding to the current floor in the three-dimensional geometric model of the stair; a search module configured to search, within the vertical cut range, for a first feature of a first stair of a current floor and a second feature of a second stair connected to the first stair; a generation module configured to generate a two-dimensional view of the stair within the vertical section from the first feature and the second feature.
Optionally, the apparatus further includes: a second determination module configured to determine a spatial type of the first stair from the first feature and the second feature before generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature, wherein the spatial type comprises: a bottom layer, a middle layer and a top layer.
Optionally, the determining module is specifically configured to: judging whether stairs exist below the current floor elevation and whether stairs exist above the current floor elevation in the vertical sectioning range; in response to the existence of a stair connected with the first stair above the current floor elevation, determining that the space type of the first stair is the first floor if the stair connected with the first stair does not exist below the current floor elevation; in response to the existence of a stair connected with the first stair above the current floor elevation, the existence of a stair connected with the first stair below the current floor elevation, and determining the space type of the first stair as an intermediate layer; in response to there being a next-floor stairway below the current floor elevation, there being no stairway above the current floor elevation that is connected to the next-floor stairway, determining a space type of the next-floor stairway as a top layer.
Optionally, the generating module is configured to: and determining the expression form of the stairs in the vertical cutting range in the two-dimensional view according to the first characteristic and the second characteristic, and displaying the stairs in the two-dimensional view according to the expression form.
Optionally, the generating module is specifically configured to: in response to the presence of a staircase within the vertical cut range having a top height that does not exceed a view cut height corresponding to a next floor, determining that the representation is such that the staircase is not visible in the two-dimensional view and not displaying the staircase in the two-dimensional view; responding to overlapping of the stairs of the current floor and the stairs of the next floor in the vertical splitting range, determining that the expression form is that the stairs of the current floor and the stairs of the next floor are displayed in a superposition mode in the two-dimensional view, and displaying the superimposed stairs of the current floor and the stairs of the next floor in the two-dimensional view; and in response to the fact that no stair of the current floor exists in the vertical sectioning range and the stair of the next floor exists, determining that the expression form is that the stair of the next floor is displayed completely, and displaying the stair of the next floor completely in the two-dimensional view.
Optionally, the apparatus further includes: a display module configured to display, in the two-dimensional view, at least one annotation element according to the first feature and/or the second feature after displaying the staircase in the two-dimensional view according to the representation: floor elevation, stair width, stair railing position, stair platform depth, stair climbing direction and broken line.
Optionally, the marking position of the breaking line on the stairs and the directions of going upstairs and downstairs are determined according to the view cutting height corresponding to the current floor.
Optionally, the first determining module is configured to: adding a preset height on the basis of the floor elevation of the next floor to obtain a view sectioning height corresponding to the current floor, wherein the preset height is larger than the height of one floor; and determining the floor elevation of the next floor and the view sectioning height corresponding to the current floor as a vertical sectioning range corresponding to the current floor.
One or more embodiments of the present invention provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing any one of a stair two-dimensional view generation method when executing the program.
One or more embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform any of the stair two-dimensional view generation methods described above.
According to the stair two-dimensional view generation method, the device, the electronic equipment and the storage medium, the features of the stair crossing the floor (namely the first features of the first stair and the second features of the second stair) are searched in the vertical cutting range corresponding to the current floor, the two-dimensional view of the stair corresponding to the vertical cutting range of the current floor is generated according to the features, the information of the stair can be accurately expressed in the two-dimensional view by means of the actual space information of the stair, which is embodied in the three-dimensional model of the stair, the generation efficiency of the two-dimensional view of the stair is improved, the relation between the three-dimensional data of the stair and the two-dimensional diagram is processed more intelligently, and the information of the stair crossing the floor is embodied in the two-dimensional view of the stair.
Drawings
FIG. 1 is a flow diagram illustrating a method of stair two-dimensional view generation in accordance with one or more embodiments of the present disclosure;
FIG. 2 is a partial schematic view of a three-dimensional model of a stair according to one or more embodiments of the invention;
FIG. 3 is a partial schematic view of a three-dimensional model of a stair according to one or more embodiments of the invention;
FIG. 4 is a two-dimensional view of a stair within a vertical cut-away range corresponding to a current floor as a first floor, shown in accordance with one or more embodiments of the present invention;
FIG. 5 is a partial schematic view of a three-dimensional model of a stair according to one or more embodiments of the invention;
FIG. 6 is a two-dimensional view of a staircase within a vertical cut-away range corresponding to a current floor as an intermediate floor, shown in accordance with one or more embodiments of the invention;
FIG. 7 is a partial schematic view of a three-dimensional model of a stair according to one or more embodiments of the invention;
FIG. 8 is a two-dimensional view of a staircase within a vertical cut-away range corresponding to a current floor shown as a top floor in accordance with one or more embodiments of the invention;
FIG. 9A is a two-dimensional view of a current floor stairway superimposed with a next floor stairway, in accordance with one or more embodiments of the invention;
FIG. 9B is a two-dimensional view of another current floor stairway superimposed with a next floor stairway, in accordance with one or more embodiments of the invention;
FIG. 10A is a two-dimensional view of a first level stair of a double run stair shown in accordance with one or more embodiments of the present disclosure;
FIG. 10B is a two-dimensional view of an intermediate layer of a double-track stair shown in accordance with one or more embodiments of the present disclosure;
FIG. 10C is a two-dimensional view of a top-level stair of a double-track stair shown in accordance with one or more embodiments of the present disclosure;
FIG. 11A is a two-dimensional view of an intermediate layer of a scissors staircase, shown in accordance with one or more embodiments of the present invention;
FIG. 11B is a two-dimensional view of a top level stair of a scissor stair shown in accordance with one or more embodiments of the invention;
FIG. 11C is a two-dimensional view of a first course of a scissors staircase, shown in accordance with one or more embodiments of the present invention;
FIG. 12A is a schematic diagram illustrating a two-dimensional view of a stair according to one or more embodiments of the present disclosure;
FIG. 12B is a schematic diagram illustrating a two-dimensional view of a stair according to one or more embodiments of the present disclosure;
FIG. 13 is a schematic structural view of a stair two-dimensional view generating device according to one or more embodiments of the present disclosure;
fig. 14 is a schematic structural view of an electronic device according to one or more embodiments of the present invention.
Detailed Description
Embodiments of the invention are described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 is a flowchart of a stair two-dimensional view generating method according to one or more embodiments of the present invention, where a stair two-dimensional view is a two-dimensional display object conforming to a building drawing standard generated on a view cut-off height based on a three-dimensional model of a stair, and the view cut-off height is a cut-off height in each plane view in a three-dimensional design system, and is used to express a display effect of a spatial position of a three-dimensional object corresponding to the current cut-off height, as shown in FIG. 1, where the method includes:
step 101: in a three-dimensional geometric model of the stairs, determining a vertical cutting range corresponding to the current floor;
prior to performing step 101, a three-dimensional geometric model of the stairway may be created by a three-dimensional design tool, wherein vertical refers to the height direction of the stairway.
In one or more embodiments of the present invention, in order to show the relationship between the stairs crossing floors in the two-dimensional view of the stairs, the vertical splitting range corresponding to each floor may be made larger than the height of one floor, so that the vertical splitting range corresponding to each floor (except for the first floor and the bottom floor) may include the stairs crossing floors, so the vertical splitting range corresponding to each floor may be preset according to this principle. Or, the calculation mode of the vertical splitting range may be preset, and the vertical splitting range corresponding to each floor may be calculated according to the calculation mode before the two-dimensional view corresponding to each floor is generated.
Step 102: searching a first characteristic of a first stair of the current floor and a second characteristic of a second stair connected with the first stair in the vertical sectioning range;
in one or more embodiments of the invention, the first and second features that are found may include, for example, the connection between the first and second stairs, the number of steps of the stairs, the width of the stairs, the position of the stair railing, and the geometry of the stairs such as the depth of the landing.
Step 103: and generating a two-dimensional view of the stairs within the vertical cutting range according to the first feature and the second feature.
In one or more embodiments of the present invention, the first feature and the second feature may be superimposed, so as to obtain a two-dimensional view of the stair including the cross-floor connection, and geometric parameters of the stair represented by the first feature and/or the second feature may be further marked in the two-dimensional view as annotation elements.
It should be noted that the stair two-dimensional view generation method according to the embodiments of the present invention may be applied to various building stair types, including but not limited to fire evacuation stairs, double running stairs, multi-running stairs, scissor-type stairs, and double-split double-combined stairs.
According to the stair two-dimensional view generation method of one or more embodiments of the invention, the features of the stair crossing the floor (namely the first features of the first stair and the second features of the second stair) are searched in the vertical sectioning range corresponding to the current floor, and the two-dimensional view corresponding to the stair in the vertical sectioning range of the current floor is generated according to the features, so that the information of the stair can be accurately expressed in the two-dimensional view by means of the actual space information of the stair, which is embodied in the three-dimensional model of the stair, the generation efficiency of the two-dimensional view of the stair is improved, the relation between the three-dimensional data of the stair and the two-dimensional diagram is processed more intelligently, and the information of the stair crossing the floor is embodied in the two-dimensional view of the stair.
In one or more embodiments of the invention, since the stairs belong to a vertical traffic structure, in actual engineering, the stairs are integrated structures that continuously span multiple floors, but are divided into different floors in traffic information for use in drawing or statistics, in the three-dimensional model of the stairs, the stairs are independent according to each floor. Therefore, in one or more embodiments of the present invention, it may be determined at the inter-floor interface whether the three-dimensional model meets the connection condition, and whether a connection relationship needs to be established, as shown in fig. 2, where the connection relationship may be established only between inter-floor stairways between upper and lower floor elevations, and the connection relationship cannot be established between stairways at the same floor elevation. The connection relationship can be established among various types of stairs, such as U-shaped double-track stairs, double-track stairs and scissor-type stairs, free stairs, double-track stairs, scissor-type stairs and the like.
In one or more embodiments of the present invention, after establishing a connection relationship between stairs between an upper floor and a lower floor, the connection relationship may be reflected in the first feature and the second feature in the three-dimensional model of the stairs, and based on this, the two-dimensional view generation method of the stairs in the embodiment of the present invention may further include: determining a spatial type of the first stair from the first feature and the second feature before generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature, wherein the spatial type comprises: a bottom layer, a middle layer and a top layer.
In one or more embodiments of the present invention, determining the type of space of the first stairs according to the first feature and the second feature may include:
judging whether stairs exist below the current floor elevation and whether stairs exist above the current floor elevation in the vertical sectioning range;
in response to the existence of a stair connected with the first stair above the current floor elevation, determining that the space type of the first stair is the first floor, wherein no stair connected with the first stair exists below the current floor elevation; as shown in fig. 3, the elevation of the current floor is ±0.000, the view cut height corresponding to the current floor is H1, the vertical cut range corresponding to the current floor is H1 to-3.000, and as can be seen from fig. 3, the elevation of the current floor, that is, the elevation ±0.000, is higher than the elevation, the stairs connected with the stairs of the current floor are present, and the elevation ±0.000, no other stairs connected with the stairs of the current floor are present, so that the space type of the stairs of the current floor can be determined as the first floor. Fig. 4 shows a two-dimensional view of a staircase within a vertical cut-out range corresponding to the first floor at the current floor, and the arrow shown in the figure is an upward direction arrow, and the upward direction is identified.
In response to the existence of a stair connected with the first stair above the current floor elevation, the existence of a stair connected with the first stair below the current floor elevation, and determining the space type of the first stair as an intermediate layer; as shown in fig. 5, the elevation of the current floor is 3.500, the view cut height corresponding to the current floor is H2, the vertical cut range corresponding to the current floor is H to ±0.000, and as can be seen from fig. 5, in the vertical cut range, the elevation of the current floor, that is, the stairs connected with the stairs of the current floor exist above the elevation of 3.500, and other stairs connected with the stairs of the current floor exist below the elevation of 3.500, so that the space type of the stairs of the current floor can be determined to be the middle layer. Fig. 6 shows a two-dimensional view of the stairs within the vertical section corresponding to the middle floor, wherein the broken line is shown on the upper stair section, and the upper stair direction arrow and the lower stair direction arrow are shown on two sides of the broken line.
In response to there being a next-floor stairway below the current floor elevation, there being no stairway above the current floor elevation that is connected to the next-floor stairway, determining a space type of the next-floor stairway as a top layer. As shown in fig. 7, the elevation of the current floor is 11.900, the view cut height corresponding to the current floor is H3, the vertical cut range corresponding to the current floor is H3 to 11.900, and as can be seen from fig. 7, in the vertical cut range, the elevation of the current floor, that is, no stair connected with the stair of the current floor exists above the elevation 11.900, and other stairs connected with the stair of the current floor exist below the elevation 11.900, so that the space type of the stair of the current floor can be determined to be the top layer. Fig. 8 shows a two-dimensional view of the stairs within the vertical cut-out corresponding to the current floor being the top floor, showing the downstairs directional arrow.
In one or more embodiments of the invention, generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature may include:
and determining the expression form of the stairs in the vertical cutting range in the two-dimensional view according to the first characteristic and the second characteristic, and displaying the stairs in the two-dimensional view according to the expression form. The expression of the stairs in the two-dimensional view can comprise, for example: a stair is not expressed in the two-dimensional view, or is expressed in the two-dimensional view entirely, or is superimposed across floors.
In one or more embodiments of the present invention, determining an expression form of a stair in the two-dimensional view in the vertical section range according to the first feature and the second feature, and displaying the stair in the two-dimensional view according to the expression form may include:
in response to the presence of a staircase within the vertical cut range having a top height that does not exceed a view cut height corresponding to a next floor, determining that the staircase is not visible in the two-dimensional view and not displaying the staircase in the two-dimensional view; in the embodiment of the invention, if a stair with the top height not exceeding the view cut height corresponding to the next floor is found in the vertical cut range of the current floor, and the stair is assumed to be S, the top height of the stair S does not exceed the view cut height corresponding to the next floor, so that the stair S falls into the vertical cut range corresponding to the next floor, and the stair S is displayed in the two-dimensional view corresponding to the next floor, so that the stair S is not displayed in the two-dimensional view corresponding to the current floor.
Responding to overlapping of the stairs of the current floor and the stairs of the next floor in the vertical splitting range, determining that the expression form is that the stairs of the current floor and the stairs of the next floor are displayed in a superposition mode in the two-dimensional view, and displaying the superimposed stairs of the current floor and the stairs of the next floor in the two-dimensional view; the parameter information of the upper layer and/or the lower layer of stairs can be accurately expressed by superposing the stairs of the current floor and the stairs of the next floor, and the two-dimensional view can meet the requirement of the design specification of the drawing. Fig. 9A shows a two-dimensional view of a current floor stairway superimposed on a next floor stairway, and in fig. 9A, the right lower section is a second run section of the next floor stairway, including 9 steps. Fig. 9B shows a two-dimensional view of another current floor stairway superimposed with the next floor stairway, in fig. 9B, the right lower section is also the second run section of the next floor stairway, but the number of steps is 8. Therefore, the embodiment of the invention can correctly express the scenes of different steps of the two downstairs.
And in response to the fact that no stair of the current floor exists in the vertical sectioning range and the stair of the next floor exists, determining that the expression form is that the stair of the next floor is displayed completely, and displaying the stair of the next floor completely in the two-dimensional view. Still take fig. 7 as an example, in the vertical section range corresponding to the current floor, i.e. the six floors (6F) shown in the figure, there is no stair of the six floors, and there is a stair of the five floors, and then in the two-dimensional view corresponding to the six floors, the stair of the five floors is completely displayed.
In one or more embodiments of the present invention, the stair two-dimensional view generating method may further include:
after displaying the stairs in the two-dimensional view according to the representation, displaying at least one annotation element in the two-dimensional view according to the first feature and/or the second feature:
floor elevation, stair width, stair railing position, stair platform depth, stair climbing direction and broken line. Based on the method, the main information of the stairs in the two-dimensional view can be accurately expressed by means of the existing stair information in the three-dimensional model of the stairs, the display effect meeting the two-dimensional drawing standard is formed, and key basic materials are provided for further drawing detailed diagrams of the stairs.
The information such as the elevation of the storey, the width of the stair, the position of the stair railing, the depth of the stair platform and the like can be obtained by searching in a vertical cutting range corresponding to the current storey in the three-dimensional model of the stair, namely, the illustration of the stair can be annotated in a two-dimensional view of the stair according to the geometric information of the existing stair of the three-dimensional model of the stair.
10A, 10B and 10C show three two-dimensional views of a double-track stair, respectively, in FIG. 10A, showing a two-dimensional view of the corresponding stair when the floor is the first floor, showing the upstairs direction of the stair by the upstairs direction arrow, and showing a broken line on the stair; in fig. 10B, a two-dimensional view of a corresponding stair when a floor is an intermediate floor is shown, in which a broken line is shown in the stair, and an up-building direction and a down-building direction of the stair are shown by an up-building direction arrow and a down-building direction arrow, and the elevation of the present floor and the elevation of the lower floor are also shown; in fig. 10C, a two-dimensional view of the corresponding stairway when the floor is the top layer is shown, and the downstairs direction is shown by the downstairs direction arrow, and the position of the horizontal rail is also shown. As can be seen from fig. 10A to fig. 10C, the stair two-dimensional view generating method according to the embodiment of the present invention can form different expressions for the first layer, the middle layer and the stair at the bottom layer, so as to distinguish the stairs with different space types.
11A, 11B and 11C show three two-dimensional views of a scissor type stair respectively, in FIG. 11A, a two-dimensional view of a corresponding stair when a floor is an intermediate layer is shown, broken lines are shown in the stair, the upstairs direction and downstairs direction of the stair are shown by an upstairs direction arrow and a downstairs direction arrow, and the elevation of the building, the elevation of the downstairs and the width of the stair are also shown; in fig. 11B, a two-dimensional view of the corresponding stairway when the floor is the top layer is shown, and the downstairs direction of the stairway is shown in the stairway by downstairs direction arrows; in fig. 11C, a two-dimensional view of a corresponding stair when the floor is the first floor is shown, a broken line is shown in the stair, the upward direction is shown by upward direction arrows on both sides of the broken line, and the elevation of the present floor and the elevation of the lower floor are also shown. 11A-11C, the stair two-dimensional view generating method according to the embodiment of the invention can form different expressions on the first layer, the middle layer and the stair at the bottom layer so as to distinguish the stair with different space types.
In one or more embodiments of the present invention, the marked position of the break line on the stairs and the directions of going upstairs and downstairs are determined according to the view cut height corresponding to the current floor. For example, when the view cut height of the current floor is different, and the position of the break line on the stair is different, as shown in fig. 12A and 12B, a break line is generated at a position on the stair in the vertical direction of the stair. In addition, through the arrangement, the broken line is prevented from being arranged at the platform, and if the view cutting height is exactly positioned at the platform, the broken line can be prevented from being displayed at the position where the platform is arranged. The up-going directional arrow and the down-going directional arrow can be displayed along with the position of the broken line, as shown in fig. 12A and 12B, and the up-going directional arrow and the down-going directional arrow are displayed on both sides of the broken line.
In one or more embodiments of the present invention, in the three-dimensional geometric model of the stair, determining the vertical dissection range corresponding to the current floor may include:
adding a preset height on the basis of the floor elevation of the next floor to obtain a view sectioning height corresponding to the current floor, wherein the preset height is larger than the height of one floor; still referring to fig. 3, the floor elevation of the next floor is-3.000, the preset height is-3.000 to the height between the view cut height H1, the view cut height corresponding to the current floor is H1, and as can be seen from fig. 3, the height between ±0.000 and-3.000 is the height of one floor, and the preset height is greater than the height.
And determining the floor elevation of the next floor and the view sectioning height corresponding to the current floor as a vertical sectioning range corresponding to the current floor. Still referring to fig. 3 for example, a height between-3.000 and H1 is determined as the vertical cut-out range corresponding to the current floor (i.e., 1F).
Fig. 13 is a schematic structural view of a stair two-dimensional view generating apparatus according to one or more embodiments of the present invention, and as shown in fig. 13, the apparatus 130 includes:
the first determining module 131 is configured to determine a vertical cutting range corresponding to the current floor in the three-dimensional geometric model of the stair;
A search module 132 configured to search for a first characteristic of a first stair of a current floor and a second characteristic of a second stair connected to the first stair within the vertical section;
a generation module 133 is configured to generate a two-dimensional view of the stairs within the vertical cut-out range from the first feature and the second feature.
In one or more embodiments of the present invention, the stair two-dimensional view generating apparatus may further include: a second determination module configured to determine a spatial type of the first stair from the first feature and the second feature before generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature, wherein the spatial type comprises: a bottom layer, a middle layer and a top layer.
In one or more embodiments of the present invention, the determining module may be specifically configured to: judging whether stairs exist below the current floor elevation and whether stairs exist above the current floor elevation in the vertical sectioning range; in response to the existence of a stair connected with the first stair above the current floor elevation, determining that the space type of the first stair is the first floor, wherein no stair connected with the first stair exists below the current floor elevation; in response to the existence of a stair connected with the first stair above the current floor elevation, the existence of a stair connected with the first stair below the current floor elevation, and determining the space type of the first stair as an intermediate layer; in response to there being a next-floor stairway below the current floor elevation, there being no stairway above the current floor elevation that is connected to the next-floor stairway, determining a space type of the next-floor stairway as a top layer.
In one or more embodiments of the invention, the generation module may be configured to: and determining the expression form of the stairs in the vertical cutting range in the two-dimensional view according to the first characteristic and the second characteristic, and displaying the stairs in the two-dimensional view according to the expression form.
In one or more embodiments of the present invention, the generating module may be specifically configured to: in response to the presence of a staircase within the vertical cut range having a top height that does not exceed a view cut height corresponding to a next floor, determining that the staircase is not visible in the two-dimensional view and not displaying the staircase in the two-dimensional view; responding to overlapping of the stairs of the current floor and the stairs of the next floor in the vertical splitting range, determining that the expression form is that the stairs of the current floor and the stairs of the next floor are displayed in a superposition mode in the two-dimensional view, and displaying the superimposed stairs of the current floor and the stairs of the next floor in the two-dimensional view; and in response to the fact that no stair of the current floor exists in the vertical sectioning range and the stair of the next floor exists, determining that the expression form is that the stair of the next floor is displayed completely, and displaying the stair of the next floor completely in the two-dimensional view.
In one or more embodiments of the present invention, the stair two-dimensional view generating apparatus may further include: a display module configured to display, in the two-dimensional view, at least one annotation element according to the first feature and/or the second feature after displaying the staircase in the two-dimensional view according to the representation: floor elevation, stair width, stair railing position, stair platform depth, stair climbing direction and broken line.
In one or more embodiments of the present invention, the marked position of the break line on the stairs and the directions of going upstairs and downstairs are determined according to the view cut height corresponding to the current floor.
In one or more embodiments of the present invention, the first determining module may be configured to: adding a preset height on the basis of the floor elevation of the next floor to obtain a view sectioning height corresponding to the current floor, wherein the preset height is larger than the height of one floor; and determining the floor elevation of the next floor and the view sectioning height corresponding to the current floor as a vertical sectioning range corresponding to the current floor.
One or more embodiments of the present invention further provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing any one of the stair two-dimensional view generation methods described above when executing the program.
One or more embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform any one of the stair two-dimensional view generation methods described above.
It should be noted that, the method of the embodiment of the present invention may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the method of an embodiment of the present invention, the devices interacting with each other to accomplish the method.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Fig. 14 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the invention (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the invention, the steps may be implemented in any order and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the invention. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the present invention should be included in the scope of the present invention.

Claims (9)

1. A stair two-dimensional view generation method, comprising:
in a three-dimensional geometric model of the stairs, determining a vertical cutting range corresponding to the current floor;
searching a first characteristic of a first stair of a current floor and a second characteristic of a second stair connected with the first stair in the vertical sectioning range, wherein the first characteristic of the first stair and the second characteristic of the second stair can comprise a connection relation between the first stair and the second stair, the number of steps of the stair, the width of the stair, the position of a stair handrail and the depth of a stair platform;
generating a two-dimensional view of the stairs within the vertical cutting range according to the first feature and the second feature;
in a three-dimensional geometric model of a stair, determining a vertical cutting range corresponding to a current floor comprises:
adding a preset height on the basis of the floor elevation of the next floor to obtain a view sectioning height corresponding to the current floor, wherein the preset height is larger than the height of one floor;
Determining a vertical cutting range corresponding to the current floor as a position between the floor elevation of the next floor and the view cutting height corresponding to the current floor;
generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature, comprising:
and determining the expression form of the stairs in the vertical cutting range in the two-dimensional view according to the first characteristic and the second characteristic, and displaying the stairs in the two-dimensional view according to the expression form, wherein the expression form comprises the steps of not expressing a certain stair in the two-dimensional view, expressing a certain stair in the two-dimensional view completely or superposing the stairs crossing floors.
2. The method according to claim 1, wherein the method further comprises:
determining a spatial type of the first stair from the first feature and the second feature before generating a two-dimensional view of the stair in the vertical section range from the first feature and the second feature, wherein the spatial type comprises: a bottom layer, a middle layer and a top layer.
3. The method of claim 2, wherein determining the type of space of the first staircase from the first feature and the second feature comprises:
Judging whether stairs exist below the current floor elevation and whether stairs exist above the current floor elevation in the vertical sectioning range;
in response to the existence of a stair connected with the first stair above the current floor elevation, determining that the space type of the first stair is the first floor, wherein no stair connected with the first stair exists below the current floor elevation;
in response to the existence of a stair connected with the first stair above the current floor elevation, the existence of a stair connected with the first stair below the current floor elevation, and determining the space type of the first stair as an intermediate layer;
in response to there being a next-floor stairway below the current floor elevation, there being no stairway above the current floor elevation that is connected to the next-floor stairway, determining a space type of the next-floor stairway as a top layer.
4. The method of claim 1, wherein determining an expression of a stair in the two-dimensional view for the vertical dissection range from the first feature and the second feature, and displaying the stair in the two-dimensional view from the expression comprises:
In response to the presence of a staircase within the vertical cut range having a top height that does not exceed a view cut height corresponding to a next floor, determining that the representation is such that the staircase is not visible in the two-dimensional view and not displaying the staircase in the two-dimensional view;
responding to overlapping of the stairs of the current floor and the stairs of the next floor in the vertical splitting range, determining that the expression form is that the stairs of the current floor and the stairs of the next floor are displayed in a superposition mode in the two-dimensional view, and displaying the superimposed stairs of the current floor and the stairs of the next floor in the two-dimensional view;
and in response to the fact that no stair of the current floor exists in the vertical sectioning range and the stair of the next floor exists, determining that the expression form is that the stair of the next floor is displayed completely, and displaying the stair of the next floor completely in the two-dimensional view.
5. The method according to claim 1, wherein the method further comprises:
after displaying the stairs in the two-dimensional view according to the representation, displaying at least one annotation element in the two-dimensional view according to the first feature and/or the second feature:
Floor elevation, stair width, stair railing position, stair platform depth, stair climbing direction and broken line.
6. The method of claim 5, wherein the noted location of the break line on the stairs and the directions of going upstairs and downstairs are determined based on a view cut height corresponding to a current floor.
7. A stair two-dimensional view generation device, comprising:
the first determining module is configured to determine a vertical cutting range corresponding to the current floor in the three-dimensional geometric model of the stair;
a search module configured to search for a first feature of a first stair of a current floor and a second feature of a second stair connected to the first stair within the vertical cut-out range, wherein the first feature of the first stair and the second feature of the second stair may include a connection relationship between the first stair and the second stair, a number of steps of the stair, a stair width, a stair railing position, and a stair platform depth;
a generation module configured to generate a two-dimensional view of the stairs within the vertical cut-out range from the first feature and the second feature;
the first determination module is configured to: adding a preset height on the basis of the floor elevation of the next floor to obtain a view sectioning height corresponding to the current floor, wherein the preset height is larger than the height of one floor; determining a vertical cutting range corresponding to the current floor as a position between the floor elevation of the next floor and the view cutting height corresponding to the current floor;
The generation module is configured to: and determining the expression form of the stairs in the vertical cutting range in the two-dimensional view according to the first characteristic and the second characteristic, and displaying the stairs in the two-dimensional view according to the expression form, wherein the expression form comprises the steps of not expressing a certain stair in the two-dimensional view, expressing a certain stair in the two-dimensional view completely or superposing the stairs crossing floors.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the stair two-dimensional view generation method according to any one of claims 1 to 6 when executing the program.
9. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the stair two-dimensional view generation method of any one of claims 1 to 6.
CN202110726536.1A 2021-06-29 2021-06-29 Stair two-dimensional view generation method and device, electronic equipment and storage medium Active CN113434939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110726536.1A CN113434939B (en) 2021-06-29 2021-06-29 Stair two-dimensional view generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110726536.1A CN113434939B (en) 2021-06-29 2021-06-29 Stair two-dimensional view generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113434939A CN113434939A (en) 2021-09-24
CN113434939B true CN113434939B (en) 2024-01-30

Family

ID=77757801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110726536.1A Active CN113434939B (en) 2021-06-29 2021-06-29 Stair two-dimensional view generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113434939B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016138531A1 (en) * 2015-02-27 2016-09-01 Aditazz, Inc. Method and system for generating building plans using slices
CN109992901A (en) * 2019-04-08 2019-07-09 同济大学建筑设计研究院(集团)有限公司 Stair data processing method, device and the computer equipment of building
CN110704932A (en) * 2019-10-09 2020-01-17 北京中外建建筑设计有限公司 Revit software-based prefabricated staircase detailed graph rapid plotting method
CN112464325A (en) * 2019-09-06 2021-03-09 久瓴(江苏)数字智能科技有限公司 Stair model creating method and device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204241A1 (en) * 2006-02-28 2007-08-30 Autodesk, Inc. Method for generating three dimensional stair objects in computer aided design drawings
US20180253510A1 (en) * 2017-03-03 2018-09-06 Aditazz, Inc. Computer-based method and system for automatically generating a building plan

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016138531A1 (en) * 2015-02-27 2016-09-01 Aditazz, Inc. Method and system for generating building plans using slices
CN107430639A (en) * 2015-02-27 2017-12-01 阿迪塔兹公司 For the method and system using slice map generation architectural plan
CN109992901A (en) * 2019-04-08 2019-07-09 同济大学建筑设计研究院(集团)有限公司 Stair data processing method, device and the computer equipment of building
CN112464325A (en) * 2019-09-06 2021-03-09 久瓴(江苏)数字智能科技有限公司 Stair model creating method and device, computer equipment and storage medium
CN110704932A (en) * 2019-10-09 2020-01-17 北京中外建建筑设计有限公司 Revit software-based prefabricated staircase detailed graph rapid plotting method

Also Published As

Publication number Publication date
CN113434939A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
KR101983785B1 (en) Method of automatic generation of indoor map utilizing the ridar equipment
US20210381846A1 (en) Methods and apparatuses for navigation guidance and establishing a three-dimensional real scene model, device and medium
JP6602275B2 (en) Elevator machine room drawing generation apparatus, elevator machine room modeling data generation apparatus, elevator machine room drawing generation method, and elevator machine room modeling data generation method
CN109726470B (en) Three-dimensional model index checking method, device and medium
US9292629B2 (en) Building path identification
US9909880B2 (en) Automated wayfinding of an accessible route
CN112149217A (en) Method and device for generating three-dimensional indoor navigation scene, electronic equipment and storage medium
US20230020885A1 (en) Automatic conversion of 2d schematics to 3d models
CN104251690A (en) Method and electronic device for acquiring relative height
Schaffranek et al. Space syntax for generative design: On the application of
US20210150442A1 (en) Generating building designs that optimize productivity of the building
CN111102980B (en) Path generation method and device and electronic equipment
CN113434939B (en) Stair two-dimensional view generation method and device, electronic equipment and storage medium
JP6059030B2 (en) Network data generation system, method, and program
JP2009300312A (en) Earthquake damage estimating device and earthquake damage estimation program
JPWO2018016558A1 (en) Simulation apparatus, simulation system, simulation method, and program
Lin et al. Automating the generation of indoor space topology for 3D route planning using BIM and 3D-GIS techniques
CN109857259A (en) Collision body interaction control method and device, electronic equipment and storage medium
US9157248B2 (en) Danger zone detection in building models
US9891791B1 (en) Generating an interactive graph from a building information model
WO2021074665A1 (en) Generating a 3d model of a plant layout
KR20220084997A (en) METHOD FOR PROVIDING NAVIGATION BASED ON 3-Dimension CAD MODEL AND APPARATUS THEREOF
CN113468641B (en) Method, device, electronic equipment and storage medium for creating geometric model of railing
JP7288411B2 (en) 2D MAP DATA GENERATION DEVICE, 2D MAP DATA GENERATION METHOD, AND 2D MAP DATA GENERATION SYSTEM
CA3019487A1 (en) Systems and methods for unfaulting point clouds

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