Nodebundle for playing with nodes
 1-4  …  1305-1324  1325-1344  1345-1364  1365-1384  1385-1404  …  1845-1859
Thread Split: Some posts in this thread have been moved here

Previous
Next
 From:  bemfarmer
7777.1345 In reply to 7777.1344 
The Separate factory only produces output for curves which can be separated.

The separate node needs to be altered, to pass on closed curves which are made up of only one segment, (including elementary circles and ellipses, etc.)
Closed polygons should be separated for the conformal mapping. (and stereo project?)
So test for isClosed, and also check for crv.getSubObjects().length ==1.

Is there a test to tell when a curve can be separated?
EDIT: Michaels previous answer from: https://moi3d.com/forum/index.php?webtag=MOI&msg=8818.8
"The segments of a curve are returned by the getSubObjects() method which is available on every object type in MoI. A curve always has at least one segment. To see if it's made up of multiple segments you could do crv.getSubObjects().length > 1."

- Brian

EDITED: 9 Feb 2019 by BEMFARMER

  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.1346 deleted 9 Feb 2019 by BEMFARMER

Previous
Next
 From:  bemfarmer
7777.1347 In reply to 7777.1345 
After study of Karsten and James code from last December, here is my modification of the
"Separate" node. The code belongs in the objects2.js file of nodeeditor.

code:
    function separateObj()
    {
        this.addInput("In", "objectlist");
        this.addOutput("Out", "objectlist");
    }

    separateObj.title = "separateObj";
    separateObj.desc = "separateObj";

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

        if (inObj.length > 0)
		{
            out = factory('separate', inObj); // Segments of Multi Subsegment curves.
        	for ( var i = 0; i < inObj.length; i++)
			{
				if ( inObj.item(i).getSubObjects().length === 1)
					out.addObject(inObj.item(i)); // Single SubSegment curves.
			}
	
		}
        this.setOutputData(0, out);
    }

    LiteGraph.registerNodeType("Objects2/separateObj", separateObj);






I think that the problem is that the Separate factory only works on geometry objects in the geometry database.
Separate will work on the InObj array of objects, as ONE entity, but not on each curve item in the array, (without more programming).
The above code outputs, to out_slot, the results of the Separate factory, consisting of the segments of curves with more than one sub_segment.
Each inObj object in the input slot is then tested to see if it has only one sub_segment, and if so, said curve is added to the output out_slot.
(This likely does change the order of the curves.)

The conformal mapping is now working well with various input curves. I'm back to Normals...
- Brian
  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:  Barry-H
7777.1348 
Hi,
is there a way of producing an isect node or a way of extracting the edges from the surface I have produced using
the intersection node.
Cheers
Barry


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.1349 In reply to 7777.1348 
Hello Barry,

objects2\extractEdges
objects2\intersectObj

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:  Barry-H
7777.1350 In reply to 7777.1349 
Hi Karsten,
your faster than Usain Bolt.
Many thanks
Barry
  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.1351 
One of these days, an updated set of extension nodes, which can be found:-), would be nice.
I'm still doing some very minor "tweeking" on a few nodes...
- Brian
  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.1352 
Hi All,

I've done a psy-code-lic little gyro to trip out to.
(with extra degree of freedom to anim below)

Bigger version at https://www.instagram.com/nodeology/

Haves a great weekend
James


EDITED: 14 May 2019 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:  Karsten (KMRQUS)
7777.1353 In reply to 7777.1352 
Hello James,

That's a really cool effect, with only a few nodes - more or less. Good to see you are back!

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.1354 
What I really need is a heated mouse, or a heated mouse box :-)
Maybe a mini heat pad...
- Brian

Maybe the Gyro node could be modified to take as input "Get by Style" node, or similar node?

EDITED: 17 Feb 2019 by BEMFARMER

  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.1355 deleted 6 Mar 2019 by JFH

Previous
Next
 From:  Frenchy Pilou (PILOU)
7777.1356 
Does it possible to make this sort of thing with Elephant ?

