gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.71k stars 384 forks source link

Unity interop ? #128

Closed runette closed 4 years ago

runette commented 4 years ago

geometry3Sharp supports transparent conversion with Unity types. To enable this, define G3_USING_UNITY in your Unity project, by adding this string to the Scripting Define Symbols box in the Player Settings.

I take this to mean :

Add the string "G3_USING_UNITY" to the property Scripting Define Symbols on the Other Settings tab of the Player tab of the Project Settings dialog.

Unity 2019.3.3f1.

Have done that.

Cannot implicitly convert type 'UnityEngine.Vector3' to 'g3.Vector3f'

Either the instructions are incomplete, or my understanding is wrong or the instructions are wrong. ?

runette commented 4 years ago

I think I have worked out the problem : the README should say :

geometry3Sharp supports transparent conversion with Unity types. To enable this :

  • Import geometry3Sharp as source code and not as a .dll,
  • Add the string "G3_USING_UNITY" to the property Scripting Define Symbols on the Other Settings tab of the Player tab of the Project Settings dialog.

I think this is what you mean and seems to be working.

Thanks for a cool library and let me know if you want to a PR to improve the text in the README