Rhino-based curtain wall glass panel local coordinate system construction method and system

By utilizing the centroid and covariance matrix of dense point clouds in the Rhino environment to automatically construct the local coordinate system of curtain wall glass panels, the problems of large errors and low efficiency in manual construction in existing technologies are solved, and efficient and accurate batch processing and annotation are achieved.

CN121564202APending Publication Date: 2026-02-24CSCEC XINKE DECORATION ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511672106.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

In existing technologies, the construction of local coordinate systems for curtain wall glass panels relies on manual operation, resulting in large errors, low efficiency, and an inability to achieve batch processing and posture consistency.

Method used

By calculating the local coordinate system using the centroid of dense point clouds in the Rhino environment, using the point cloud covariance matrix to find eigenvalues, constructing local X, Y, and Z axes, and establishing a right-handed orthogonal coordinate system, batch processing is supported.

Benefits of technology

It enables the automatic and objective generation of local coordinate systems for glass panels with an error of less than 0.1mm, good posture consistency, supports batch processing, and improves annotation and assembly efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121564202A_ABST
    Figure CN121564202A_ABST
Patent Text Reader

Abstract

The invention discloses a curtain wall glass panel local coordinate system construction method based on Rhino, and belongs to the technical field of building curtain walls and digital processing thereof, and the method comprises the steps: obtaining curtain wall glass panel data, converting the curtain wall glass panel data into dense point cloud, and calculating to obtain a global origin; calculating a minimum characteristic value of the dense point cloud in a global origin coordinate system through the covariance matrix, and taking a characteristic vector corresponding to the minimum characteristic value as a local Z axis; performing cross multiplication on the Z axes of the world coordinate system and the local Z axis to obtain vectors perpendicular to the two Z axes, and taking the vectors as a local Y axis; constructing a local X-axis by adopting a right-hand rule; and establishing a local coordinate system by taking the global origin as an origin and taking the local X axis, the local Y axis and the local Z axis as base vectors. According to the method, a Rhino-based environment is constructed, and the local coordinate system of the glass panel can be automatically and objectively generated in batches so as to support subsequent automatic size marking, hole position arrangement and assembly positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of building curtain wall and its digital processing technology, specifically relating to a method and system for constructing a local coordinate system for curtain wall glass panels based on Rhino. Background Technology

[0002] The processing requirements for curtain wall glass panels include: 1. A unified local coordinate system is required for the design, cutting, and assembly of glass panels to facilitate the automatic generation of dimensions, hole positioning, and assembly positioning lines. 2. Traditional methods often rely on designers to manually create CPlane (working plane) in CAD or Rhino and then manually annotate dimensions. This process is cumbersome, error-prone, and makes it difficult to ensure the consistency of the posture of a batch of panels.

[0003] Existing technologies have the following shortcomings: Manual creation of CPlane: This requires manually selecting three points or two mutually perpendicular lines, and the error fluctuates depending on the operator's skill level. Lack of unified geometric basis: Most methods rely solely on the panel's outer contour or manually specified directions, failing to objectively reflect the panel's "thinnest viewing angle." Inability to process in batches: When a project involves dozens or even hundreds of glass panels, the workload of manually creating coordinate systems for each panel increases linearly, resulting in extremely low efficiency.

[0004] Therefore, there is an urgent need for a technical solution based on the Rhino environment that can automatically, objectively, and in batches generate local coordinate systems for glass panels to support subsequent automatic dimensioning, hole arrangement, and assembly positioning. Summary of the Invention

[0005] The purpose of this invention is to address these problems in the prior art by proposing a method for constructing a local coordinate system for curtain wall glass panels based on Rhino. This method involves acquiring curtain wall glass panel data and converting it into a dense point cloud; calculating the centroid of the dense point cloud as its global origin; calculating eigenvalues ​​through the point cloud covariance matrix and using the eigenvector corresponding to the smallest eigenvalue as the local Z-axis; performing a cross product between the world coordinate system's Z-axis and the local Z-axis to obtain a vector perpendicular to both Z-axises, which is then used as the local Y-axis; constructing the local X-axis using the right-hand rule; and establishing a local coordinate system with the global origin of the dense point cloud as the origin and the local X-axis, local Y-axis, and local Z-axis as basis vectors to support subsequent automatic dimensioning, hole placement, and assembly positioning.

[0006] According to one aspect of this specification, a method for constructing a local coordinate system for curtain wall glass panels based on Rhino is provided, comprising:

