CN117876554A - Convex hull-based plate minimum bounding box calculation method and system - Google Patents

Convex hull-based plate minimum bounding box calculation method and system Download PDF

Info

Publication number
CN117876554A
CN117876554A CN202410275872.2A CN202410275872A CN117876554A CN 117876554 A CN117876554 A CN 117876554A CN 202410275872 A CN202410275872 A CN 202410275872A CN 117876554 A CN117876554 A CN 117876554A
Authority
CN
China
Prior art keywords
bounding box
minimum
plane
point
convex hull
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
CN202410275872.2A
Other languages
Chinese (zh)
Other versions
CN117876554B (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.)
Central South Architectural Design Institute Co Ltd
Original Assignee
Central South Architectural Design Institute 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 Central South Architectural Design Institute Co Ltd filed Critical Central South Architectural Design Institute Co Ltd
Priority to CN202410275872.2A priority Critical patent/CN117876554B/en
Publication of CN117876554A publication Critical patent/CN117876554A/en
Application granted granted Critical
Publication of CN117876554B publication Critical patent/CN117876554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Generation (AREA)

Abstract

The invention provides a convex hull-based plate minimum bounding box calculation method and a convex hull-based plate minimum bounding box calculation system. The method and the device calculate bounding boxes of the plates accurately, efficiently and in batches by using the coordinate points of the plates, intelligently detect all possible bounding boxes of the plates, select minimum values as output, and simultaneously give out the coordinates of each vertex of the bounding boxes in a three-dimensional space to complete visual expression. The invention automatically calculates the accurate solution of the minimum bounding box of the plate and displays the minimum bounding box in the three-dimensional model, thereby bringing new technology and method innovation to the field of building industrialization, accelerating the digitizing process of the building industry and having important theoretical and practical significance.

Description

