You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// more info and details about how the diffCheck architecture works as a plugin
4
+
The software architecture of DF is organized into three main sections.
5
+
* a) **C++**:
6
+
The first foundational portion of the source code is represented by a C++ umbrella library regrouping low-level dependencies such as *Open3d*, *CGAL* and *Cilantro* which power the back-end of the most complex and demanding computational functionalities DF can offer.
7
+
* b) **PythonAPI**:
8
+
The previous portion portion is wrapped into the second DF's component: an API written in Python 3.9.1 and distributed via PyPI (Python Package Index).
9
+
* c) **GHPlugin**:
10
+
Finally, the GH Python-based plug-in represents only the top-level visual scripting DF's interface.
With Rhino v.8’s integration of CPython into its .NET ecosystem, we developed a fully Python-based Grasshopper plug-in. Distributed through Rhino’s Yak manager, it requires no extra installations. Inspired by the Compas framework, the plug-in is composed entirely of .ghuser objects, supporting CI practices with automatic component documentation. Additionally, we believe a Python-based plug-in encourages broader contributions, as Python’s simplicity and widespread use make it more accessible to the digital fabrication community.
// arbitrary value to avoid false positives (points that, when projected on the triangle, are in it, but that are actually located too far from the mesh to actually belong to it)
Copy file name to clipboardExpand all lines: src/diffCheck/geometry/DFMesh.hh
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,13 @@ namespace diffCheck::geometry
86
86
*/
87
87
boolIsPointOnFace(Eigen::Vector3d point, double associationThreshold = 0.1);
88
88
89
+
/**
90
+
* @brief Get the center and main axis of oriented boundung box of the mesh. It was developped for the cylinder case, but can be used for other shapes.
91
+
*
92
+
* @return std::tuple<Eigen::Vector3d, Eigen::Vector3d> the first element is the center of the obb of the mesh, the second element is the main axis of the obb of the mesh
0 commit comments