[0007] Acquire curtain wall glass panel data and convert it into a dense point cloud, then calculate the centroid of the dense point cloud as the global origin of the dense point cloud;

[0008] Based on the global origin of the dense point cloud and the coordinate data of the dense point cloud, the minimum eigenvalue of the dense point cloud in the global origin coordinate system is calculated by the covariance matrix, and the eigenvector corresponding to the minimum eigenvalue is used as the local Z-axis.

[0009] The cross product of the Z-axis of the world coordinate system and the local Z-axis is used to obtain a vector that is perpendicular to both Z-axises, which is then used as the local Y-axis; the local X-axis is constructed using the right-hand rule.

[0010] The local coordinate system is established with the global origin of the dense point cloud as the origin of the local coordinate system, and the local X-axis, local Y-axis and local Z-axis as the basis vectors.

[0011] Further, calculating the centroid of the dense point cloud includes:

[0012] The dense point cloud coordinates are obtained based on the curtain wall glass panel data, and the dense point cloud coordinates are calculated using the following expression:

[0013]

[0014] Where n is the number of points, , , Let be the three-dimensional coordinates of the i-th point in the world coordinate system.

[0015] Furthermore, the minimum eigenvalues ​​of the dense point cloud in the global origin coordinate system are calculated using the covariance matrix, including:

[0016] Calculate the mean value of all points within a defined radius around a dense point cloud.

[0017] Calculate the variance and covariance of all points based on the mean;

[0018] The covariance matrix is ​​calculated based on the variance and covariance of all points, and eigenvalues ​​are obtained by principal component analysis to obtain the minimum eigenvector.

[0019] Furthermore, the local X-axis is constructed using the right-hand rule, including:

[0020] Based on the directions of the local Y-axis and local Z-axis in the local coordinate system, the direction of the local X-axis is determined by their cross product, thus constructing the local X-axis.

[0021] Furthermore, the method also includes post-processing:

[0022] Automatically project dimensions, hole positions, and assembly positioning lines within the established local coordinate system;

[0023] Alternatively, the curtain wall glass panel data can be uniformly transformed to a local coordinate system for batch cutting.

[0024] Furthermore, the curtain wall glass panel data includes NURBS surfaces, polygon surfaces, and meshes.

[0025] According to one aspect of this specification, a Rhino-based local coordinate system construction system for curtain wall glass panels is provided, comprising:

[0026] The global origin calculation module is used to acquire curtain wall glass panel data and convert it into a dense point cloud, and calculate the centroid of the dense point cloud as the global origin of the dense point cloud.

[0027] The local Z-axis module is used to calculate the minimum eigenvalue of the dense point cloud in the global origin coordinate system based on the global origin of the dense point cloud and the coordinate data of the dense point cloud through the covariance matrix, and use the eigenvector corresponding to the minimum eigenvalue as the local Z-axis.

[0028] The local Y-axis and local X-axis modules are used to perform a cross product between the world coordinate system's Z-axis and the local Z-axis to obtain a vector perpendicular to both Z-axises, which is then used as the local Y-axis; the local X-axis is constructed using the right-hand rule.

[0029] The local coordinate system construction module is used to establish a local coordinate system with the global origin of the dense point cloud as the origin of the local coordinate system and the local X-axis, local Y-axis and local Z-axis as the basis vectors.

[0030] According to one aspect of the present invention, an electronic device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the Rhino-based method for constructing a local coordinate system for a curtain wall glass panel.

[0031] According to one aspect of the present invention, a computer-readable storage medium is provided that stores a computer program, which, when executed by a processor, implements the steps of the Rhino-based method for constructing a local coordinate system for a curtain wall glass panel.

[0032] According to one aspect of the present invention, a computer program product containing instructions is provided that, when run on a computer, causes the computer to perform the steps of the Rhino-based method for constructing a local coordinate system for a curtain wall glass panel.

[0033] Compared with the prior art, the beneficial effects of the present invention are:

[0034] 1. This invention uses the minimum eigenvalue of the point cloud covariance matrix to automatically identify the geometric features of the panel, determine the thinnest direction of the glass panels in the same batch with an error of ≤0.1mm, and avoid assembly errors caused by inconsistent manual posture.

[0035] 2. This invention generates a right-handed orthogonal local coordinate system (X, Y, Z axes) in one step and saves it in Rhino CPlane format. It supports batch processing and is suitable for flat glass, curved glass and freeform glass.

