Manifold Objects

You’re right Dom – the face id is J, not K

Here’s the script for 7 with Doms changes added…

For railworks (and FSX) to create volume shadow objects (railworks calls them stencil shadows which they are not!) The geometry must be manifold i.e. must completely enclose a space with no odd points along edges or holes.

This script will tell you if an object is NOT manifold.
When it says an object is manifold this may not be 100% correct.

Select an object or group and run this script.

And for Version 8 of 3DC…

Multi selecting objects is permitted.

Tried it on a recent shadow object in RS and it told me it was manifold as expected.
I’m not quite sure when I would actually use this and what I would gain from using it?
A confirmation that what I have done is correct (which RS would tell me otherwise if it was not)?
Tried it on a different part and the script correctly detected it being non manifold but of what use is the list with face numbers?
The face number does not tell me anything I’m afraid.
I believe shadow models should be kept quite simple anyway and thus be easy to understand.
Another property of shadow models that I’m not sure if it is correct or not is that they should be convex.

This is not your most useful contribution but I’m very grateful for everything that you have done over the years in train siming!

A new version of Paul’s script which colours the faces with problems.

Afert setting a material at the beginning of the script, I changed:
[pre class=’ip-ubbcode-code-pre’]If not OK then
s=s and ‘face ‘ and k and vbcr
count = count + 1
End If
[/pre]

to:
[pre class=’ip-ubbcode-code-pre’]If not OK then
‘ Apply the material to the face
set fo=o.GetFace(j)
fo.SetMaterial Material

s=s and ‘face ‘ and k and vbcr
count = count + 1
End If
[/pre]

Which leads me to a question for Paul.
k is not a face id? Right?

It looks more like a point id to me.

How do we install and use this new Manifold colour.cs?????????

I tried saving it to scripts as a text file and then renamed from txt to cs.

When I selected an object and ran the script, I got an error message.

I am using 3DC 7.1.2; is this new script only for 3DC8?

[BLOCKQUOTE class=’ip-ubbcode-quote’][div class=’ip-ubbcode-quote-title’]quote:[/div][div class=’ip-ubbcode-quote-content’]Originally posted by dick8299:
I tried saving it to scripts as a text file and then renamed from txt to cs.

[/div][/BLOCKQUOTE]
It’s correct.

[BLOCKQUOTE class=’ip-ubbcode-quote’][div class=’ip-ubbcode-quote-title’]quote:[/div][div class=’ip-ubbcode-quote-content’]Originally posted by dick8299:
I am using 3DC 7.1.2; is this new script only for 3DC8? [/div][/BLOCKQUOTE]
Yes, it’s for 3DC8.

As it was lost in forum translation…

Manifold script for 3DCrafter 8.2.2+

You must be logged in to reply in this thread.

10 posts