[NodeEditor] How i can Filet / Chamfer Points (corners) from a Rectangle Node ?
 1-18  19-38  39

Previous
Next
 From:  bemfarmer
9666.19 In reply to 9666.18 
For the 6 people who downloaded older version, cleaned up code, and restored fillet type, radius adjust, previous post.

What is the content of the corners list of Michaels code? corners.add( true );
How does the "true" fit in.
Is corners a list of corner points, with a different method of true (do fillet)?, or false (do not fillet this corner)?

Would masking the corners list entail going through the corner list one by one and applying boolean 1 to place the point in a corners2 list, or boolean 0 to not keep the point?

- B

EDITED: 8 Feb 2020 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:  Michael Gibson
9666.20 In reply to 9666.19 
Hi Brian,

> What is the content of the corners list of Michaels code? corners.add( true );
> How does the "true" fit in.

It's a list of boolean (true/false) values, it needs to have one entry for each corner and value of true means that corner will be filleted and false means it won't be filleted.

The part that's a little tricky is making the list the right length so that it has one entry in it for each possible fillet location. I've put in a .numVertices property on the fillet factory for the next beta release to make it easier to know how many entries should be in that boolean list.

- 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:  bemfarmer
9666.21 In reply to 9666.20 
Hi Michael,
Thank you for the explanations, and the forthcoming new method, which I assume will reveal the number of vertices. Also wondering about the generateVertices() code/ what it does, in Fillet.js?
- Brian

EDITED: 8 Feb 2020 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:  Michael Gibson
9666.22 In reply to 9666.21 
Hi Brian, the factory.generateVertices() call in Fillet.js calls a function on the fillet factory that creates point objects and puts them in the geometry database.

That's done in the regular fillet command because it has a selection step where it waits for the user to select those points and when that selection step is done it then builds the boolean list with a value of true set if that point object was selected.

Also I was previously thinking that the boolean list needed to have one entry for each sharp corner in the curve. But that's not correct, it actually needs to have one entry for each segment of the curve. A value of true will mean to put a fillet at the start of that segment, but it will only do anything if the start of the segment is a sharp point.

So the previous code that makes the list by calling .getSubObjects() on the curve to get all of its segments should be fine, you won't actually need the new .numVertices property after all.

Let me know if any of this isn't clear.

- 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:  Psygorn (DRILLBIT)
9666.23 In reply to 9666.12 
Hello all,

Where can I find Chamfer2.nod ?
  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)
9666.24 In reply to 9666.23 
Psygorn (DRILLBIT)

Use 3 line menu symbol in top left title bar to locate difficult-to-find nodes. See image attached.
Chamfer2.node is somewhat bizarrely in WidgetSample menu.

I will one day do a rationalisation of node menus, but probably not for awhile
as I don't have the time right now or in the near future.

James
https://www.instagram.com/nodeology/

EDITED: 14 Mar 2022 by JFH

Image Attachments:
Size: 44.1 KB, Downloaded: 26 times, Dimensions: 640x320px
  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
9666.25 
Hi ,
is there a circular array node with an angle constraint as Moi version.
Also I don't have the chamfer node in my extensions so can somebody post it please.
I think a node for notes would be a good idea to give some reference rather than adding a separate text file.
Cheers
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:  Frenchy Pilou (PILOU)
9666.26 In reply to 9666.25 
If a radial array node is not yet existing, i believe that you can make your own with the classical existing nodes!
  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
9666.27 In reply to 9666.25 
Hi Barry,

Here is the forum topic regarding Fillet and Chamfer, from two years ago.
It has Michaels description of the elements of the Fillet and Chamfer factories... which is
the information needed to do a Chamfer node...

https://moi3d.com/forum/index.php?webtag=MOI&msg=9666.1

I do not know if anyone ever made a working Chamfer node.
Nor how the surface, edges, brep, etc factor in.

I have a folder with the little bit of study that I did 2 years ago.

- Brian