[0036] 3. The local coordinate system proposed in this invention facilitates subsequent processing and can be directly used for dimensioning, hole positioning, and assembly positioning line drawing in Rhino / Grasshopper. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is a flowchart of the method for constructing a local coordinate system for a curtain wall glass panel based on Rhino, as proposed in this invention.

[0039] Figure 2 This is a schematic diagram of the triangular mesh transformation proposed in this invention;

[0040] Figure 3 This is a schematic diagram of the panel equidistant sampling proposed in this invention;

[0041] Figure 4 This is a schematic diagram of the panel centroid calculation proposed in this invention;

[0042] Figure 5 This is a schematic diagram of the local Z-axis proposed in this invention;

[0043] Figure 6 This is a partial Y-axis schematic diagram proposed in this invention;

[0044] Figure 7 This is a partial X-axis schematic diagram proposed in this invention. Detailed Implementation

[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] like Figure 1As shown, this embodiment of the invention provides a method for constructing a local coordinate system for a curtain wall glass panel based on Rhino, including: acquiring curtain wall glass panel data and converting it into a dense point cloud; calculating the centroid of the dense point cloud as the global origin of the dense point cloud; based on the global origin of the dense point cloud and the coordinate data of the dense point cloud, calculating the minimum eigenvalue of the dense point cloud in the global origin coordinate system through the covariance matrix, and using the eigenvector corresponding to the minimum eigenvalue as the local Z-axis; performing a cross product between the Z-axis of the world coordinate system and the local Z-axis to obtain a vector perpendicular to both Z-axises, and using this vector as the local Y-axis; constructing the local X-axis using the right-hand rule; and establishing a local coordinate system with the global origin of the dense point cloud as the origin of the local coordinate system, and the local X-axis, local Y-axis, and local Z-axis as basis vectors.

[0047] Specifically, the embodiments of the present invention relate to building curtain walls and their digital processing technology, specifically a calculation method and implementation device for automatically generating a local coordinate system (LCS) for curtain wall glass panels in the Rhino (Rhino3D) modeling environment.