Convex hull-based plate minimum bounding box calculation method and system
Technical Field
The invention belongs to the technical field of building industrialization, and particularly relates to a convex hull-based plate minimum bounding box calculation method and system.
Background
The building industrialization comprises design industrialization, cost analysis industrialization and digital construction industrialization, and the design mode based on the traditional 2D engineering drawing is required to be upgraded to a digital mode based on a three-dimensional digital model and integrating design, simulation and processing, so that the direct butt joint processing of the three-dimensional model is realized, and the digitization of the processing process is completed.
In the three-dimensional design of a building, the problem of determining the minimum size of a material required for processing a plate is often involved, and the application of the minimum size to plate cutting, discharging and nesting algorithm and engineering cost calculation are important processes for realizing processing digitization. The dimension is the smallest cuboid surrounding the plate, the cuboid direction is related to the plate direction, but the length, width and height of the cuboid are independent of the direction, and the length, width and height data are key parameters for processing. The cuboid is the smallest directional bounding box (Oriented Bounding Box). Therefore, the length, width and height data of the minimum bounding box need to be calculated quickly and accurately.
In the prior art, a common minimum bounding box algorithm, such as an OBB algorithm, is adopted, the input condition of the algorithm is point cloud, the direction of the bounding box is determined by solving a covariance matrix of three-dimensional coordinates of the point cloud, then the minimum size of the bounding box in each direction is obtained in three directions, and the minimum bounding box under the point cloud is obtained comprehensively. However, when solving the problem of irregular plate, the point cloud obtained by dispersing the plate is in a sheet shape, and the result obtained by the common OBB algorithm on part of the plate is a second or third small bounding box, so that the accurate optimal solution cannot be obtained, and the problems of larger blanking size of part of the plate, reduced plate utilization rate and the like are caused, thereby increasing the engineering cost.
Disclosure of Invention
The invention aims to solve the technical problems that: the method and the system are used for quickly solving the minimum bounding boxes of the plates with any shapes in the three-dimensional building model in batches.
The technical scheme adopted by the invention for solving the technical problems is as follows: a convex hull-based plate minimum bounding box calculation method comprises the following steps:
s1: acquiring a point set, and inputting three-dimensional coordinates of key points of a plate of a minimum bounding box to be calculated;
s2: based on the three-dimensional coordinates of the key points, traversing the combination of all three points in the point set to find out at least one point set division, so that the key points of the plate are distributed in two parallel planes;
s3: constructing a standard orthogonal projection matrix by using a normal vector of a parallel plane as a projection direction, projecting all points in a point-concentrated original coordinate system to obtain a minimum bounding box height, and completing dimension reduction of a third dimension after projection is omitted to obtain a two-dimensional point set;
s4: calculating a convex hull of the two-dimensional point set according to coordinates of the two-dimensional point set, calculating the length and the width of a minimum circumscribed rectangle of the two-dimensional point set according to the convex hull, and obtaining the length, the width and the height of a minimum bounding box of the round of iteration by combining the absolute value of a third dimension coordinate difference; traversing the combination of all three points in the step S2, and calculating the length, the width and the height of the minimum bounding box of the plate under each combination;
s5: selecting a global minimum bounding box according to the minimum target;
s6: and restoring the two-dimensional coordinates of the four vertexes of the current minimum circumscribed rectangle into eight vertex coordinates of the minimum bounding box under the original coordinate system through a third dimension, and completing the visualization operation.
According to the above scheme, in the step S1, the specific steps are as follows:
let the minimum bounding box of the plate be the minimum cuboid of the bounding plate in three-dimensional spaceSo that all key points of the plate are +.>Are all in cuboid->Is a rectangular parallelepiped +.>Is the smallest volume or surface area; is provided with cuboid->The length, width and height of (2) are +.>、/>And->The minimum bounding box problem of solving the plate is expressed as a constrained optimization problem, which comprises solving the bounding box with minimum volume
Or bounding box with minimal surface area
The minimum volume bounding box and the minimum surface area bounding box are both the smallest product of the height-determined length and width.
Further, in the step S2, the specific steps are as follows:
s21: set at a given point setIn (1) point->Is +.>,/>=1,2,…,The method comprises the steps of carrying out a first treatment on the surface of the Three points are selected by using an iterative method>Determining plane->Traversing all existing three-point combinations; is provided withRepresenting the outer product of the vectors, solving the plane +.>Unit normal vector +.>
S22: set of pairs of pointsMiddle not->Is +.>Calculate the dot->To the plane->Distance of->
S23: if it isOr the minimum number, consider the point +.>In plane->Applying; if->If the above condition is not satisfied, then pointNot in the plane->Applying;
s24: is not arranged on the planeThe points on the plane +.>Obtaining a point set division;
s25: judging planeIs->Whether parallel, if so, executing the next step; if not, step S21 is performed.
Further, in the step S2, a plane is determinedIs->The specific steps of whether the parallel is as follows: calculation plane->All points to plane->Distance of (1), if plane->All points in (1)Point->Component vectors and vectors->The inner products of (A) are the same as the inner products of (B), and the inner products are the same as the inner products of (E), the plane is considered +>Is->Is two parallel planes.
Further, in the step S3, the specific steps are as follows:
s31: in planeUnit normal vector +.>Constructing a three-dimensional orthogonal matrix as projection direction>
For a pair ofStructure->Make->,/>The method meets the following conditions:
or:
or:
will beConversion into a Unit vector>The method comprises the following steps:
structure of the device;/>Are unit vectors and are perpendicular to each other, matrix +.>A transformation matrix formed for a set of orthonormal basis;
s32: set of pairs of pointsIs linearly transformed so that the plane +.>And plane->Are all parallel to the plane->Parallel;
according toSet of pairs->All points in (1) are linearly changedChanging to obtain a new set of points +.>
Plane->The points in (a) are mapped to planes +.>Plane +.>The points in (a) are mapped to planes +.>Obtaining the selection->Height of minimum bounding box as initial point +.>
S33: discardingAxis coordinates, same point is merged to plane +.>Obtaining a two-dimensional point set->
Further, in the step S4, the specific steps are as follows:
s41: set two-dimensional point setThere is->Point, marked as->The method comprises the steps of carrying out a first treatment on the surface of the Selecting the point with the smallest abscissa>Adding two-dimensional point set +.>Convex hull->Point->As an iteration start point, calculate the point +.>And two-dimensional point set->Other points of->Vector of->
S42: will be planarIs->Axial direction->As reference vector, calculate vector +.>Vector->Cosine value of (2), point with minimum cosine value +.>Adding convex hull->And will be dotted->Set as the iteration start point of the next round, willAs reference vector, calculate vector +.>Vector->Cosine values of (2);
s43: selected such that cosine valuesMinimum dot->Add->Point->Setting the new iteration start point and vector +.>Setting a new reference vector, and continuing iteration until the point +.>Becomes the iteration starting point again to obtain a two-dimensional point set +.>Convex hull of->
S44: two-dimensional point setOne side of the minimum circumscribed rectangle of (2) is coincident with the convex hull, and the convex hull is +.>Is arranged on each side of (a)Respectively carrying out iterative calculation on the length and the width to obtain a plurality of external rectangles;
s45: selecting the circumscribed rectangle with the smallest area from the plurality of circumscribed rectangles to obtain the current initial point asMinimum bounding box length at time +.>Width->And high->
S46: and (3) judging whether the combination of all the two parallel planes obtained in the step (S2) is traversed, if so, executing the step (S5), and if not, executing the step (S2).
Further, in the step S42, the vector isVector->Cosine value +.>The method comprises the following steps:
further, the saidIn step S44, edgeIs the minimum circumscribed rectangle length when overlapping with the convex hull>And width->The method comprises the following steps of:
the length of the smallest circumscribed rectangle isWidth of->
Further, in the step S6, the specific steps are as follows:
s61: finding the coincident edge of the minimum circumscribed rectangle and the convex hullThe method comprises the steps of carrying out a first treatment on the surface of the The four vertex coordinates of the minimum bounding rectangle are:
s62: respectively adding third dimension coordinates of two rows of planes to the two-dimensional coordinates of the four vertexes of the current minimum circumscribed rectangle, and restoring the third dimension to be projectedAn axis coordinate;
s62: standard orthogonal projection matrix for left multiplicationIs>And obtaining eight vertex coordinates of the minimum bounding box under the original coordinate system.
A convex hull based panel minimum bounding box computing system comprising a processor and a memory having stored therein computer instructions for executing the computer instructions stored in the memory, the system implementing the steps of a convex hull based panel minimum bounding box computing method when the computer instructions are executed by the processor.
The beneficial effects of the invention are as follows:
1. according to the convex hull-based plate minimum bounding box calculation method and system, the principle of convex hull calculation of minimum bounding rectangle is adopted, three-dimensional point cloud is projected to a two-dimensional plane to obtain the height of the bounding box by detecting a parallel plane and projecting, and then the minimum bounding rectangle is calculated to solve the minimum bounding box of the point cloud, so that the function of rapidly solving the minimum bounding box of any plate in a three-dimensional building model in batches is realized.
2. According to the invention, through vectorization of each point coordinate in a three-dimensional coordinate system, all possible parallel planes of an input point are automatically identified, the dimension-reduction projection direction is detected, dimension-reduction projection is carried out, and a three-dimensional plate with any shape is converted into a plane point set in a two-dimensional space; then calculating the minimum circumscribed rectangle according to the convex hull of the two-dimensional point set, calculating the bounding box of the plate according to the minimum target by combining the projection direction, further obtaining the coordinates of each vertex of the bounding box, and simultaneously solving the problems of minimum volume and minimum surface area; and calculating all possible projection directions, and obtaining the required minimum bounding box after comparison.
3. According to the invention, the vertex position of the minimum bounding box under the original coordinate system is obtained through matrix inverse transformation, so that the accurate calculation of the minimum bounding box size of the plate with any shape is realized, the position and the size of the minimum bounding box are marked in the original model, and the visualization is realized in the original space.
4. Aiming at the problem of losing the solving precision of the traditional method for determining the minimum bounding box by using the covariance matrix, the calculation process of the invention is matrix operation, has higher accuracy, can quickly and accurately obtain the operation result in the application of large-scale batch calculation plates, provides a feasible solution for the calculation of the minimum bounding box of the large-scale plates, has great potential in application, and accelerates the industrialization and digitization processes of the building industry.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
Fig. 2 is a schematic view of the initial plate shape according to an embodiment of the present invention.
FIG. 3 is a process and minimum bounding box visualization implementation diagram of an embodiment of the present invention.
Detailed Description
The invention will be described in further detail with reference to the drawings and the detailed description.
Example 1
Referring to fig. 1, an embodiment of the present invention includes the steps of:
s1: acquiring a set of pointsInputting three-dimensional coordinates of key points of the plate;
the key points of the plate include vertexes, edge points, partial surface points and the like, which are required to represent the shape characteristics of the plate and are not excessive, and the points together form a point set. The coordinates of the key points should not beIncluding the internal points and the side points of the model, otherwise the calculation amount of the algorithm is increased and even the algorithm is disabled.
S2: point collectionThree points->As an initial point of plane determination, the normal vector +.>
Traversing a set of pointsAll possible three-point combinations of (a) to determine all initial planes +.>The method comprises the steps of carrying out a first treatment on the surface of the Plane normal vector->The calculation method of (2) is as follows:
s3: computing a set of pointsMiddle not->Point to plane->To determine whether all points can be divided into parallel planes +.>And plane->If not, returning to the step S2, andthree points are selected again; if yes, proceed to step S4, and plane +.>And plane->The distance of (2) is the minimum bounding box height;
determining a set of pointsWhether or not it can be divided into parallel planes +.>And plane->The detailed process of (2) is as follows:
s31: computing a set of pointsMiddle not->Point to plane->Distance of->
S32: if it isOr a minimum number, consider ++>In plane->Applying; otherwise not in plane->Applying; thus will->Divided into +.>The point on and not in->Points on;
s33: will not be atThe points on the upper are marked as +.>In the middle, if->All points and->Vectors and->The inner products of (A) are the same as the inner products of (B), and the inner products are the same as the inner products of (E)>And->Is two parallel planes;
s34: if it isAnd->Is two parallel planes, the bounding box is +.>Is->And->A distance therebetween; if->And->Not two parallel planes, return to step S2.
In the above steps, due to calculationWhen it has been unitized, therefore +.>And->The absolute value of the inner product of (2) is +.>To the plane->Is a distance of (3). Obviously, when +.>All points to->Is all the same and is +.>On the same side of (2) indicate->Andparallel, and->And->The distance between them is the height of the bounding box.
S4: constructing standard orthogonal projection matrixThe point set is->All the points are projected, the third dimension is abandoned, all the points are converted into two-dimensional points, and a two-dimensional point set +.>The method comprises the steps of carrying out a first treatment on the surface of the And then->The same points in (a) are combined to obtain a point set +.>
In the step S4, a standard orthogonal projection matrix is constructedThe detailed process of projection dimension reduction and merging the same points is as follows:
s41: assume thatThen->At least one of which is other than 0. Thus, an AND/OR can be constructed according to the following procedure>Perpendicular unit vector>
Or:
or:
s42: will beAfter conversion to unit vector, it is noted +.>Let->Matrix->A transformation matrix formed by a group of orthonormal basis, namely the required orthonormal projection matrix +.>
S43: according toSet of pairs->All points in (1) are subjected to linear transformation to obtain a new point set +.>
S44: discardingMidpoint>The direction coordinates transform all points into points in a two-dimensional plane. Calculating the distance between each point, removing the repeated points (distance is 0) to obtain two-dimensional point set +.>
Wherein,the +.>Planar transformation into->Plane (S)>Plane transformation into->Planes parallel to the plane; abandon->Direction coordinates, then Point set->All points in the two-dimensional plane are projected as points on the two-dimensional plane, and the dimension reduction processing is completed.
S5: computing a set of pointsConvex hull->
In the step S5, in order to obtain the minimum bounding rectangle of the two-dimensional point set, it is necessary to calculateConvex hull of (a). The detailed calculation process is as follows:
s51: selectingThe point with the smallest middle abscissa is taken as the iteration start point +.>Will->Add->
S52: will beAxial direction->As an initial reference vector, ++>For points other than any px' in P ", calculate +.>And->Cosine values of (a) are provided.
S53: will minimize the cosine valueAdd->And will->Set as the iteration start point of the next round, willAs the next round of reference vector, repeat step S52 until +.>Return->
S54: obtained byNamely, point set->Is a convex hull of (a).
S6: according to convex hullsCalculating the minimum circumscribed rectangle, wherein the length and width of the minimum circumscribed rectangle are the length of the minimum bounding box +.>And width->
In the step S6, since one side of the minimum bounding rectangle is overlapped with the side of the convex hull, the minimum bounding rectangle can be calculated according to the convex hull, and the detailed calculation process is as follows:
s61: sequentially selecting each edge in the convex hull
S62: with edgesThe calculation process of the minimum bounding rectangle when the bounding rectangle is overlapped with the edges is as follows, all the edges are traversed according to the process, and the minimum bounding rectangle length and width combination with the same number of the edges is obtained:
s63: the length of the minimum circumscribed rectangle isWide as
This results in all possible combinations of length and width of the smallest bounding rectangle. Selected such thatMinimum->And->Namely the length and width of the smallest external rectangle.
S7:、/>And->Namely, select +.>The length, width and height of the minimum bounding box serving as the initial point are returned to the step S2 to calculate the minimum bounding box when other initial points are combined, and the step S8 is carried out after all possible combinations are calculated;
in the step S7, the step S6 is performed、/>And S3 is a->Namely, isThe initial point is->And (3) obtaining all possible situations of the minimum bounding box by traversing possible combinations.
S8: and (3) comparing the minimum bounding boxes obtained in the step (S7), and selecting a minimum value according to the target of the minimum volume or the minimum surface area. Visualization is based on the minimum circumscribed rectangleAnd (5) calculating.
In the step S8, the existence of the minimum bounding box may be obtained according to the target selection step S7. If the visualization is required to be completed in the original coordinate system, the method comprises the following steps:
s81: finding the coincident edge of the minimum circumscribed rectangle and the convex hull according to the selected minimum bounding box
S82: the vertex coordinates of the minimum bounding rectangle are:
the four points are the vertices of the minimum bounding rectangle.
S83: the four-point third dimension is added with two projected images respectivelyThe axis height, the obtained is the eight vertex coordinates of the projected minimum bounding box, and then the projection matrix is multiplied left +.>Is>And obtaining eight vertex coordinates of the minimum bounding box under the original coordinate system, and connecting the eight points to complete the visualization.
Example 2
The flow chart of the method is shown in fig. 1, and the schematic diagram of the plate shape is shown in fig. 2. Table 1 is the coordinate data of the initial plate, and the algorithm of the present invention is used to calculate the volume minimum bounding box according to the data shown in table 1, and the specific implementation process is as follows:
TABLE 1 initial coordinate data
S1: importing coordinate data as shown in table 1;
s2: taking three initial points, such as (-458.362, -200.0, -160.345), (298.0, -200.0, 560.0), (-207.845, -200.0, -474.138), where the normal vector is (0, 1, 0);
s3: determining the distance from other points to the three points according to the normal vector, and when the three points are taken as the judgment result, dividing all the points into two parallel planes, and continuing to carry out the step S4;
s4: the obtained orthogonal projection matrix is as follows:
discarding the third dimension after projection and merging the same points;
s5: the convex hulls obtained according to the above method are shown in table 2;
table 2 two-dimensional coordinates of points found in convex hull
S6: the length and width of the minimum external rectangle obtained by calculation are 1079.5 and 400.0 respectively;
s7: when the initial three points are combined, the length, width and height of the minimum bounding box are 1079.5, 400.0 and 35.0;
s8: after comparing all the possible cases, the length, width and height of the minimum volume bounding box can be 1079.5, 400.0 and 35.0 respectively, and the visualization condition is shown in fig. 3, and the vertex table 3 of the minimum bounding box is shown.
TABLE 3 three-dimensional coordinates of vertices of minimum volume bounding boxes
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
The above embodiments are merely for illustrating the design concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement the same, the scope of the present invention is not limited to the above embodiments. Therefore, all equivalent changes or modifications according to the principles and design ideas of the present invention are within the scope of the present invention.

