02.05.2014 Views

ODEON Import of CAD files in the DXF format – problems and ...

ODEON Import of CAD files in the DXF format – problems and ...

ODEON Import of CAD files in the DXF format – problems and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Z<br />

O<br />

X<br />

Y<br />

Odeon©1985-2007<br />

Step 3 Us<strong>in</strong>g surface normals <strong>in</strong> order to avoid surfaces from cancell<strong>in</strong>g out.<br />

So <strong>in</strong>stead <strong>of</strong> add<strong>in</strong>g all surfaces <strong>in</strong>to one we study <strong>the</strong> orientation <strong>of</strong> <strong>the</strong> normals <strong>of</strong> <strong>the</strong> 4 triangles (def<strong>in</strong>ed by<br />

<strong>the</strong> order <strong>of</strong> <strong>the</strong> po<strong>in</strong>ts <strong>in</strong> surfaces) <strong>and</strong> only if <strong>the</strong>y have <strong>the</strong> same orientation <strong>the</strong> surfaces are added toge<strong>the</strong>r.<br />

As a result we end up with two copies <strong>of</strong> <strong>the</strong> same rectangular surface.<br />

Z<br />

O<br />

X<br />

Y<br />

Odeon©1985-2007<br />

Step 4 We have obta<strong>in</strong>ed to identical rectangles – but we only need <strong>and</strong> we only want one. Hav<strong>in</strong>g doublets can<br />

make it difficult to make sure that correct materials are assigned to <strong>the</strong> surface <strong>in</strong> <strong>ODEON</strong> – Assign<strong>in</strong>g<br />

materials to a number <strong>of</strong> surfaces you may ask yourself: I changed <strong>the</strong> material <strong>of</strong> surface 3 but did I remember<br />

to deal with surface 4556 as well? We need to get rid <strong>of</strong> doublets.<br />

So we just need to remove <strong>the</strong> doublet<br />

In case <strong>the</strong> first surface is composed from po<strong>in</strong>t 1,2,3,4 <strong>the</strong>n we just need to check if one <strong>of</strong> <strong>the</strong> follow<strong>in</strong>g<br />

comb<strong>in</strong>ations are present 1,2,3,4 – 2,3,4,1 – 3,4,1,2 – 4,1,2,4 – 4,3,2,1 – 3,2,1,4 – 2,1,4,3 or 1,4,3,2 <strong>and</strong> remove<br />

<strong>the</strong> duplicate – f<strong>in</strong>ally we have filtered our surface <strong>in</strong>fo correctly.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!