Nodebundle for playing with nodes
 1-13  …  1194-1213  1214-1233  1234-1253  1254-1273  1274-1293  …  1854-1859
Thread Split: Some posts in this thread have been moved here

Previous
Next
 From:  James (JFH)
7777.1234 In reply to 7777.1233 
Thanks Karsten, but it wouldn't be possible without your foundational node contributions.
Have you been working on anything new?
James

EDITED: 27 Sep 2018 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  speedy (AL2000)
7777.1235 
Hi James and Friends
I saw your file, ingenious enough to create
a thicker along the edges of the polygons, then working
with the boleans we will get what we want ...
but it still does not work ...
In any cases where we want an integral polygon, we can not do it
because the connecting lines of the centers with the midpoints
the edges of the triangles intersect each other ...
even more if the mesh of the triangles and pretty uneven
here:
http://www.mediafire.com/file/1pf6zo59nkj5uq1/VORONOI.zip/file
you will find files that will better illustrate the problem,
I have also worked on your file, deforming the triangular mesh a little
and trying to lower the size of the line
(Sweept profile) but, under a certain value you can not go,
and so, as you will see, the result is not ,according to me, yet
satisfactory
have a nice day
al
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
7777.1236 In reply to 7777.1234 
Hello James,
>>Have you been working on anything new?

I'm afraid not. I'm in the middle of divorcing my wife.

Some day I will start again.
Karsten
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7777.1237 In reply to 7777.1236 
Hi Karsten,

I'm sorry to hear that. I can only imagine how dispiriting that must be.
Please feel free to PM me if you need to vent to a sympathetic ear.
Perhaps a friend you've never met would be the perfect sounding post.

>> Some day I will start again. <<

For our sake, but mostly yours, I hope that day is soon
All the best
James

EDITED: 27 Sep 2018 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  speedy (AL2000)
7777.1238 
Hi Friends
I continue with my research and study of interesting surfaces ,
and now it is the turn of this fairly recent geo-mathematical form
due to the genius and research of Paul Schatz ,
it was born only in 1939 and therefore relatively young ...
and In my opinion it is a charming, elegant shape that leaves
with open mouth......
how many interested will find here:
http://www.mediafire.com/file/9ftdpaksnr1mn2e/Oloid.zip/file
the math construction file of the form (relatively simple, I must say)
and a small simulation of movement ...
The Oloid is the only three-dimensional shape that can rotate over its entire surface.
and put in oscillating produces a movement of great charm,
on the web you will find news about the use of this shape to reproduce in the water
a wave similar to the natural one
Have a nice evening to all
al
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
7777.1239 
Hi all,

sorry for being off-topic, but i like to show you my aluminium sign,
from schildermaxe.de (excellent quality) from my previous post
here. Hope you like!

IMG_0713

P.S. i did not went for laser engraving, because the price was to high.
Instead i used a sign maker service.

Regards
Stefan

EDITED: 5 Oct 2018 by STEFAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7777.1240 In reply to 7777.1239 
Hi Stefan, that's cool!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
7777.1241 
Thank you, Michael!

Regards
Stefan
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7777.1242 
Hi node Coders,

I'm attempting to create a node based on Marco's ExtractCurvesControlPoints script: http://moi3d.com/forum/display.php?webtag=MOI&print_msg=8010.17

I think the problematic code is below shown in red

Any help would be greatly appreciated

James





// extractPts
function extractPts()
{
this.addInput("In","objectlist");
this.addOutput("Out","objectlist");
}

extractPts.title = "extractPts";
extractPts.desc = "extractPts";

extractPts.prototype.onExecute = function()
{
var inObj = this.getInputData(0, moi.geometryDatabase.createObjectList());
var output = moi.geometryDatabase.createObjectList();

var selPts = moi.geometryDatabase.getSelectedObjects().getCurves();

if (inObj.length > 0 )
{
inObj.setProperty('showPoints', 1);
moi.geometryDatabase.selectAll();
moi.geometryDatabase.copyToClipboardCommand(selPts);

output = moi.geometryDatabase.pasteFromClipboard();
}
this.setOutputData(0, output);
}
LiteGraph.registerNodeType("Objects2/extractPts", extractPts);