Claims (10)

1. A convex hull-based plate minimum bounding box calculation method is characterized by comprising the following steps of: the method comprises the following steps:
s1: acquiring a point set, and inputting three-dimensional coordinates of key points of a plate of a minimum bounding box to be calculated;
s2: based on the three-dimensional coordinates of the key points, traversing the combination of all three points in the point set to find out at least one point set division, so that the key points of the plate are distributed in two parallel planes;
s3: constructing a standard orthogonal projection matrix by using a normal vector of a parallel plane as a projection direction, projecting all points in a point-concentrated original coordinate system to obtain a minimum bounding box height, and completing dimension reduction of a third dimension after projection is omitted to obtain a two-dimensional point set;
s4: calculating a convex hull of the two-dimensional point set according to coordinates of the two-dimensional point set, calculating the length and the width of a minimum circumscribed rectangle of the two-dimensional point set according to the convex hull, and obtaining the length, the width and the height of a minimum bounding box of the round of iteration by combining the absolute value of a third dimension coordinate difference; traversing the combination of all three points in the step S2, and calculating the length, the width and the height of the minimum bounding box of the plate under each combination;
s5: selecting a global minimum bounding box according to the minimum target;
s6: and restoring the two-dimensional coordinates of the four vertexes of the current minimum circumscribed rectangle into eight vertex coordinates of the minimum bounding box under the original coordinate system through a third dimension, and completing the visualization operation.
2. The convex hull-based panel minimum bounding box calculation method as claimed in claim 1, wherein: in the step S1, the specific steps are as follows:
let the minimum bounding box of the plate be the minimum cuboid of the bounding plate in three-dimensional spaceSo that all key points of the plate are +.>Are all in cuboid->Is a rectangular parallelepiped +.>Is the smallest volume or surface area; is provided with cuboid->The length, width and height of (2) are +.>、/>And->The minimum bounding box problem of solving the plate is expressed as a constrained optimization problem, which comprises solving the bounding box with minimum volume
Or bounding box with minimal surface area
The minimum volume bounding box and the minimum surface area bounding box are both the smallest product of the height-determined length and width.
3. The convex hull-based panel minimum bounding box calculation method as claimed in claim 2, wherein: in the step S2, the specific steps are as follows:
s21: set at a given point setIn (1) point->Is +.>,/>=1,2,…,/>The method comprises the steps of carrying out a first treatment on the surface of the Three points are selected by using an iterative method>Determining plane->Traversing all existing three-point combinations; is provided with->Representing the outer product of the vectors, solving the plane +.>Unit normal vector +.>
S22: set of pairs of pointsMiddle not->Is +.>Calculate the dot->To the plane->Distance of->
S23: if it isOr the minimum number, consider the point +.>In plane->Applying; if->If the above condition is not satisfied, point +.>Not in the plane->Applying;
s24: is not arranged on the planeThe points on the plane +.>Obtaining a point set division;
s25: judging planeIs->Whether parallel, if so, executing the next step; if not, step S21 is performed.
4. A convex hull based panel minimum bounding box calculation method according to claim 3, wherein: in the step S2, a plane is determinedIs->The specific steps of whether the parallel is as follows: calculation plane->All points to planeDistance of (1), if plane->All points and points->Component vectors and vectors->The inner products of (A) are the same as the inner products of (B), and the inner products are the same as the inner products of (E), the plane is considered +>Is->Is two parallel planes.
5. A convex hull based panel minimum bounding box calculation method according to claim 3, wherein: in the step S3, the specific steps are as follows:
s31: in planeUnit normal vector +.>Constructing a three-dimensional orthogonal matrix as projection direction>
For a pair ofStructure->Make->,/>The method meets the following conditions:
or:
or:
will beConversion into a Unit vector>The method comprises the following steps:
further structure;/>Are unit vectors and are perpendicular to each other, matrix +.>A transformation matrix formed for a set of orthonormal basis;
s32: set of pairs of pointsIs linearly transformed so that the plane +.>And plane->Are all parallel to the plane->Parallel;
according toSet of pairs->All points in (1) are subjected to linear transformation to obtain a new point set +.>
Plane->The points in (a) are mapped to planes +.>Plane +.>The points in (a) are mapped to planes +.>Obtaining and selectingHeight of minimum bounding box as initial point +.>
S33: discardingAxis coordinates, same point is merged to plane +.>Obtaining a two-dimensional point set->
6. The convex hull-based panel minimum bounding box calculation method of claim 5, wherein: in the step S4, the specific steps are as follows:
s41: set two-dimensional point setThere is->Point, marked as->The method comprises the steps of carrying out a first treatment on the surface of the Selecting the point with the smallest abscissaAdding two-dimensional point set +.>Convex hull->Point->As an iteration start point, calculate the point +.>And two-dimensional point set->Other points of->Vector of->
S42: will be planarIs->Axial direction->As reference vector, calculate vector +.>Vector->Cosine value of (2), point with minimum cosine value +.>Adding convex hull->And will be dotted->Setting the next iteration start point and adding +.>As reference vector, calculate vector +.>Vector->Cosine values of (2);
s43: selected such that cosine valuesMinimum dot->Add->Point->Set as the new iteration start point, vectorSetting a new reference vector, and continuing iteration until the point +.>Becomes the iteration starting point again to obtain a two-dimensional point set +.>Convex hull of (1) is
S44: two-dimensional point setOne side of the minimum circumscribed rectangle of (2) is coincident with the convex hull, and the convex hull is +.>Is arranged on each side of (a)Respectively carrying out iterative calculation on the length and the width to obtain a plurality of external rectangles;
s45: selecting the circumscribed rectangle with the smallest area from the plurality of circumscribed rectangles to obtain the current initial point asMinimum bounding box length at time +.>Width->And high->
S46: and (3) judging whether the combination of all the two parallel planes obtained in the step (S2) is traversed, if so, executing the step (S5), and if not, executing the step (S2).
7. The convex hull-based panel minimum bounding box calculation method of claim 6, wherein: in the step S42, vectorsVector->Cosine value +.>The method comprises the following steps:
8. the convex hull-based panel minimum bounding box calculation method of claim 6, wherein: in the step S44, edges are usedIs the minimum circumscribed rectangle length when overlapping with the convex hull>And width->The method comprises the following steps of:
the length of the smallest circumscribed rectangle isWidth of->
9. The convex hull-based panel minimum bounding box calculation method of claim 8, wherein: in the step S6, the specific steps are as follows:
s61: finding the coincident edge of the minimum circumscribed rectangle and the convex hullThe method comprises the steps of carrying out a first treatment on the surface of the The four vertex coordinates of the minimum bounding rectangle are:
s62: respectively adding third dimension coordinates of two rows of planes to the two-dimensional coordinates of the four vertexes of the current minimum circumscribed rectangle, and restoring the third dimension to be projectedAn axis coordinate;
s62: standard orthogonal projection matrix for left multiplicationIs>And obtaining eight vertex coordinates of the minimum bounding box under the original coordinate system.
10. A convex hull based panel minimum bounding box computing system comprising a processor and a memory, characterized in that: the memory has stored therein computer instructions for executing the computer instructions stored in the memory, which when executed by the processor, the system implements the steps of a convex hull based panel minimum bounding box calculation method as claimed in any of claims 1 to 9.
CN202410275872.2A 2024-03-12 2024-03-12 Convex hull-based plate minimum bounding box calculation method and system Active CN117876554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410275872.2A CN117876554B (en) 2024-03-12 2024-03-12 Convex hull-based plate minimum bounding box calculation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410275872.2A CN117876554B (en) 2024-03-12 2024-03-12 Convex hull-based plate minimum bounding box calculation method and system

