Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offsetting curves, surfaces #30

Open
pboyer opened this issue Jun 25, 2016 · 6 comments
Open

Offsetting curves, surfaces #30

pboyer opened this issue Jun 25, 2016 · 6 comments
Assignees

Comments

@pboyer
Copy link
Owner

pboyer commented Jun 25, 2016

The approach here is the following:

  1. Recognize special cases and offset exactly (e.g. lines, circles/arcs/ellipses, spheres, cylinders)
    else
  2. Sample based on second derivative
  3. Offset using normal
  4. Fit with NURBS curve/surface of user specified degree
@pboyer pboyer self-assigned this Jun 25, 2016
@mjkkirschner
Copy link

mjkkirschner commented Jun 26, 2016

2 do you mean sample with frequency related to the second derivative?

@pboyer
Copy link
Owner Author

pboyer commented Jun 26, 2016

Yes.

On Sat, Jun 25, 2016, 8:08 PM Michael Kirschner [email protected]
wrote:

  1. do you mean sample with frequency related to the second derivative?


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#30 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AA37eZQSWk7a_DUc0Jr-O2aApXy3uYIOks5qPcMUgaJpZM4I-bRl
.

@briandiloreto
Copy link

Hi. I could really use some advice with your awesome library. I'm sorry I didn't know how else to contact you.

I'm trying to use the C# build of Verb for a game in Unity, which requires assemblies that target .Net 3.5 or older.

It seems that the Verb.dll that is generated from Haxe is targeting .Net 4.x, despite the fact that I've explicitly tried to target .Net 2.0 using the directive "-D net-ver=20" in buildcs.hxml, which is the default target anyway.

When I inspect the DLL, it is indeed targeting version 4.0 of mscorlib.
Can you give me any direction on how to create a DLL that actually targets version 2.0 of mscorlib so that I can use it in Unity?

Thanks so much for you help!
-Brian ([email protected])

Below is the stack trace of the actual error I receive:

MissingMethodException: Method not found: 'System.Type.op_Inequality'.
Array1[Array1[System.Double]].Array_cast[Object] ()
Array1[System.Object].__hx_cast[Object] (Array me) verb.eval.Eval.homogenize2d (.Array1 controlPoints, .Array1 weights) verb.geom.NurbsSurface.byKnotsControlPointsWeights (Int32 degreeU, Int32 degreeV, .Array1 knotsU, .Array1 knotsV, .Array1 controlPoints, .Array`1 weights)

@pboyer
Copy link
Owner Author

pboyer commented Jan 20, 2017

@briandiloreto I'm really not too sure about this one. I'm pretty sure @mjkkirschner managed to integrate it with unity.

@mjkkirschner
Copy link

@briandiloreto I think you are confusing the.net target version and .net API version that haxe uses when compiling.
-D net-ver vs. -D net-target:

you can open a new issue and share your unity code and your haxe compile statement -

It's been multiple versions ago that I got this working though so things may have changed.

@briandiloreto
Copy link

briandiloreto commented Jan 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants