Comments (6)
next to that, an arc won't allow to be reversed with this piece of code
now just reversed the _data.controlPoints
from verb.
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 intests/test.js
cover the entire API with examples.
from verb.
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.
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.
and that was the one I was trying to use, it refers to that second function, which fails.
from verb.
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)
- `npm install` fails on Win10 HOT 2
- Webpack compilation error HOT 1
- Compiling in C++, Conversion from promhx Promise to Dynamic Array
- Return Control points, "CurvebypointsInterpolation" HOT 1
- Error when trying to intersect 2 Spheres (Python)
- Intersection Algorithm Documentation + Extensions HOT 2
- Feature Req: add file export functionality
- Intersect.hx:518: characters 9-12 : Missing variable identifier HOT 5
- verb.geom.NurbsCurve.byPoints chokes on consecutive duplicate points
- No tutorial / guessable way to compile verb to Windows x64 in C++ HOT 1
- Linker error when trying to build on C++, MSVC, Windows x64 HOT 1
- Is this project still alive? HOT 1
- c# Compilation HOT 1
- verb.geom.NurbsSurface does not seem to be exported as a type by typescript HOT 1
- npm install verb-nurbs-web generates lots of errors. Not sure if they are serious or not? HOT 5
- verb is empty
- using verb in Unity3D project
- Increase the subdivision count without increasing the number of points HOT 1
- Transform NurbsCurve (Rotate)
- Make surface of closed curve
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from verb.