CN117313221A - Building target modeling method for target vulnerability - Google Patents

Building target modeling method for target vulnerability Download PDF

Info

Publication number
CN117313221A
CN117313221A CN202311595154.5A CN202311595154A CN117313221A CN 117313221 A CN117313221 A CN 117313221A CN 202311595154 A CN202311595154 A CN 202311595154A CN 117313221 A CN117313221 A CN 117313221A
Authority
CN
China
Prior art keywords
target
component
constraint
building
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311595154.5A
Other languages
Chinese (zh)
Other versions
CN117313221B (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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN202311595154.5A priority Critical patent/CN117313221B/en
Publication of CN117313221A publication Critical patent/CN117313221A/en
Application granted granted Critical
Publication of CN117313221B publication Critical patent/CN117313221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD

Landscapes

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

Abstract

The invention relates to a building target modeling method for target vulnerability, belongs to the technical field of target vulnerability analysis, and solves the problems of low modeling efficiency, poor expansibility and inflexible editing and adjusting in target vulnerability analysis of the existing modeling method. The method comprises the steps of establishing models of different target components according to component types formed by building targets to be modeled, configuring target editable parameters of the building targets to obtain target component bounding box parameters, further generating a target component parameter set and a target component constraint set, then solving the constraints of each target component of the building targets to obtain updated target component bounding box parameters, and completing the construction of a parameterized modeling model by moving each target component; and modifying the target editable parameters of the parameterized modeling model and the constraint conditions in the constraint set of the target component according to the actual modeling requirement to generate an equivalent three-dimensional digital model of the building target. Flexible modeling of building targets in target vulnerability analysis is achieved.

Description

Building target modeling method for target vulnerability
Technical Field
The invention relates to the technical field of target vulnerability analysis, in particular to a building target modeling method for target vulnerability.
Background
The vulnerability of the target refers to the degree of damage to the target when the target is hit by a damage element. The target vulnerability research can guide the optimization of target design and target striking scheme planning. The target vulnerability model comprises an equivalent three-dimensional digital model, an equivalent material model, a damage logic relationship model and a damage law model. The method comprises the steps of simplifying a spatial physical structure of a target, and reserving key characteristics to obtain an equivalent three-dimensional digital model; the material attribute is given to the equivalent three-dimensional digital model to obtain an equivalent material model, the target damage logic relation model is obtained through analysis of the physical function structure of the target, and the damage discipline model of the specific damage element to the target is obtained through analysis of the damage experiment of the target.
Various ground building targets in modern war play an important role in command, defense, information centers and the like, and meanwhile, tactical means of first enemy persons are more and more along with the transition of modern war modes. The number and style of corresponding ground constructions for defense is also increasing, making ground construction targets an increasingly important military hit target. At present, the damage effect evaluation of building targets becomes a hot spot of research of all parties, and the damage effect evaluation process of the building targets needs a high-quality equivalent three-dimensional digital model of the targets. The traditional military building target modeling is mainly interactive manual modeling, and the defects of low modeling efficiency and uneven modeling quality of the interactive manual modeling are more obvious for the conditions of complex structure, huge number of parts, repeated modification and adjustment and various types. Moreover, because the building targets have various and complex structures, the manual interactive modeling efficiency is low; the number of components contained in one building target is up to hundreds, and the time for assembling the components into the target is long; when the building target is edited for the second time, the spatial position relation of the components is considered, and the building target is difficult to edit quickly; so that the construction of the equivalent three-dimensional digital model in the existing building category target vulnerability model takes longer time. The most commonly used solution is to perform secondary development on the existing modeling system, for example, performing secondary development on a general modeling system such as CATIA, solidWorks, revit. However, secondary development requires a rich computer programming basis for the modeler, and development workload of the secondary development itself is huge, and the method is only suitable for specific types of building targets.
Thus, there is a need for a modeling method with high modeling efficiency, strong expansibility, and flexible editing adjustment in target vulnerability analysis.
Disclosure of Invention
In view of the above analysis, the embodiment of the invention aims to provide a building target modeling method for target vulnerability, which is used for solving the problems of low modeling efficiency, poor expansibility and inflexible editing and adjusting in the target vulnerability analysis of the existing modeling method.
The embodiment of the invention provides a building target modeling method for target vulnerability, which comprises the following steps of:
establishing models of different target components according to the component types formed by the building targets to be modeled, and configuring target editable parameters of the building targets; obtaining parameters of bounding boxes of all target components based on all target component models and target editable parameters in a building target to be modeled, and further generating a target component parameter set and a target component constraint set;
solving the constraint of each target component of the building target according to the target component parameter set and the target component constraint set to obtain updated surrounding box parameters of each target component, and further moving each target component to complete the construction of a parameterized modeling model;
and modifying the target editable parameters of the parameterized modeling model and the constraint conditions in the constraint set of the target component according to the actual modeling requirement to generate an equivalent three-dimensional digital model of the building target.
Further, the model of the target component is built by:
establishing a target coordinate system and selecting a shaping size parameter of a target component; the shaping size parameter is a parameter for determining the space structure size of the target assembly;
taking the origin of the target coordinate system as the geometric center point of the target component to obtain each vertex coordinate of the target component, thereby obtaining the parameters of the bounding box of the target component;
and generating a vertex topological relation of the target assembly based on each vertex coordinate of the target assembly, and completing the establishment of the target assembly model.
Further, a target component parameter set is generated by:
selecting the type and the number of the target component models according to the type and the number of the actual components of the building target to be modeled;
setting the setting size parameter values of each target component model in sequence based on the target editable parameters, and further obtaining the corresponding bounding box parameter values of each target component to form a target component parameter set.
Further, the target component constraint in the target component constraint set is a distance constraint between 6 faces of the target component bounding box; the constraint format is [ first component:: surface to be moved, second component:: reference surface, set distance ], which means that the position of the surface to be moved of the first component is moved to the position of the reference surface of the second component by the set distance.
Further, the set of target component constraints is generated by:
selecting a target datum component according to a building target to be modeled, wherein the target datum component is used for bearing a target non-datum component or serving as a positioning reference of the target non-datum component;
and sequentially setting constraints between the target reference component and the target coordinate system and constraints between the target non-reference component and the target reference component or constraints between the non-reference components to form a target component constraint set.
Further, with the target coordinate system as a reference component, solving the constraint of each target component of the building target to obtain updated bounding box parameters of each target component by the following method:
constructing a component surface position mapping structure, wherein the component surface position mapping structure is used for storing the corresponding relation between a component surface and a surface coordinate thereof in a target coordinate system;
adding the component planes of all the target components and the plane coordinates thereof in a target coordinate system into the component plane position mapping structure according to the target component parameter set to serve as initial values of the component plane position mapping structure; adding the target editable parameters and the coordinate system surface into the component surface position mapping structure;
constructing a component constraint mapping structure which is used for storing all constraint relations between each target component and other target components;
adding constraints of all target components to the component constraint mapping structure based on the set of target component constraints; according to the sequence of the target components in the target component parameter set, each target component only builds a constraint relation with the previous target component;
and obtaining updated parameters of each target component bounding box based on the component constraint mapping structure.
Further, the updated target component bounding box parameters are obtained based on the component constraint mapping structure by:
s251, traversing constraint relations of all target components in the component constraint mapping structure in sequence:
s2511, traversing each constraint relation of the current target component in sequence: obtaining a coordinate value of a second component reference surface in the constraint of the current target component according to the component surface position mapping structure, obtaining an updated distance value according to the set distance, obtaining a movement amount, and increasing a parameter of the bounding box of the current target component on a coordinate axis corresponding to the movement direction by the movement amount;
s2512, after traversing all constraint relations of the current target assembly, obtaining updated target assembly bounding box parameters of the current target assembly, and updating the component surface position mapping structure by taking the updated target assembly bounding box parameters as corresponding surface positions of the current target assembly respectively;
s252, after traversing constraint relations of all target components, updated bounding box parameters of all target components are obtained.
Further, the updated distance value is obtained by:
if the distance set in the constraint of the target component is a fixed value, adding the fixed value to the coordinate value of the reference surface of the second component to obtain an updated distance value;
if the distance set in the constraint of the target component is an expression generated according to the target editable parameter, a target editable parameter value is obtained according to the component surface position mapping structure, and then the target editable parameter value and the coordinate value of the second component reference surface are added to obtain an updated distance value.
Further, the moving amount is obtained by subtracting the coordinate value of the surface to be moved of the first component from the updated distance value.
Further, each target member is moved by:
and obtaining the center point coordinates of each target component bounding box based on the updated target component bounding box parameters, respectively using the center point coordinates as updated geometric center positions of the corresponding target components, and moving each target component position according to the updated geometric center positions.
Compared with the prior art, the invention has at least the following beneficial effects:
the invention provides a building target modeling method for target vulnerability, which comprises the steps of establishing models of different target components, configuring target editable parameters of building targets, generating a target component parameter set and a target component constraint set, further solving the constraint of each target component of the building targets to obtain updated surrounding box parameters of each target component, and completing the construction of a parameterized modeling model by moving each target component; when the method is actually applied, the equivalent three-dimensional digital model of the building target can be generated by modifying the editable parameters of the target and the constraint conditions in the constraint set of the target component, and the modeling efficiency is higher, the expansibility is stronger and the editing and adjustment are more flexible in the target vulnerability analysis; the positioning difficulty is greatly simplified and the positioning accuracy of the assembly is improved through the inter-assembly surface constraint positioning; the flexibility of the system is greatly improved by expanding the custom assembly; the method for managing the target component position through the component constraint chain is provided, when the target size is edited for the second time, the constraint chain can be solved again by the system, the target component position can be calculated, and the target secondary editing efficiency is greatly improved.
In the invention, the technical schemes can be mutually combined to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, like reference numerals being used to designate like parts throughout the drawings;
FIG. 1 is a schematic flow chart of a building target modeling method for target vulnerability according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a vertex structure of a spatial cube assembly according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the vertex structure of a spatial cylinder assembly according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a triangular face structure of a spatial cube assembly according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a triangular face structure of a spatial cylinder assembly according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of modeling a typical road bridge according to an embodiment of the present invention;
fig. 7 is a schematic modeling diagram of a section of a typical road bridge after parameter modification according to an embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and together with the description serve to explain the principles of the invention, and are not intended to limit the scope of the invention.
In one embodiment of the present invention, a building target modeling method for target vulnerability is disclosed, as shown in fig. 1, comprising the steps of:
s1, building models of different target components according to component types formed by building targets to be built, and configuring target editable parameters of the building targets; and obtaining parameters of bounding boxes of all target components based on all target component models and target editable parameters in the building target to be modeled, and further generating a target component parameter set and a target component constraint set.
The building target is composed of different types and numbers of components, and when the target component model is built, different types of target component models are built.
In practice, a model of the target component is built by:
s11, establishing a target coordinate system, and selecting a shaping size parameter of a target assembly; the shaping size parameter is a parameter for determining the space structure size of the target assembly.
In the implementation, a center point of a modeling display interface is taken as an origin, a horizontal right direction along the display interface is taken as an X axis, a vertical upward direction along the display interface is taken as a Z axis, and a Y axis obtained by a right hand rule is used for establishing a target coordinate system. The modeling display interface is used for displaying three-dimensional modeling results, such as a computer display interface and a mobile phone display screen interface.
Specifically, the setting size parameters of different types of target components are also different, and the design is carried out according to the specific requirements of modeling the target components. Illustratively, the spatial cube shape-setting dimension parameter is cube side length; the shaping size parameters of the space cuboid are cuboid length, width and height; the space sphere shaping size parameter is sphere radius; the shape-setting size parameters of the space cylinder are cylinder radius, height and resolution; wherein the resolution represents the number of sides of a circle represented by a regular polygon.
More specifically, the shaping size parameters of the same component can have different groups, for example, the shaping size parameters of the spatial cylinder can also be selected from cylinder diameter, height and resolution, and the shaping size parameters can be selected according to practical situations in specific applications.
It should be noted that, for convenience of description in this embodiment, a spatial cube and a spatial cylinder are selected for description, where the dimensional parameters of the spatial cube are cube side length, and the dimensional parameters of the spatial cylinder are cylinder radius, height and resolution.
S12, taking the origin of the target coordinate system as the geometric center point of the target component to obtain the coordinates of each vertex of the target component, and further obtaining the parameters of the bounding box of the target component.
Specifically, the vertices of the target component are the intersections of the faces in the target component, e.g., a spatial cube has 8 vertices and a cylinder of resolution N has 2n+2 vertices.
Specifically, the target component bounding box is a minimum hexahedron containing an object and having sides parallel to coordinate axes, and the parameters of the target component bounding box are [ xmin, xmax, ymin, ymax, zmin, zmax ]; wherein xmin represents a minimum coordinate value of the target component on the X axis, xmax represents a maximum coordinate value of the target component on the X axis, ymin represents a minimum coordinate value of the target component on the Y axis, ymax represents a maximum coordinate value of the target component on the Y axis, zmin represents a minimum coordinate value of the target component on the Z axis, zmax represents a maximum coordinate value of the target component on the Z axis. And calculating parameters of the bounding box of the target component according to the vertex coordinates of the target component or the set shaping size parameters.
In this embodiment, for convenience of description, a side length of the spatial cube is 1, a radius of the spatial cylinder is 1, a height of the spatial cylinder is 1, and a resolution of the spatial cylinder is 8, as shown in fig. 2 and 3, vertex coordinates of the obtained spatial cube component are shown in table 1, and vertex coordinates of the spatial cylinder component are shown in table 2.
Table 1 vertex coordinates of spatial cube components
Table 2 vertex coordinates of a spatial cylinder assembly
Based on the vertex coordinates or the set side length of the above-mentioned space cube component, the parameters of the space cube component bounding box can be obtained as [ -0.5, -0.5,0.5]; based on the vertex coordinates or the set radius, height and resolution of the above spatial cylinder assembly, the parameters of the spatial cylinder assembly bounding box can be obtained as [ -1.0, -0.5,0.5].
And S13, generating a vertex topological relation of the target assembly based on each vertex coordinate of the target assembly, and completing establishment of a target assembly model.
Specifically, the target component vertex topology is the constituent vertex order of the target component outer surface patches. More specifically, in this embodiment, a triangular patch is selected as the target component surface patch, where the triangular patch includes three vertex indices, and the three vertex indices form a triangular patch index set. For example, the index set (I1, I2, I3) includes three indices I1, I2, and I3, whose corresponding vertex coordinates are P1, P2, and P3, the index set indicates that three vertices of the triangular patch are P1, P2, and P3, and the external normal vector of the triangular patch is obtained by cross-multiplying the vector (P1, P2) and the vector (P2, P3).
Illustratively, in this embodiment, the triangular patches of the spatial cube are shown in fig. 4, and the vertex topologies are shown in table 3; the triangular patches of the spatial cylinder are shown in fig. 5, and the vertex topologies are shown in table 4.
TABLE 3 spatial cube vertex topology
TABLE 4 spatial cylinder vertex topology
Further, the process of steps S11-S13 is packaged into a computing script, such as python, lua, using any scripting language. The input parameters of the calculation script are the shaping size parameters of the selected target component, and the output parameters are the vertex coordinates of the target component, the bounding box parameters of the target component and the vertex topological relation of the target component. More specifically, the different target component types may also differ in computing scripts, requiring the writing of appropriate scripts for each target component type.
In the implementation, in step S1, the target editable parameter is a parameter modifiable in the building target modeling process, and the building target to be modeled is set, for example, a section of highway bridge, if the height and width of the bridge are not changed, only the length size is changed, and the length size is set as the target editable parameter.
Illustratively, a typical road bridge is selected as an example in this embodiment for explanation: a typical road bridge consists of a bridge deck and two bridge piers; wherein, bridge deck subassembly is equivalent by space cuboid subassembly, and pier subassembly is equivalent by space cylinder subassembly. The shaping size parameter of the space cuboid assembly is the length of the cuboid assembly in the direction of X, Y, Z coordinate axes.
In this embodiment, editable parameters of a typical road bridge target are set to be an overall length GL, an overall width GW, a pier height GH, and a pier radius GR; wherein, each parameter initial value is gl=20000 mm, gw=5000 mm, gh=6000 mm and gr=800 mm respectively.
In practice, in step S1, the target component parameter set is generated by:
selecting the type and the number of the target component models according to the type and the number of the actual components of the building target to be modeled;
setting the setting size parameter values of each target component model in sequence based on the target editable parameters, and further obtaining the corresponding bounding box parameter values of each target component to form a target component parameter set.
Illustratively, the assembly types of a section of typical road bridge in the present embodiment include a space cuboid assembly and a space cylinder assembly, wherein 1 space cuboid assembly and 2 space cylinder assemblies; in this embodiment, for convenience of description, the spatial cuboid assembly is named Cube1, and the two spatial Cylinder assemblies are named Cylinder1 and Cylinder2, respectively.
Sequentially setting the parameter radius R=GR, the height H=GH and the resolution N=100 of the Cylinder1 based on the set target editable parameters of a section of typical highway bridge; the parameter radius r=gr, the height h=gh, and the resolution n=100 of Cylinder 2; length in parameter X axis of Cube1 is length x=gl, length in Y axis is length=gw, length in Z axis is length z=600 mm.
Based on step S12, it can be calculated that: cube1 bounding box parameters [ -GL/2, GL/2, -GW/2, GW/2, -600/2, 600/2] = [ -10000, 10000, -2500, 2500, -300, 300]; the Cylinder1 bounding box parameters [ -GR, GR, -GR, GR, -GH/2, GH/2] = [ -800, 800, -800, 800, -3000, 3000]; the Cylinder2 bounding box parameters [ -GR, GR, -GR, GR, -GH/2, GH/2] = [ -800, 800, -800, 800, -3000, 3000].
And forming a target component parameter set by the sequentially set target component shaping size parameter values and corresponding bounding box parameter values.
In the implementation process, in step S1, the target component constraint in the target component constraint set is a distance constraint between 6 faces of the target component bounding box; the constraint format is [ first component:: surface to be moved, second component:: reference surface, set distance ], which means that the position of the surface to be moved of the first component is moved to the position of the reference surface of the second component by the set distance. The distance set in the constraint format represents the distance that the surface to be moved is to be moved in the normal direction of the reference surface, and the movement of the surface to be moved is realized by changing the position of the component where the surface to be moved is located. It should be noted that, in this embodiment, the face of the component refers to the face corresponding to the component bounding box.
Specifically, the surface to be moved of the assembly and the reference surface are set according to actual conditions, such as bridge construction, in general, a bridge pier is firstly beaten and then a bridge deck is arranged on the bridge pier, the surface to be moved belongs to the bridge deck assembly, wherein the surface to be moved of the bridge deck assembly is specifically selected and is used as the surface to be moved, the bridge deck is also required to be determined according to the actual conditions and is arranged on the bridge pier, the bottom surface of the bridge deck assembly is selected as the surface to be moved, and the top surface of the bridge pier assembly is used as the reference surface.
Specifically, the 6 faces of the target component bounding box are defined as Front, back, left, right, top, and Bottom, respectively. Wherein, front is parallel to the plane of the coordinate system OZX and the plane normal thereof points to the plane of the negative Y-axis, back is parallel to the plane of the coordinate system OZX and the plane normal thereof points to the plane of the positive Y-axis, left is parallel to the plane of the coordinate system OYZ and the plane normal thereof points to the plane of the negative X-axis, right is parallel to the plane of the coordinate system OYZ and the plane normal thereof points to the plane of the positive X-axis, top is parallel to the plane of the coordinate system OXY and the plane normal thereof points to the plane of the positive Z-axis, and Bottom is parallel to the plane of the coordinate system OXY and the plane normal thereof points to the plane of the negative Z-axis.
Preferably, the coordinate system plane is not defined by adding component names if the constraint is a constraint with the coordinate system plane. In this embodiment, three planes OXY, OYZ, OZX in the target coordinate system are defined as XY, YZ, and ZX, respectively, for convenience of description.
It should be noted that, in the constraint format, the moving plane and the reference plane are parallel, that is, the Front plane and the Back plane of a certain component can be constrained only with the Front plane and the Back plane of other components, the Left plane and the Right plane can be constrained only with the Left plane and the Right plane of other components, and the Top plane and the Bottom plane can be constrained only with the Top plane and the Bottom plane of other components; the object coordinate system plane can only be used as a reference plane, the component to which the plane to be moved and the reference plane belong cannot be the same component, the distance expression is a legal mathematical operation expression, and the calculation result can be any real number.
In particular implementations, the set of target component constraints is generated by:
selecting a target datum component according to a building target to be modeled, wherein the target datum component is used for bearing a target non-datum component or serving as a positioning reference of the target non-datum component;
and sequentially setting constraints between the target reference component and the target coordinate system and constraints between the target non-reference component and the target reference component or constraints between the non-reference components to form a target component constraint set.
It should be noted that, the non-reference component of the target may establish a constraint with the reference component, or may establish a constraint with other non-reference components, and may be freely selected according to the actual situation.
Specifically, the reference component is selected according to the actual condition of the target, and if the building target is an office building, the reference component is selected as a foundation. Preferably, if there is no obvious reference component, selecting the target coordinate system as the reference component; if the target coordinate system is selected as the reference component, no constraint between the target reference component and the target coordinate system needs to be set.
Illustratively, the component constraints of a typical road bridge in this embodiment are set as follows: the distance between the Bottom of the Cylinder1 and the XY plane is 0.0, namely [ Cylinder1:: bottom, XY,0.0]; the distance between Left side of Cylinder1 and YZ plane is-0.45 XGL, i.e., [ Cylinder1:: left, YZ, -0.45 XGL ]; the distance between the Bottom and the XY plane below the Cylinder2 is 0.0, namely [ Cylinder2:: bottom, XY,0.0]; the distance between Right of Cylinder2 and YZ plane is 0.45 XGL, namely [ Cylinder2:: right, YZ,0.45 XGL ]; the distance between the Bottom below Cube1 and the Top above Cylinder2 is 0.0, i.e., [ Cube1:: bottom, cylinder 2::: top,0.0].
S2, solving the constraint of each target component of the building target according to the target component parameter set and the target component constraint set to obtain updated surrounding box parameters of each target component, and then moving each target component to complete the construction of the parameterized modeling model.
In the implementation, in step S2, the constraint of each target component of the building target is solved by using the target coordinate system as a reference component to obtain updated bounding box parameters of each target component in the following manner:
s21, constructing a component surface position mapping structure, wherein the component surface position mapping structure is used for storing the corresponding relation between the component surface and the surface coordinates thereof in the target coordinate system. The component surfaces of the target component are 6 surfaces of the target component bounding box corresponding to the target component.
Specifically, the plane coordinates of the component plane in the target coordinate system are coordinate values of any point of the component plane on a coordinate axis parallel to the normal direction of the plane. Illustratively, the coordinate of the front face of the component is first Y-axis, and the coordinate value of any point on the face on the Y-axis is the face coordinate of the component face in the target coordinate system.
S22, adding the component planes of all target components and the plane coordinates thereof in a target coordinate system into the component plane position mapping structure according to the target component parameter set to serve as initial values of the component plane position mapping structure; and adding the object editable parameters and the coordinate system plane to the component plane location mapping structure. It will be appreciated that the component faces of the target component, that is, the corresponding faces of the bounding box, may have their corresponding face coordinates determined based on the parameters of the bounding box of the target component, e.g., the Cylinder1 bounding box parameters [ -800, 800, -800, 800, -3000, 3000], with the front face of the Cylinder1 component being-800, the rear face being 800, the left face being-800, the right face being 800, the top face being 3000, and the bottom face being-3000.
It should be noted that the object-editable parameter and the coordinate system plane are not the correspondence of the component plane and its coordinates in the object coordinate system, and only the correspondence with the numerical values is stored.
Illustratively, the map structure in the computer data structure is adopted as the component plane position mapping structure in the present embodiment, for example, the Cylinder1 component is stored as: cylinder1, front, -800; cylinder1, back,800; cylinder1 is Left-800; cylinder 1:Right, 800; cylinder1, top,3000; cylinder 1:Bottom, -3000. The target editable parameters and coordinate system plane are stored as: GL,20000; GW,5000; GH,6000; GR,800; XY,0; YZ,0; ZX,0.
S23, constructing a component constraint mapping structure which is used for storing all constraint relations between each target component and other target components. Specifically, the constraint relationship of the building target components is a face constraint relationship between the target components. It will be appreciated that all constraint relationships for a particular one of the components can be found by the component constraint mapping structure.
Illustratively, the map structure in the computer data structure is adopted as the component constraint mapping structure in the present embodiment.
S24, adding constraints of all target components into the component constraint mapping structure based on the target component constraint set; and each target component only builds a constraint relation with the previous target component according to the sequence of the target components in the target component parameter set. It should be noted that the first target component in the target component parameter set establishes a constraint relationship with the target coordinate system.
It can be understood that, due to the large number of target components and the complex constraint relationship, the constraint relationship of the target components forms a constraint chain, for example, the position of the component a depends on the position of the component B, and the position of the component B depends on the position of the component C; to avoid the occurrence of loop references, it is provided that a later-defined component can only build constraint relationships with its previously-defined component in the order of setting in the target component parameter set.
Illustratively, the constraints of each target component in a typical road bridge of the present embodiment are expressed as: the constraint relation of the component Cylinder1 is [ Cylinder1:: bottom, XY,0.0], [ Cylinder1:: left, YZ, -0.45 XGL ]; the constraint relationship of the component Cylinder2 is [ Cylinder2:: bottom, XY,0.0], [ Cylinder2:: right, YZ,0.45 XGL ]; the constraint relation of the component Cube1 is [ Cube1:: bottom, cylinder 2::: top,0.0].
S25, based on the component constraint mapping structure, obtaining updated parameters of each target component bounding box.
Specifically, in step S25, updated bounding box parameters of each target component are obtained by:
s251, traversing constraint relations of all target components in the component constraint mapping structure in sequence:
s2511, traversing each constraint relation of the current target component in sequence: obtaining a coordinate value of a second component reference surface in the constraint of the current target component according to the component surface position mapping structure, obtaining an updated distance value according to the set distance, obtaining a movement amount, and increasing a parameter of the bounding box of the current target component on a coordinate axis corresponding to the movement direction by the movement amount;
s2512, after traversing all constraint relations of the current target assembly, obtaining updated target assembly bounding box parameters of the current target assembly, and updating the component surface position mapping structure by taking the updated target assembly bounding box parameters as corresponding surface positions of the current target assembly respectively;
s252, after traversing constraint relations of all target components, updated bounding box parameters of all target components are obtained.
More specifically, the updated distance value is obtained by:
if the distance set in the constraint of the target component is a fixed value, adding the fixed value to the coordinate value of the reference surface of the second component to obtain an updated distance value;
if the distance set in the constraint of the target component is an expression generated according to the target editable parameter, a target editable parameter value is obtained according to the component surface position mapping structure, and then the target editable parameter value and the coordinate value of the second component reference surface are added to obtain an updated distance value.
More specifically, the moving amount is obtained by subtracting the coordinate value of the surface to be moved of the first component from the updated distance value, wherein the coordinate value of the surface to be moved of the first component can be obtained by the component surface position mapping structure.
For convenience of description, the parts in the constraint are added with short abbreviations, which are defined as: the name of the component is that a surface to be moved, simply referred to as Src; the component name is a reference surface, dist for short; distance for short; the part face position mapping structure is simply referred to as PartFace.
First, the component Cylinder1 constraint relationship is calculated.
After separation, src is Cylinder1, dist is XY, and Distance is 0.0; taking the value corresponding to XY from PartFace to be 0; update distance=0+0=0; calculate the movement amount dz=0- (-3000) =3000; the values of the parameters zmin and zmax in the Cylinder1 component bounding box were increased by dZ and were 0,6000, respectively.
Constraint [ Cylinder1:: left, YZ, -0.45 XGL ] Src is Cylinder1:: left, dist is YZ, distance is-0.45 XGL after separation; taking a value corresponding to YZ from the PartFace as 0; distance is calculated expression-0.45 XGL, GL corresponding value is 20000 from PartFace, and calculated result is-9000; update distance= -9000+0=0; calculate the movement increase dx= -9000- (-800) = -8200. The values of parameters xmin and xmax in the Cylinder1 component bounding box are increased by dX to-9000, -7400, respectively.
After the Cylinder1 constraint solving is completed, the parameters of the bounding box are [ -9000, -7400, -800, 800,0,6000].
And calculating the constraint relation of the components Cylinder2 and Cube1 according to the steps, wherein the parameters of the updated component bounding boxes are [7400, 9000, -800, 800,0,6000], [ -10000, 10000, -2500, 2500, 6000, 6600].
In practice, each target part is moved by:
and obtaining the center point coordinates of each target component bounding box based on the updated target component bounding box parameters, respectively using the center point coordinates as updated geometric center positions of the corresponding target components, and moving each target component position according to the updated geometric center positions.
Specifically, bounding box center point coordinates (Cx, cy, cz) are calculated from the updated respective target component bounding box parameters, where cx= (xmin+xmax)/2, cy= (ymin+ymax)/2, cz= (zmin+zmax)/2.
Illustratively, the coordinates of the central points of the bounding boxes of the 3 target components in a typical road bridge in this embodiment are: cylinder1 center point coordinates (-8200,0, 3000), cylinder2 center point coordinates (8200,0, 3000), cube1 center point coordinates (0, 6300).
Further, based on the updated geometric center positions of all the target components, according to step S12, vertex coordinates and vertex topological relations of all the components of the building target are generated, and stl files are written according to stl data formats to complete the derivation of the equivalent three-dimensional digital model of the target, namely the construction of the parameterized modeling model is completed.
Illustratively, an equivalent three-dimensional digital model of a typical road bridge in the present embodiment is shown in fig. 6, and the model construction results are shown in fig. 7 after modifying the target editable parameters GH to 4000 and GR to 1000.
S3, modifying target editable parameters of the parameterized modeling model and constraint conditions in a target component constraint set according to actual modeling requirements, and generating an equivalent three-dimensional digital model of the building target.
Compared with the prior art, the invention provides a building target modeling method for target vulnerability, which comprises the steps of establishing models of different target components, configuring target editable parameters of building targets, generating a target component parameter set and a target component constraint set, further solving the constraint of each target component of the building target to obtain updated surrounding box parameters of each target component, and completing the construction of a parameterized modeling model by moving each target component; when the method is actually applied, the equivalent three-dimensional digital model of the building target can be generated by modifying the editable parameters of the target and the constraint conditions in the constraint set of the target component, and the modeling efficiency is higher, the expansibility is stronger and the editing and adjustment are more flexible in the target vulnerability analysis; the positioning difficulty is greatly simplified and the positioning accuracy of the assembly is improved through the inter-assembly surface constraint positioning; the flexibility of the system is greatly improved by expanding the custom assembly; the method for managing the target component position through the component constraint chain is provided, when the target size is edited for the second time, the constraint chain can be solved again by the system, the target component position can be calculated, and the target secondary editing efficiency is greatly improved.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program to instruct associated hardware, where the program may be stored on a computer readable storage medium. Wherein the computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. A building target modeling method for target vulnerability, comprising the steps of:
establishing models of different target components according to the component types formed by the building targets to be modeled, and configuring target editable parameters of the building targets; obtaining parameters of bounding boxes of all target components based on all target component models and target editable parameters in a building target to be modeled, and further generating a target component parameter set and a target component constraint set;
solving the constraint of each target component of the building target according to the target component parameter set and the target component constraint set to obtain updated surrounding box parameters of each target component, and further moving each target component to complete the construction of a parameterized modeling model;
and modifying the target editable parameters of the parameterized modeling model and the constraint conditions in the constraint set of the target component according to the actual modeling requirement to generate an equivalent three-dimensional digital model of the building target.
2. The building target modeling method for target vulnerability according to claim 1, wherein the model of the target component is built by:
establishing a target coordinate system and selecting a shaping size parameter of a target component; the shaping size parameter is a parameter for determining the space structure size of the target assembly;
taking the origin of the target coordinate system as the geometric center point of the target component to obtain each vertex coordinate of the target component, thereby obtaining the parameters of the bounding box of the target component;
and generating a vertex topological relation of the target assembly based on each vertex coordinate of the target assembly, and completing the establishment of the target assembly model.
3. The building target modeling method for target vulnerability according to claim 2, wherein the target component parameter set is generated by:
selecting the type and the number of the target component models according to the type and the number of the actual components of the building target to be modeled;
setting the setting size parameter values of each target component model in sequence based on the target editable parameters, and further obtaining the corresponding bounding box parameter values of each target component to form a target component parameter set.
4. A building target modeling method for target vulnerability according to claim 3, wherein the target component constraint in the target component constraint set is a distance constraint between 6 faces of a target component bounding box; the constraint format is [ first component:: surface to be moved, second component:: reference surface, set distance ], which means that the position of the surface to be moved of the first component is moved to the position of the reference surface of the second component by the set distance.
5. The architectural goal modeling method for a goal vulnerability of claim 4, wherein the set of goal component constraints is generated by:
selecting a target datum component according to a building target to be modeled, wherein the target datum component is used for bearing a target non-datum component or serving as a positioning reference of the target non-datum component;
and sequentially setting constraints between the target reference component and the target coordinate system and constraints between the target non-reference component and the target reference component or constraints between the non-reference components to form a target component constraint set.
6. The building target modeling method for target vulnerability according to claim 5, wherein the constraint solving of each target component of the building target is performed by using a target coordinate system as a reference component to obtain updated bounding box parameters of each target component:
constructing a component surface position mapping structure, wherein the component surface position mapping structure is used for storing the corresponding relation between a component surface and a surface coordinate thereof in a target coordinate system;
adding the component planes of all the target components and the plane coordinates thereof in a target coordinate system into the component plane position mapping structure according to the target component parameter set to serve as initial values of the component plane position mapping structure; adding the target editable parameters and the coordinate system surface into the component surface position mapping structure;
constructing a component constraint mapping structure which is used for storing all constraint relations between each target component and other target components;
adding constraints of all target components to the component constraint mapping structure based on the set of target component constraints; according to the sequence of the target components in the target component parameter set, each target component only builds a constraint relation with the previous target component;
and obtaining updated parameters of each target component bounding box based on the component constraint mapping structure.
7. The building target modeling method for target vulnerability according to claim 6, wherein updated target component bounding box parameters are obtained based on the component constraint mapping structure by:
s251, traversing constraint relations of all target components in the component constraint mapping structure in sequence:
s2511, traversing each constraint relation of the current target component in sequence: obtaining a coordinate value of a second component reference surface in the constraint of the current target component according to the component surface position mapping structure, obtaining an updated distance value according to the set distance, obtaining a movement amount, and increasing a parameter of the bounding box of the current target component on a coordinate axis corresponding to the movement direction by the movement amount;
s2512, after traversing all constraint relations of the current target assembly, obtaining updated target assembly bounding box parameters of the current target assembly, and updating the component surface position mapping structure by taking the updated target assembly bounding box parameters as corresponding surface positions of the current target assembly respectively;
s252, after traversing constraint relations of all target components, updated bounding box parameters of all target components are obtained.
8. The building target modeling method for target vulnerability according to claim 7, wherein the updated distance value is obtained by:
if the distance set in the constraint of the target component is a fixed value, adding the fixed value to the coordinate value of the reference surface of the second component to obtain an updated distance value;
if the distance set in the constraint of the target component is an expression generated according to the target editable parameter, a target editable parameter value is obtained according to the component surface position mapping structure, and then the target editable parameter value and the coordinate value of the second component reference surface are added to obtain an updated distance value.
9. The building target modeling method for target vulnerability according to claim 8, wherein the moving amount is obtained by subtracting the coordinate value of the surface to be moved of the first component from the updated distance value.
10. The building target modeling method for target vulnerability according to claim 9, wherein each target part is moved by:
and obtaining the center point coordinates of each target component bounding box based on the updated target component bounding box parameters, respectively using the center point coordinates as updated geometric center positions of the corresponding target components, and moving each target component position according to the updated geometric center positions.
CN202311595154.5A 2023-11-28 2023-11-28 Building target modeling method for target vulnerability Active CN117313221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311595154.5A CN117313221B (en) 2023-11-28 2023-11-28 Building target modeling method for target vulnerability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311595154.5A CN117313221B (en) 2023-11-28 2023-11-28 Building target modeling method for target vulnerability

Publications (2)

Publication Number Publication Date
CN117313221A true CN117313221A (en) 2023-12-29
CN117313221B CN117313221B (en) 2024-02-13

Family

ID=89250165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311595154.5A Active CN117313221B (en) 2023-11-28 2023-11-28 Building target modeling method for target vulnerability

Country Status (1)

Country Link
CN (1) CN117313221B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4890242A (en) * 1986-06-05 1989-12-26 Xox Corporation Solid-modeling system using topology directed subdivision for determination of surface intersections
US20130113800A1 (en) * 2011-08-05 2013-05-09 James Alexander McCombe Systems and methods for 3-d scene acceleration structure creation and updating
CN104299271A (en) * 2013-07-18 2015-01-21 达索系统公司 A computer-implemented method for determining at least one exploded path of an exploded view of an assembly of three-dimensional modeled objects
CN106021650A (en) * 2016-05-07 2016-10-12 浙江大学 A reference fusion method based on graphic element structure clipping and fitting
CN109544387A (en) * 2018-11-07 2019-03-29 北京科技大学 A kind of building Seismic Economic Losses fining appraisal procedure of component rank
CN114492170A (en) * 2021-12-30 2022-05-13 中国人民解放军总参谋部第六十研究所 Typical target vulnerability damage assessment method and system
CN115481497A (en) * 2022-06-30 2022-12-16 上海理工大学 Volume parameterization modeling method based on feature framework
WO2023061364A1 (en) * 2021-10-15 2023-04-20 华为技术有限公司 Model establishment method and related apparatus
WO2023060683A1 (en) * 2021-10-13 2023-04-20 东南大学 Three-dimensional point cloud model-based method for measuring surface flatness of prefabricated beam segment
CN116933359A (en) * 2023-06-26 2023-10-24 武汉峰岭科技有限公司 Building complex roof modeling method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4890242A (en) * 1986-06-05 1989-12-26 Xox Corporation Solid-modeling system using topology directed subdivision for determination of surface intersections
US20130113800A1 (en) * 2011-08-05 2013-05-09 James Alexander McCombe Systems and methods for 3-d scene acceleration structure creation and updating
CN104299271A (en) * 2013-07-18 2015-01-21 达索系统公司 A computer-implemented method for determining at least one exploded path of an exploded view of an assembly of three-dimensional modeled objects
CN106021650A (en) * 2016-05-07 2016-10-12 浙江大学 A reference fusion method based on graphic element structure clipping and fitting
CN109544387A (en) * 2018-11-07 2019-03-29 北京科技大学 A kind of building Seismic Economic Losses fining appraisal procedure of component rank
WO2023060683A1 (en) * 2021-10-13 2023-04-20 东南大学 Three-dimensional point cloud model-based method for measuring surface flatness of prefabricated beam segment
WO2023061364A1 (en) * 2021-10-15 2023-04-20 华为技术有限公司 Model establishment method and related apparatus
CN114492170A (en) * 2021-12-30 2022-05-13 中国人民解放军总参谋部第六十研究所 Typical target vulnerability damage assessment method and system
CN115481497A (en) * 2022-06-30 2022-12-16 上海理工大学 Volume parameterization modeling method based on feature framework
CN116933359A (en) * 2023-06-26 2023-10-24 武汉峰岭科技有限公司 Building complex roof modeling method and system

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
IIHAM A. ELAAIAMI ETC.: "AT-BOD:An Adversarial Attack on Fool DNN-Based Blackbox Object Detection Models", APPLIED SCIENCE, vol. 12, no. 04 *
吴学毅;刘军收;尹恒;: "基于参数化设计的三维桥梁模型构建", 图学学报, no. 02 *
柯映林, 单东日: "基于区域分割与约束逼近的二次曲面重建", 浙江大学学报(工学版), no. 10 *
赵占阳: "毁伤仿真复杂数据建模与高效访问", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 03 *
韩丽;唐棣;RAFFAELE DE AMICIS;: "手绘输入的三维建模和编辑技术", 计算机辅助设计与图形学学报, no. 07 *

Also Published As

Publication number Publication date
CN117313221B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN109934914A (en) A kind of embedded urban design scene simulation method and system
CN108520557B (en) Massive building drawing method with graphic and image fusion
CN101872376A (en) True three-dimensional road intelligent design method and system
KR100634537B1 (en) Apparatus and method for processing triangulation of 3-D image, computer-readable storing medium storing a computer program for controlling the apparatus
CN103699731A (en) Method for constructing real scene model collaborative design platform of railway engineering
US6603473B1 (en) Detail data pertaining to the shape of an object surface and related methods and systems
CN109215106B (en) Method for real-time ray tracing acceleration structure based on dynamic scene
JP2002329215A (en) Method for generating adaptively sampled distance field of object
JP2002324250A (en) Method for editing graphics object by using computer implemented tool
CN116229015A (en) Based on 2 N Method for generating body-attached Cartesian grid with Tree attached surface layer
CN111915710A (en) Building rendering method based on real-time rendering technology
CN117372642A (en) Three-dimensional modeling method and visualization system based on digital twin
CN116127551A (en) Bridge construction progress refined control method based on digital twin multidimensional model
JP2002329218A (en) Method for editing surface of graphics object with computer implemented tool
CN117313221B (en) Building target modeling method for target vulnerability
CN110533764B (en) Fractal quadtree texture organization method for building group
CN117421814B (en) Visual construction method for virtual construction of railway bridge engineering
CN110766790A (en) Parameter-driven self-adaptive multi-level three-dimensional visualization method for high-speed railway bridge
CN117973042A (en) Method for calculating three-dimensional reconstruction, extension and milling amount of highway
CN110021041A (en) Unmanned scene progressive mesh structural remodeling method based on binocular camera
CN114820965B (en) Live-action three-dimensional modeling method for holographic map construction
CN114092666A (en) Model mesh simplification improvement algorithm for mobile AR auxiliary building construction APP
CN112749438A (en) Three-dimensional dam body structure model construction method based on two-dimensional virtual section
KR102097707B1 (en) Fluid simulation method of special effect creation software
CN109509249B (en) Virtual scene light source intelligent generation method based on components

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