MeshCartographyLib is a comprehensive geometry processing library designed to seamlessly bridge the realms of 2D and 3D spaces. Rooted in the principles of cartography, it offers tools to transform 3D meshes into 2D representations, akin to creating maps. Whether you're aiming to generate Escher-like tessellations or free-border 2D meshes from closed 3D structures, or harness the power of particle interactions on these meshes, this library facilitates it all.
Unfold your closed surface mesh OBJ file over the terminal by passing its file path to the program:
make run FILE_PATH=./meshes/ellipsoid_x4.obj
To profile the mesh_cartography
executable using Instruments from XCode on macOS:
-
Build the Executable: Compile your project in release mode with
make
. Ensure debug symbols are enabled inCargo.toml
with[profile.release] debug = true
. -
Open Instruments: Launch Instruments from Xcode (Xcode -> Open Developer Tool -> Instruments).
-
Choose Profiling Template: Select the "Time Profiler" template.
-
Select Your Executable: In Instruments, click on "All Processes," then "Choose Target," and navigate to your executable (
target/release/mesh_cartography
). -
Set Command-Line Arguments: If your executable requires arguments (e.g., a file path), set them in the "Arguments" field.
-
Enable Viewing Log Lines: Click on the plus sign in the upper right corner and add "os_log".
-
Start Profiling: Click the record button. Perform the necessary actions in your application or wait for it to complete.
-
Analyze Results: After completion, use Instruments' analysis tools to review the performance data.