Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Geometry Library [closed]

Does anyone know of a good (efficient, nice API, etc.) geometry open source library for .NET? Some of the operations needed:

  • Data Structures
    • Vectors (2D and 3D with floats and doubles)
    • Lines (2D and 3D)
    • Rectangles / Squares / Cubes / Boxes
    • Spheres / Circles
    • N-Sided Polygon
    • Matrices (floats and doubles)
  • Algorithms
    • Intersection calculations
    • Area / Volume calculations
like image 595
dewald Avatar asked Apr 17 '10 20:04

dewald


2 Answers

For the Linear Algebra part Math.NET - especially Math.NET Numerics - could be an option.

like image 175
Danvil Avatar answered Oct 22 '22 11:10

Danvil


I would recommend RhinoCommon, the open source library of the Rhinoceros 3d modeler from mcneel http://www.rhino3d.com .

It allows for the definition of basically any advanced geometry. geometries (meshes, nurbs, polygons, solids, curve, line, polyline etc) and also intersections that result from this geometry. It's pretty well documented, and also available separate from the rhinoceros modeler.

Documentation: http://4.rhino3d.com/5/rhinocommon/

Github: https://github.com/mcneel/rhinocommon

Standalone build instructions: https://github.com/mcneel/rhinocommon/wiki/Rhino3dmIO-Toolkit-%28OpenNURBS-build%29

like image 43
Arend Avatar answered Oct 22 '22 11:10

Arend