Giter Club home page Giter Club logo

Comments (6)

ParametricStandarization avatar ParametricStandarization commented on July 19, 2024

next to that, an arc won't allow to be reversed with this piece of code
now just reversed the _data.controlPoints

from verb.

pboyer avatar pboyer commented on July 19, 2024

verb is in a moment of upheaval at the moment.

  • I plan to make many things better documented when I can get around to it. verbnurbs.com is painfully out of date. Once I finish polyhedral brep booleans I plan on doing another release (0.1.0).
  • I can't teach you Haxe, but there are plenty of resources out there for that. Try google. If you don't already know JavaScript, it might be slow-going.
  • I'd highly recommend downloading IntelliJ IDEA if your looking to develop for verb in haxe. This will give you autocomplete and various kinds of static analysis you might find in other statically typed languages.
  • You'll also find many examples of using the code in examples directory in JS/HTML. The unit tests in tests/test.js cover the entire API with examples.

from verb.

pboyer avatar pboyer commented on July 19, 2024

For the kind of development you're doing, I'd recommend using the object-oriented API (i.e. geometry types drawn from src/verb/geom). Take a look at src/verb/geom/NurbsCurve.hx.

Here's an example of reversing an arc.

var c = new verb.geom.Arc([0,0,0], [1,0,0], [0,1,0], 5, 0, Math.PI/ 2 );
var cr = c.reverse(); // returns a reversed copy

If that's busted, let me know and I'll fix it.

The code in verb/core/ will require a lot more knowledge about NURBS, which I can't cover here.

from verb.

ParametricStandarization avatar ParametricStandarization commented on July 19, 2024

I seem to be getting my way around in your library. I noticed that your website is way out of date, but that does not bother me.
Wat bothers me is that I do know Javascript (although I’m a self tought ugly coding basterd), and I am definitly able to read your haxe files.
I would just like it so much if there would be a “one, two ,three” step example how to build the haxe files.

Because I’m more a designer (as in product designer) as opposed to hardcore coder, I’m not good a programmer enough to understand the explanation you give in your read me (I’m sorry for that).

But well. Giving the tip for the IDE is very very nice. Did download flashdevelop, but I get stuck on compiling the stuff.
So now I change the mistakes I find in javascript in the .js file, and when I want to add an object (such as a rectangle, or a trimmed nurbs surface) I code it in my own file or hack something together with the three.js library.

(although am I wrong to think that if you want a polyhedral brep boolean, you need to have the ability for timmed surfaces?)

When I have some time I’ll see to get into the Haxe thing, looks like a real nice coding environment to me.

Jesse

from verb.

ParametricStandarization avatar ParametricStandarization commented on July 19, 2024

and that was the one I was trying to use, it refers to that second function, which fails.

from verb.

pboyer avatar pboyer commented on July 19, 2024

I've added an example:

https://github.com/pboyer/verb/blob/master/examples/curveReverse.html

and a unit test for this behavior. I did not find any issues.

Just to clarify, NurbsCurve.reverse means to reverse the parametric direction of the curve. Thus, for a curve with a domain from [0,1.0], curve.point(0) will end up as curveReversed.point(1.0) in the result. Please reopen if you can give me a concrete failing example in the current code base.

from verb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.