A bridge between 2 faces with a sort of variable adaptaion?
(and of course if the 2 faces are different that will be a must! !)

  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.1357 In reply to 7777.1356 
Hello Pilou,
no it's not possible. I've started some subD nodes in the past, but they are all outdated and dosen't work at the moment.
Furthermore the node Editor has not the Level of interaction like such a software.
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:  Frenchy Pilou (PILOU)
7777.1358 In reply to 7777.1357 
THX for the efforts! ;)
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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:  anto matkovic (AMM)
7777.1359 
Hello,
a few beginner's questions:
- is there a node bundle that works with latest beta, of February 26. Exactly, I'd like to get fillets. During this weekend I've tried to combine the code of node editor v.1.0.rc3.2018.03.09 which works nicely, together with code from construct2.js files downloaded from this thread, however only with limited success, MoI 4 beta is complaining about minimum fillet radius, sub-object naming node is missing. Obviously I'm doing something wrong, here.
- is it possible to have a node, able to import something directly from hard disk, like 3dm file or new subd from obj file into MoI. If so, we'll have a sort of usable referencing system.
- any plans for commercial version of these nodes - once such system will be enabled to work smoothly, I'd believe it will be able to dramatically improve the strength of MoI.
  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.1360 In reply to 7777.1359 
Hi anto,
It may be helpful if you are able to post your .nod program, so that someone proficient may see the areas of concern.

I have not seen much activity in the nodeeditor arena the past few months, what with vacations, the season, and other interests.
But Max did make some much appreciated improvements, a short time ago!

The Objects/ Get-by-style node enables the entry of a .3dm file that is already in MoI, into nodeeditor, by color-style. Set the objects color-style to a unique color,
then open the .nod with the node.
There is also Objects/ Get-by-name.

I do not know how to script, or if it is possible to script, importing and exporting in a node. (???)

Sub-object naming node?

- Brian

EDITED: 4 Mar 2019 by BEMFARMER

  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:  anto matkovic (AMM)
7777.1361 In reply to 7777.1360 
Honestly I don't have any usable node tree, yet. I'm just looking for a way to get fillets into node editor in MOI 4, as they are definitively not present into ''official'' version, I suppose that is v.1.0.rc3.2018.03.09 . The rest of node editor is looking really easy to understand for anyone who already played with similar solutions, don't see general problems. I hope I'll find a way for these fillets, eventually.
Thank you for answer!
  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.1362 In reply to 7777.1361 
Hello Anto,

here are my last extensions for NE. Put all the files directly under extensions - don't forget the basicfunction file in the libs directory. Fillet is difficult in NE. If you want to fillet a BRep use BrepNameSubObjects from Objects2 and wire it. Run the NE and the Brep will be displayed. Select the edges you want to fillet and use fillet from construct2. Construct2 stores the names given by BrepNameSubObjects. Wire the node. Switch of the visibility in BrepNameSubObjects. Example in the attachment.

@all: New nodes are in vector, objects2, construct2, ponts2, infonodes, curves2

Have a nice day
Karsten

EDITED: 8 Mar 2019 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:  bemfarmer
7777.1363 In reply to 7777.1362 
Thank you Karsten for this update.
Please consider the attached modification of objects:separate, which will pass on to the output objects which are not separable.

I needed such objects to be passed on, for mapping.

Or maybe have two modes? Or a second version"

- Brian

  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.1364 In reply to 7777.1363 
Hello Brian,

I've added the node to objects2. And replaced the attachement extensions.zip in the previous email.

@all: I've placed an old version of the R2D3.js in the previous attachement and forgot the stream.js file. Now I hope everything is up to date.

Sorry for that.
Karsten

p.s.: A good moment to place your Torus node here;-)

EDITED: 5 Mar 2019 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
 

Reply to All Reply to All

 

 
Show messages:  1-4  …  1285-1304  1305-1324  1325-1344  1345-1364  1365-1384  1385-1404  1405-1424  …  1845-1859