Publications (2)

Publication Number Publication Date
CN117876554A true CN117876554A (en) 2024-04-12
CN117876554B CN117876554B (en) 2024-05-28

Family

ID=90590392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410275872.2A Active CN117876554B (en) 2024-03-12 2024-03-12 Convex hull-based plate minimum bounding box calculation method and system

Country Status (1)

Country Link
CN (1) CN117876554B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574835A (en) * 1993-04-06 1996-11-12 Silicon Engines, Inc. Bounding box and projections detection of hidden polygons in three-dimensional spatial databases
CN108305289A (en) * 2018-01-25 2018-07-20 山东师范大学 Threedimensional model symmetric characteristics detection method based on least square method and system
CN109509236A (en) * 2017-09-15 2019-03-22 百度在线网络技术(北京)有限公司 Vehicle bounding box generation method, device and storage medium in unmanned scene
CN111268566A (en) * 2020-03-30 2020-06-12 北京国泰星云科技有限公司 Automatic container landing system and method on container truck lane based on laser
CN113781846A (en) * 2021-09-28 2021-12-10 中国人民解放军空军工程大学 Horizontal dimension airspace conflict detection method
CN114266800A (en) * 2021-12-24 2022-04-01 中设数字技术股份有限公司 Multi-rectangular bounding box algorithm and generation system for graphs
WO2022120567A1 (en) * 2020-12-08 2022-06-16 深圳先进技术研究院 Automatic calibration system based on visual guidance
CN114707218A (en) * 2022-04-08 2022-07-05 广东博智林机器人有限公司 Three-dimensional model simplification method and device
CN115170688A (en) * 2022-07-19 2022-10-11 交禾(上海)工程技术有限公司 Optimal projection plane solving and drawing automatic generation method for spatial structure construction drawing
US20230011818A1 (en) * 2021-07-07 2023-01-12 Faro Technologies, Inc. Detection of computer-aided design (cad) objects in point clouds
CN115601726A (en) * 2022-09-19 2023-01-13 上海友道智途科技有限公司(Cn) Vehicle point cloud bounding box calculation method based on convex hull orientation
CN116229408A (en) * 2022-11-22 2023-06-06 重庆邮电大学 Target identification method for fusing image information and laser radar point cloud information
CN116894282A (en) * 2023-09-07 2023-10-17 中国空气动力研究与发展中心计算空气动力研究所 Method and system for identifying topological relation between space point set and multi-connected grid region

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574835A (en) * 1993-04-06 1996-11-12 Silicon Engines, Inc. Bounding box and projections detection of hidden polygons in three-dimensional spatial databases
CN109509236A (en) * 2017-09-15 2019-03-22 百度在线网络技术(北京)有限公司 Vehicle bounding box generation method, device and storage medium in unmanned scene
CN108305289A (en) * 2018-01-25 2018-07-20 山东师范大学 Threedimensional model symmetric characteristics detection method based on least square method and system
CN111268566A (en) * 2020-03-30 2020-06-12 北京国泰星云科技有限公司 Automatic container landing system and method on container truck lane based on laser
WO2022120567A1 (en) * 2020-12-08 2022-06-16 深圳先进技术研究院 Automatic calibration system based on visual guidance
US20230011818A1 (en) * 2021-07-07 2023-01-12 Faro Technologies, Inc. Detection of computer-aided design (cad) objects in point clouds
CN113781846A (en) * 2021-09-28 2021-12-10 中国人民解放军空军工程大学 Horizontal dimension airspace conflict detection method
CN114266800A (en) * 2021-12-24 2022-04-01 中设数字技术股份有限公司 Multi-rectangular bounding box algorithm and generation system for graphs
CN114707218A (en) * 2022-04-08 2022-07-05 广东博智林机器人有限公司 Three-dimensional model simplification method and device
CN115170688A (en) * 2022-07-19 2022-10-11 交禾(上海)工程技术有限公司 Optimal projection plane solving and drawing automatic generation method for spatial structure construction drawing
CN115601726A (en) * 2022-09-19 2023-01-13 上海友道智途科技有限公司(Cn) Vehicle point cloud bounding box calculation method based on convex hull orientation
CN116229408A (en) * 2022-11-22 2023-06-06 重庆邮电大学 Target identification method for fusing image information and laser radar point cloud information
CN116894282A (en) * 2023-09-07 2023-10-17 中国空气动力研究与发展中心计算空气动力研究所 Method and system for identifying topological relation between space point set and multi-connected grid region

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ZONGHAO GUO等: "Beyond Bounding-Box: Convex-Hull Feature Adaptation for Oriented and Densely Packed Object Detection", CVPR 2021, 31 December 2021 (2021-12-31), pages 8792 - 8801 *
刘健;孙殿柱;李延瑞;孙永伟;: "散乱点云局部点集最小包围盒快速求解算法", 农业装备与车辆工程, no. 06, 10 June 2010 (2010-06-10), pages 27 - 29 *
胡振中;陈祥祥;王亮;何田丰;: "基于BIM的管道预制构件设计技术与系统研发", 清华大学学报(自然科学版), no. 12, 15 December 2015 (2015-12-15), pages 1269 - 1275 *
郭九生, 初红艳, 卢秉恒: "多面体最小体积的包围盒生成算法研究", 计算机应用, no. 01, 28 January 2001 (2001-01-28), pages 38 - 40 *