EDITED: 24 Oct 2018 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7777.1243 In reply to 7777.1242 
Hi James, maybe you're missing step #4 from that http://moi3d.com/forum/display.php?webtag=MOI&print_msg=8010.17 example - if the curve itself is selected along with all the control points it will copy the curve. To get points it needs to be curve itself not selected but its points are selected.

So try something like selPts.setProperty('selected', 0); in between the selectAll() and the copyToClipboardCommand()

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7777.1244 In reply to 7777.1243 
Hi Michael,

>> missing step #4. <<

Yes the curve does need to be deselected, but the real issue is that either, the selectAll() method does not seem to capture any geometry or copyToClipboardCommand() doesn't copy: (certainly, the clipboard is empty on running nod file.)

James
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
7777.1245 In reply to 7777.1244 
Hello James,

I can't test or Experiment with the code at the Moment, but I'm not sure that the curves are already members of the database.

Have a nice day
Karsten
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
7777.1246 In reply to 7777.1245 
Karsten's comment reminded me of Michael's help in the chain script, back in 2013, related to using a circle in a sweep:

// Next line is needed for sweep to work, per MG.
moi.geometryDatabase.addObject( circle );

- Brian
(For what it is worth...)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7777.1247 In reply to 7777.1244 
Hi James, yeah like Karsten and Brian write above selectAll() will only get the objects if they are in the geometry database and not if they are "loose" objects.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7777.1248 In reply to 7777.1242 
Hi All,

Well, I have not manage to get "extractPt" node to work.
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1248

After repeated failed attempts, I was feeling a little disheartened; and really needed a win, so I returned to a node I was confident I could solve.

So please find attached new arraysExt.js inclusive of new "reRange" node (shown in red) which performs an identical function to my "reMAPrange" macro (see output arrays X & Y in image).

There are a lot of applications for remapping the differential domain of an array, so it is deserving of a dedicated node rather than a macro.

A great weekend to all,
James



UPDATED:

ArrayExt.js has been moved to here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1251


I have also included a couple of simple utility nodes: "arrayRev" which reverses the order of an num array & "arraySort" which sorts an array into ascending order. see below

EDITED: 15 Oct 2018 by JFH

Attachments:

Image Attachments:
Size: 26 KB, Downloaded: 28 times, Dimensions: 600x376px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Unknown user
7777.1249 
Hi all.
It was. Just another version of an unusual door.
Vladimir.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7777.1250 In reply to 7777.1249 
Hi Vladimir,

Great stuff! Very elegantly done.

You'll find playing in NodeEditor is fun & quite addictive.
I look forward to seeing more from you in the future :)

James
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
7777.1251 
Hi All,

I have also included in ArrayExt.js a full* set of logic gates(based on Max's "Compare" node) :
AND(a,b)
OR(a,b)
NAND(a,b)
NOR(a,b)
XOR(a,b)
XNOR(a,b)

They perform boolean logic and hence are made to operate on 1 (true) & 0 (false) inputs,
however any number greater than 0 will be interpreted as a 1 and any number not will be interpreted as 0.

*There is no distinct NOT gate, however either NAND or NOR gates will perform this function by wiring input (whether 1 or 0) into both inputs.

These node options would allow the simulation of electronic circuitry, if one was so inclined.
Other than that they may be utilised for testing certain conditions to trigger events.

James



UPDATED: New ArrayExt.js attached with bug fix

EDITED: 12 May 2019 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  speedy (AL2000)
7777.1252 
Hello friends
I want to share this exercise with you
referring to the Brainstorming Confluence Park Pavillon
from the site _ Parametric House.com _
I recreated everything with EI and I added the Flooring ...
The compositions are two enough to properly switch
files and images at this link:
http://www.mediafire.com/file/7e6gshqle7qdrsv/Confluence_Park.zip/file
Have a nice evenig to all
al

Ps- James , nice work with the new Array Ext ,
congratulations.....
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Unknown user
7777.1253 In reply to 7777.1250 
Hello James.

Thank you for your feedback and your contribution to the common cause.
It's really fun to do.

Vladimir.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-13  …  1174-1193  1194-1213  1214-1233  1234-1253  1254-1273  1274-1293  1294-1313  …  1854-1859