From: fcwilt
Hi,
Attached is a part that was included in a step file I downloaded.
It is supposed to be a Solid but it is reported as a Joined Surface.
I don't know how to fix it.
Can it be fixed?
Thanks.
Frederick
From: Michael Gibson
Hi Frederick, here is a solid version.
- Michael
Attachments:
Solid.3dm
From: fcwilt
Hi Michael,
Thanks much.
Is there an article or something I could study and learn how to fix things like that myself?
Frederick
From: Frenchy Pilou (PILOU)
Maybe use Naked Edges ? for detect false edges...
script: /* Naked Edges */ var gd = moi.geometryDatabase; gd.deselectAll();
var breps =gd.getObjects().getBreps(); for ( var i = 0; i < breps.length; ++i )
breps.item(i).getNakedEdges().setProperty( 'selected', true );
From: Zooen
Hi,
1st you need to locate the bare edges on the object.
I use the attached script: SelectNackedEdges.js (I put the F10 shortcut); See the attached images.
secondly, I deleted the surfaces in question.
Then I redid the surfaces (in green in the attached file). I joined the surfaces together two by two and finally joined them with the object.
Well, I'm not sure that's exactly how I did it, as I had to make several attempts before I succeeded!
Michael must have made it simpler and quicker.
Attachments:
SelectNakedEdges.js
Image Attachments:
01.jpg
From: Zooen
The repaired file, the attached file.
the file is saved in V4! You may need to use import to open it.
Attachments:
Solid_Repaired-MoIV4.3dm
From: fcwilt
Hi,
Thanks very much.
I'm guessing a "bare edge" is an edge NOT attached to some other edge?
I will try out your script just to see if I can do it myself.
Hmm... how does one run such a script?
Frederick
From: Michael Gibson
Hi Frederick, you can paste this into the "Command" part of a shortcut key:
script: /* Highlight naked edges */ var gd = moi.geometryDatabase; gd.deselectAll(); var breps = gd.getObjects().getBreps(); for ( var i = 0; i < breps.length; ++i ) breps.item(i).getNakedEdges().setProperty( 'selected', true );
Or also in V5 you can use the Scene Browser, click "Browser" at the bottom of the side pane and inside the scene browser go to Types> Edges > Naked and click the selection dot area on the right hand side of the item.
And yes "naked" edges are edges that belong to just one face instead of being joined between 2 faces.
You can't have a solid if there are any naked edges, so those are the areas that need some tune up work.
In your case here there are a couple of the naked edges are very tiny, these can cause joining problems.
Sometimes tiny edges can be purged by separating faces into individual surfaces so they aren't joined to anything and then using the Merge command:
https://moi3d.com/4.0/docs/moi_command_reference10.htm#merge
Sometimes it may need getting rid of the current trim boundaries and retrimming the surface. There is a description of this in the object repair tutorial here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=446.17
- Michael
From: fcwilt
Michael,
You are the best, the VERY best.
I should buy several dozen licenses from you as a way of saying "thanks". Not sure what the wife would say.
Frederick
From: fcwilt
I forgot to ask.
So two faces can share an single edge OR two faces have edges that, not sure how to put this, exist in the exactly the same space?
I'm guessing a face must be, for lack of the correct term, "enclosed" by edges?
Frederick
From: Michael Gibson
Hi Frederick,
re:
> So two faces can share an single edge OR two faces have edges that, not sure how to
> put this, exist in the exactly the same space?
Yup, that's correct. There can be one common shared edge between two faces. This is called a "joined edge" and to have a solid you want to have all edges be in this state.
If two faces are touching at an edge but it isn't joined, then there are 2 separate "naked" edges there that are coincident.
> I'm guessing a face must be, for lack of the correct term, "enclosed" by edges?
Yes, a face has "trim boundaries" (or "loops") on it. Each loop consists of one or more edges forming a closed outline.
A face can have one "outer loop" and any number of "inner loops" making holes.
- Michael
Image Attachments:
trimmed_face.png