[0048] Specifically, the technical solution of this invention includes the following key steps, all of which are implemented in the Rhino environment using RhinoCommon (C#) or RhinoPython, and can also be encapsulated as a Grasshopper component or a Rhino plugin:

[0049] 1. Panel geometry sampling: Convert the selected glass panel (NURBS surface, Polysurface or Mesh) into a dense point cloud; that is, obtain the curtain wall glass panel and convert it into a dense point cloud (the point sampling algorithm uses a custom sampling point set).

[0050] 2. Calculate the centroid of the point cloud: obtain the global origin O.

[0051] The dense point cloud coordinates are obtained based on the curtain wall glass panel data, and the dense point cloud coordinates are calculated using the following expression:

[0052] (1)

[0053] Where n is the number of points, , , Let be the three-dimensional coordinates of the i-th point in the world coordinate system.

[0054] 3. Principal Component Analysis (PCA): Based on the point cloud covariance matrix, eigenvalues / eigenvectors are obtained, and the eigenvector corresponding to the smallest eigenvalue is taken as the local Z-axis (pointing to the normal of the thinnest view plane of the panel). PCA is used to simplify datasets, reduce dimensionality, and preserve as much of the original data's variability (information content) as possible. It maps the original variables to a new set of mutually orthogonal variables (principal components) through linear transformation. These principal components are ordered by variance from largest to smallest, so that the first few principal components contain most of the variance and information in the data. Specific steps include:

[0055] 3.1 Find all points within a radius around the point cloud and calculate their mean. The expression is:

[0056] (2)

[0057] 3.2 Calculate the variance of all points, expressed as:

[0058] (3)

[0059] 3.3 Calculate the covariance of all points, expressed as:

[0060] (4)

[0061] 3.4 Calculate the covariance matrix of all points, expressed as:

[0062] (5)

[0063] 3.5. The covariance matrix is ​​decomposed using principal component analysis, and the expression is:

[0064] (6)

[0065] (7)

[0066] The eigenvectors V1, V2, and V3 are obtained from formulas (6) and (7); the smallest eigenvalue is selected. The corresponding eigenvector V3 is used as z_local.

[0067] 4. Construct the local Y-axis: Take the cross product of the world coordinate system's Z-axis (0,0,1) and the local Z-axis to obtain a vector that is perpendicular to both; if the cross product result is close to zero (the two axes are collinear), then use the world X-axis (1,0,0).

[0068] 5. Constructing the local X-axis: Using the right-hand rule, a complete orthogonal triaxial structure is obtained. Specific steps include:

[0069] 5.1 Right-hand rule: In a three-dimensional coordinate system, if the thumb, index finger, and middle finger of the right hand point in the positive directions of X, Y, and Z in that order, then the direction pointed to by the thumb corresponds to the coordinate axes. Specifically, in the definition of the cross product, the direction of Y × Z is the positive direction of X.

[0070] 5.2 The expression is:

[0071] X=Y×Z (8)

[0072] Given the directions of the Y and Z axes in a local coordinate system, the direction of the X axis is determined by their cross product. In other words, the three axes of the local coordinate system must satisfy the positive orientation of a right-handed coordinate system: the X-axis direction is equal to the result of the cross product of the Y and Z axis directions.

[0073] 6. Generate Rhino CPlane: Create a Rhino (i.e., CPlane) with the global origin of the dense point cloud as the origin and X, Y, and Z as the basis vectors, and write it to the object's user data or save it as a named CPlane.

[0074] 7. Post-processing: Automatically project dimensions, hole positions, and assembly positioning lines in the generated local coordinate system; or uniformly transform the panel geometry to the local coordinate system to facilitate batch cutting.

[0075] Specifically, embodiments of the present invention propose panel geometry sampling: converting the glass panel into a triangular mesh, such as... Figure 2 As shown, a custom (KD-Tree) is then used to implement equidistant sampling, such as... Figure 3 As shown, the sampling interval (e.g., 10mm, 20mm) is set by the user in the dialog box. The sampling density determines the accuracy and computational load of the point cloud (equidistant sampling ensures uniform distribution of the point cloud and avoids distortion of principal component analysis caused by local density differences). The centroid is obtained by calculating the arithmetic mean of the coordinates of all points in the point cloud. Figure 4 As shown, the centroid serves as the origin of the local coordinate system (the origin of CPlane), and all subsequent coordinates are described relative to this point.

[0076] Specifically, embodiments of the present invention propose PCA to select the minimum eigenvector (local Z-axis), such as... Figure 5 As shown, the direction corresponding to the smallest eigenvalue is where the variance of the point cloud is minimized, such as... Figure 5 As shown, it is equivalent to the thinnest viewing surface normal of the glass panel (PCA is based entirely on the statistical characteristics of point clouds, avoiding the subjectivity of manually specifying the direction, and can uniformly obtain the thinnest direction for any shape (plane, arc, freeform surface), ensuring the physical meaning of the coordinate system.

[0077] Specifically, the cross product is used to find the local Y-axis, such as... Figure 6As shown: the vector obtained by cross product of the local Z-axis and the global Z (or X) must be perpendicular to both, ensuring that the Y-axis is located in the plane of the local Z-axis (horizontal reference), and automatically switching the reference vector when the local Z-axis and the global Z are collinear, avoiding singularities, i.e., situations where certain numerical or geometric conditions cause the calculation results to be unstable, indeterminate, or lose meaning.

[0078] Specifically, the right-hand rule is as follows: A right-handed orthogonal coordinate system is formed by using the cross product of the local X-axis = local Y-axis × local Z-axis, and then normalized to obtain the local X-axis, such as... Figure 7 As shown, it conforms to the coordinate conventions of Rhino and most CAD systems, which facilitates the automatic generation of subsequent dimensions, hole positions, and assembly positioning lines.

[0079] Specifically, to prevent inward (i.e. pointing towards the back of the panel), the local Z-axis is oriented according to the outer normal of the panel to ensure that the local Z-axis of all panels points outward, thus avoiding "inward and outward reversal" during the assembly stage.

[0080] Specifically, this embodiment of the invention proposes to create a local coordinate system CPlane: using Rhino's Plane constructor, with the centroid as the origin and the local X-axis and local Y-axis as the planar directions, a local plane is obtained. At the same time, the calculated local coordinate system is written into the object's UserDictionary, which not only ensures the long-term preservation of data, but also facilitates other plugins or scripts to read it at any time, forming a complete design-manufacturing-assembly closed loop.

[0081] Specifically, after obtaining the local coordinate system, a plane is created: plane = plane(centroid, X unit vector, Y unit vector); plane is written as custom data into the user data of the object. The creation of the plane is based on the local coordinate system of the plate established in the previous steps, and a plane with X and Y vectors is reconstructed (the local coordinate system is spatial and includes the XY plane, XZ plane, and YZ plane; here only the XY plane is taken).

[0082] Coordinate Transformation: Rhino.Geometry.Transform (such as Transform.Translation, Transform.Rotation, Transform.Scale) is used to reposition the geometry to a local coordinate system. The geometry refers to the original input panel model from which the local coordinate system was calculated earlier. The repositioned local coordinate system is not the coordinate system constructed in this scheme; it assumes a coordinate system at another location in the model space. Based on the already created local coordinate system, the spatial model is repositioned to the new coordinate system through matching the two coordinate systems.

[0083] Specifically, the technical effects achieved by the embodiments of the present invention are as follows:

[0084] Uniform orientation: The local Z-axis of glass panels from the same batch all point to the thinnest viewing direction, with an error of ≤0.1mm, avoiding assembly errors caused by inconsistent manual orientation.

[0085] Automated dimensioning: In the local coordinate system, the dimensioning components of Rhino / Grasshopper can be directly called, eliminating the step of manually selecting the baseline and improving dimensioning efficiency by 80%~95%.

[0086] Standardized output: The generated CPlane can be directly set as the current working plane in Rhino. Subsequent drawing, exporting DWG / DXF, blanking, and CAM all use a unified coordinate system, which conforms to the GB / T14689 drafting standard.

[0087] The implementation of the various embodiments of the present invention is based on programmed processing by a device with processor functionality. Therefore, in practical engineering, the technical solutions and functions of the various embodiments of the present invention are encapsulated into various modules. Based on this reality, and building upon the above embodiments, the embodiments of the present invention provide a Rhino-based local coordinate system construction system for curtain wall glass panels. This system is used to execute a Rhino-based local coordinate system construction method for curtain wall glass panels from the above method embodiments.

[0088] The system includes: a global origin calculation module, used to acquire curtain wall glass panel data and convert it into a dense point cloud, calculating the centroid of the dense point cloud as the global origin; a local Z-axis module, used to calculate the minimum eigenvalue of the dense point cloud in the global origin coordinate system based on the global origin and the coordinate data of the dense point cloud, and using the eigenvector corresponding to the minimum eigenvalue as the local Z-axis; a local Y-axis and local X-axis module, used to perform a cross product between the Z-axis of the world coordinate system and the local Z-axis to obtain a vector perpendicular to both Z-axis, using it as the local Y-axis; and constructing the local X-axis using the right-hand rule; and a local coordinate system construction module, used to establish a local coordinate system with the global origin of the dense point cloud as the origin, and with the local X-axis, local Y-axis, and local Z-axis as basis vectors.

[0089] The Rhino-based local coordinate system construction system for curtain wall glass panels provided in this invention addresses existing technical problems by employing several modules. It calculates eigenvalues ​​from the point cloud covariance matrix and uses the eigenvector corresponding to the smallest eigenvalue as the local Z-axis. The Z-axis of the world coordinate system is cross-producted with the local Z-axis to obtain a vector perpendicular to both Z-axises, which is then used as the local Y-axis. The local X-axis is constructed using the right-hand rule. The local coordinate system is established using the global origin of the dense point cloud as its origin and the local X-axis, local Y-axis, and local Z-axis as its basis vectors. It supports batch processing and is suitable for flat glass, curved glass, and freeform glass surfaces, and can be used for dimensioning, hole positioning, and assembly positioning line drawing in Rhino / Grasshopper.

[0090] Based on the same inventive concept as the foregoing embodiments, this embodiment of the invention also provides an electronic device, including a memory and a processor. The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to realize a method for constructing a local coordinate system of a curtain wall glass panel based on Rhino as proposed in the above embodiments.

[0091] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, this program can automatically, objectively, and in batches generate local coordinate systems for glass panels, supporting subsequent automatic dimensioning, hole placement, and assembly positioning. The storage medium can be any non-volatile storage device such as a hard disk, solid-state drive, flash drive, or optical disk, used to store computer program code and necessary data files. The stored computer program includes: a centroid calculation module, a local Z-axis module, local Y-axis and local X-axis modules, and a local coordinate system construction module.

[0092] This invention also provides a computer program product containing instructions that, when run on a computer, generate, in whole or in part, the Rhino-based method for constructing a local coordinate system for a curtain wall glass panel as described in the above embodiments. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0093] Finally, it should be noted that the above specific embodiments are merely representative examples of the present invention. Obviously, the present invention is not limited to the above specific embodiments and many variations are possible. Any simple modifications, equivalent changes, and alterations made to the above specific embodiments based on the technical essence of the present invention should be considered within the protection scope of the present invention.

Claims

1. A method for constructing a local coordinate system for curtain wall glass panels based on Rhino, characterized in that, include: Acquire curtain wall glass panel data and convert it into a dense point cloud, then calculate the centroid of the dense point cloud as the global origin of the dense point cloud; Based on the global origin of the dense point cloud and the coordinate data of the dense point cloud, the minimum eigenvalue of the dense point cloud in the global origin coordinate system is calculated by the covariance matrix, and the eigenvector corresponding to the minimum eigenvalue is used as the local Z-axis. The cross product of the Z-axis of the world coordinate system and the local Z-axis is used to obtain a vector that is perpendicular to both Z-axises, which is then used as the local Y-axis; the local X-axis is constructed using the right-hand rule. The local coordinate system is established with the global origin of the dense point cloud as the origin of the local coordinate system, and the local X-axis, local Y-axis and local Z-axis as the basis vectors.

2. The method for constructing a local coordinate system for a curtain wall glass panel based on Rhino according to claim 1, characterized in that, Calculating the centroid of the dense point cloud includes: The dense point cloud coordinates are obtained based on the curtain wall glass panel data, and the dense point cloud coordinates are calculated using the following expression: , Where n is the number of points, , , Let be the three-dimensional coordinates of the i-th point in the world coordinate system.

3. The method for constructing a local coordinate system for a curtain wall glass panel based on Rhino according to claim 1, characterized in that, The minimum eigenvalues ​​of the dense point cloud in the global origin coordinate system are obtained by calculating the covariance matrix, including: Calculate the mean value of all points within a defined radius around a dense point cloud. Calculate the variance and covariance of all points based on the mean; The covariance matrix is ​​calculated based on the variance and covariance of all points, and eigenvalues ​​are obtained by principal component analysis to obtain the minimum eigenvector.

4. The method for constructing a local coordinate system for a curtain wall glass panel based on Rhino according to claim 1, characterized in that, The local X-axis is constructed using the right-hand rule, including: Based on the directions of the local Y-axis and local Z-axis in the local coordinate system, the direction of the local X-axis is determined by their cross product, thus constructing the local X-axis.

5. The method for constructing a local coordinate system for a curtain wall glass panel based on Rhino according to claim 1, characterized in that, The method further includes post-processing: Automatically project dimensions, hole positions, and assembly positioning lines within the established local coordinate system; Alternatively, the curtain wall glass panel data can be uniformly transformed to a local coordinate system for batch cutting.

6. The method for constructing a local coordinate system for a curtain wall glass panel based on Rhino according to claim 1, characterized in that, The curtain wall glass panel data includes NURBS surfaces, polygonal surfaces, and grids.

7. A Rhino-based system for constructing a local coordinate system for curtain wall glass panels, characterized in that, include: The global origin calculation module is used to acquire curtain wall glass panel data and convert it into a dense point cloud, and calculate the centroid of the dense point cloud as the global origin of the dense point cloud. The local Z-axis module is used to calculate the minimum eigenvalue of the dense point cloud in the global origin coordinate system based on the global origin of the dense point cloud and the coordinate data of the dense point cloud through the covariance matrix, and use the eigenvector corresponding to the minimum eigenvalue as the local Z-axis. The local Y-axis and local X-axis modules are used to perform a cross product between the world coordinate system's Z-axis and the local Z-axis to obtain a vector perpendicular to both Z-axises, which is then used as the local Y-axis; the local X-axis is constructed using the right-hand rule. The local coordinate system construction module is used to establish a local coordinate system with the global origin of the dense point cloud as the origin of the local coordinate system and the local X-axis, local Y-axis and local Z-axis as the basis vectors.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for constructing a local coordinate system for a curtain wall glass panel based on Rhino as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the step of constructing the local coordinate system of the curtain wall glass panel based on Rhino as described in any one of claims 1 to 6.

10. A computer program product containing instructions, characterized in that, When it is run on a computer, it causes the computer to perform the steps of constructing the local coordinate system of the curtain wall glass panel based on Rhino as described in any one of claims 1 to 6.