Also Published As

Publication number Publication date
CN117876554B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN112862972B (en) Surface structure grid generation method
CN112819962A (en) Non-uniform grid division and local grid density method in digital image correlation
CN113012226B (en) Method and device for estimating pose of camera, electronic equipment and computer storage medium
CN114863060A (en) Point cloud-based three-dimensional model reconstruction method, device, equipment and storage medium
CN114861500A (en) Method and system for automatically generating tunnel structure finite element model based on three-dimensional point cloud
Schulz et al. Envelope computation in the plane by approximate implicitization
CN117876554B (en) Convex hull-based plate minimum bounding box calculation method and system
CN113850917A (en) Three-dimensional model voxelization method and device, electronic equipment and storage medium
CN116861307A (en) Board recognition method and device for three-dimensional finite element model
DE MARCHI et al. Polynomial meshes: Computation and approximation
Ćurković et al. Enhanced 3D parameterization for integrated shape synthesis by fitting parameter values to point sets
WO2004053741A1 (en) Method of calculating intersecions between triangle and line segment and progam therefor
CN114399611A (en) Polyhedral optimization method based on grid quality measurement characteristics
CN117193278A (en) Method, apparatus, computer device and storage medium for dynamic edge path generation
Nejati et al. A fast hybrid approach for approximating a thin-plate spline surface
Pébay et al. Communication-free streaming mesh refinement
Porikli et al. Fast distance transform computation using dual scan line propagation
RU213021U9 (en) DEVICE FOR DETERMINING THE DIRECTION OF RADIO SIGNAL ARRIVAL
RU213021U1 (en) DEVICE FOR DETERMINING THE DIRECTION OF RADIO SIGNAL ARRIVAL
CN113033034B (en) Mixed order vector finite element electromagnetic field calculation method and system
US10297075B2 (en) Method of processing image data
Zhu et al. Efficient construction of the medial axis for a CAD model using parallel computing
JP2692587B2 (en) Image processing method
CN117787059A (en) Automatic thin coating generation method based on target body triangle surface metadata
CN116305681A (en) Envelope generation method, device, electronic equipment and storage medium

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