Here is the Chamfer2 that I did 2 years ago. Either it does not work, or needs the proper brep (?) input?
I think it was just a very quick modification of Fillet2 node.
Orange means something is wrong/ mismatched outputs and inputs.
Maybe crvChamfer is needed?
There must be 5 versions of Fillet?

image host

I have no more play time, so am dropping this for now.

Edit, Deleted Chamfer2. Replaced with Chamfer3, down a few posts.

EDITED: 16 Mar 2022 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:  Barry-H
9666.28 In reply to 9666.27 
Hi Brian,
thanks for posting the Chamfer 2 node but as you say its not functioning.
I had found Michaels post but not in my skill set to implement it,
I'm managing to work around without a chamfer node at the moment.
Have you any ideas how to make a notes node.
I use the Const node title at the moment but your restricted to a single line.
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:  Barry-H
9666.29 In reply to 9666.26 
Hi Pilou,
yes I have managed to create the circular array with existing nodes but it required doing a full 360 array and then using index select.
I could possible use mpatharray but the orientation of the shapes must align to centre.
Cheers
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:  Michael Gibson
9666.30 In reply to 9666.29 
Hi Barry, sounds like maybe you need Transform > Rotate instead of an array ?

- 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:  Barry-H
9666.31 In reply to 9666.30 
Thanks Michael
didn't think of that it works as required.
Any pointers for the notes node I could try ?
Cheers
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:  Michael Gibson
9666.32 In reply to 9666.31 
Hi Barry,

re:
> Any pointers for the notes node I could try ?

It's not a node but here is a plug-in command that will allow you to set/retrieve notes text that will get stored inside the .3dm file.

- Michael
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:  Barry-H
9666.33 In reply to 9666.32 
Hi Michael,
the photo was created using the macro to illustrate the kind of thing I mean (without the input nodules).
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:  Michael Gibson
9666.34 In reply to 9666.33 
Hi Barry, sorry I don't know enough about the node editor to be able to help you with that.

- 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:  bemfarmer
9666.35 In reply to 9666.25 
Hi Barry:

In response to:
""I think a node for notes would be a good idea to give some reference rather than adding a separate text file.""

One good thing about using nodes>extensions>Documentation is that multiple languages are supported.
So far only EN and FR, as far as I know.
Although only very few nodes have any such Documentation at present. I did 2 or 3, just to learn how to do it, quite a while ago.

I do not know how to do the messaging that you have suggested.
The messages would have to be stored somewhere.
So maybe have the message node access the Doc somehow?

- 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:  bemfarmer
9666.36 In reply to 9666.25 
Here is chamfer3 node, modified from r2d3 fillet2 node. (r2d3.js is the location of the Construct2>fillet2 node.)
It is placed in the construct2 menu.

Michaels factory input post was used to modify the inputs.
I did not make any provision for factory input 1 boolean true, Do straight corners (only applies to brep filleting). ( IT IS SET false.)
Nor is factory input 2 utilized. (list of bool - Corners - If filleting a single multi-segment curve, list of corners true = fillet this corner. (WHATEVER that means :-))
(factory input 2 is commented out.)

Example node program:
Star node, Extrude node ( Extrude more than sum of both chamfer distances), Chamfer3 node, (OR Fillet2 node), Output node.
(So the Star is a 3D solid.)
(limited testing)

- Brian

(So I guess there is no setup for chamfer of curves ???, or maybe there is, have to do more testiing with star outline curve(s).)
Maybe the other various fillet nodes could be modified to do the chamfer of curves?

Deleted this old attachment, for space.

EDITED: 17 Jan 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:  Barry-H
9666.37 In reply to 9666.36 
Hi Brian,
thanks for chamfer3 node works ok but distance 2 not working ?
Still useful thanks.
Cheers
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
9666.38 In reply to 9666.37 
Could be some error or omission. Past midnight, I'll take a look tomorrow.
-Brian

Edit: It is not supposed to chamfer a solid with 2 different distances.

EDITED: 15 Mar 2022 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
 

Reply to All Reply to All

 

 
Show messages:  1-18  19-38  39