Nodebundle for playing with nodes
 1-13  …  1014-1033  1034-1053  1054-1073  1074-1093  1094-1113  …  1854-1859
Thread Split: Some posts in this thread have been moved here

Message 7777.1054 deleted 13 Jun 2018 by JFH

Previous
Next
 From:  James (JFH)
7777.1055 


Hi All,
A new Node Editor derived pattern experiment: Equilateral Triangular grid with scale of individual triangles determined by 3 attractors.

Oh & Thanks Michael for the new update
James

EDITED: 7 Jun 2018 by JFH

Attachments:

  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:  Finema
7777.1056 In reply to 7777.1055 
Hi James
have you read my last message in this thread ?
Thanks a lot
  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.1057 In reply to 7777.1056 
Hi Finema,

>> have you read my last message in this thread ? <<.

Yes, but if I remember correctly an earlier version was working for you.

I'm sorry I didn't respond. I was developing a hopefully foolproof method
but am first awaiting for another's input. Stray tuned.

Have a great weekend
James

EDITED: 7 Jun 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:  Finema
7777.1058 In reply to 7777.1057 
Hi James,
yes the V6 work correctly.
Thanks a lot and have a great WE too.
  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.1059 In reply to 7777.1057 
Hello James,
would you please check this code:
code:
// RemoveDup
    function RemoveDup()
    {
        this.addInput("In", "objectlist");
        this.addInput("Tolerance", "numarray");
        this.addOutput("Out", "objectlist");
        this.properties = {Tolerance: [0.005]};
    }

    RemoveDup.title = "RemoveDupCrv";
    RemoveDup.desc = "RemoveDupCrv";

    RemoveDup.prototype.onExecute = function ()
    {
        var inObj = this.getInputData(0, moi.geometryDatabase.createObjectList());
        this.properties.Tolerance = this.getInputData(1, this.properties.Tolerance);
        var output = moi.geometryDatabase.createObjectList();
        var temp = moi.geometryDatabase.createObjectList();
        if (inObj.length > 0) {
            var tempname = getUID(6);
            for (var i = 0; i < inObj.length; i++)
                inObj.item(i).name = tempname;
            moi.geometryDatabase.addObjects(inObj);
            var fac = moi.command.createFactory('removeduplicates');
            fac.setInput(0, inObj);
            fac.setInput(1, this.properties.Tolerance[0]);
            inObj = moi.geometryDatabase.createObjectList();
            fac.commit();
            moi.geometryDatabase.selectNamed(tempname);
            temp = moi.geometryDatabase.getSelectedObjects();
            var originXYZ = moi.VectorMath.createPoint(0, 0, 0); //Helppoint for a identical copy
            output = factory('copy', temp, originXYZ, originXYZ, true);
            var delfac = moi.command.createFactory('delete');
            delfac.setInput(0, temp);
            delfac.commit();
        }
        this.setOutputData(0, output);
    };

    LiteGraph.registerNodeType("Objects2/RemoveDupCrv", RemoveDup);

Have a nice day
Karsten

EDITED: 10 Jun 2018 by KMRQUS

  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.1060 In reply to 7777.1059 
Hi Karsten, if you put that inside of a <code></code> block here in the forum it should preserve the spacing/tab/indenting.

Otherwise HTML has the tendency to collapse white space.

- 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:  Karsten (KMRQUS)
7777.1061 In reply to 7777.1060 
Hello Michael,

thank you for the tip! Done:-)
I'm not familar with this stuff (CCS, HTML, PHP, ...)!

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:  James (JFH)
7777.1062 In reply to 7777.1059 
Hi Karsten

Thank you for the code. It does exactly what I wanted it to do, so cheers.

I cannot express how grateful I am for your efforts on my behalf.
Forever in your debt,
Thanks James

EDITED: 10 Jun 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:  Karsten (KMRQUS)
7777.1063 In reply to 7777.1062 
Hello James,

the removeduplicates factory uses a tolerance value to check if a curve is identical. I set the default value to the limit, what for MoI is identical in general (threshold 0.005 - someone should disagree, if I'm wrong). If you set it to 0, the factory can't find identical objects and the node gives everything back. The factory works only for curves and not for points, faces .... -please try the attached node file. If you need something for points as well - we have to program it.

Have a nice day
Karsten

p.s.: In my installation your example shows 3 points as result independent from the tolerance? What version of MoI you use 4.0Beta?
Attachments:

  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.1064 In reply to 7777.1063 
Hi Karsten,

Sorry for the confusion, my last example was different than my intention.
I thought the 3 points were all at the origin, and so I have removed the
comments & attachments from my last post so as to not perpetuate the
confusion. I should have double checked my work.

The node file is perfect as is.
Thanks again
James

PS I am using v4
  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.1065 In reply to 7777.1064 
Good to hear. I've tested it with V3.0 - so there were some doubts.
  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.1066 
Hi All

More pattern experiments: now stretcher pattern mapped to surface; remaining planar.


James

EDITED: 11 Jun 2018 by JFH

Attachments:

  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:  mkdm
7777.1067 In reply to 7777.1066 
Hello James!

Actually I don't have time to follow the Project Elephant "saga" but from time to time, when I can take a look at this thread, I see that you and the other guys are creating amazing stuff!

My congrats!!

- Marco (mkdm)
  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:  Finema
7777.1068 In reply to 7777.1066 
Very interesting 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:  speedy (AL2000)
7777.1069 
Hi Friends
Scrolling through the M_RectangularGrid
posted different time ago, I noticed
that everything could be greatly lightened,
in terms of weight of the resulting file ....
how many interested people find this link:
http://www.mediafire.com/file/fulg3v4ektwlp84/M-RectangularGrid.nod/file
the updated Macro
Good Work everyone
alberto
  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.1070 
Hi Friends
I want to share this new macro
multiple radii Pipe ..
file at this link:
http://www.mediafire.com/file/56b5264atbkm8cp/M_mradiiPipe.zip/file
Have a nice day to all
alberto
  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.1071 
Hi All,

Batswing Gyroid wrapped with simple embossed grid

James
Attachments:

  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.1072 
Hello James, Hello Al,

Looks like you're having fun. It makes me happy to see that you still use the NE and go to the limit of what is possible. Very impressive.

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

Message 7777.1073 deleted 12 Jun 2018 by JFH
 

Reply to All Reply to All

 

 
Show messages:  1-13  …  994-1013  1014-1033  1034-1053  1054-1073  1074-1093  1094-1113  1114-1133  …  1854-1859