Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Surface objesi oluşturulurken birbirini takip eden sıra ile nokta objeleri girilmelidir girilmez ise aşağıdaki durum ortaya çıkar.

Örnek:

Code Block
languagexml
themeEclipse
<O T="Surface">
       <O T="Point" X="1" Y="5" /> 
       <O T="Point" X="7" Y="5" />
       <O T="Point" X="7" Y="7" />
       <O T="Point" X="-7" Y="7" />
       <O T="Point" X="-7" Y="5" />
       <O T="Point" X="-1" Y="5" />
       <O T="Point" X="-1" Y="-5" />
       <O T="Point" X="-7" Y="-5" />
       <O T="Point" X="-7" Y="-7" />
       O T="Point" X="7" Y="-7" />
       <O T="Point" X="7" Y="-5" />
       <O T="Point" X="1" Y="-5" />
</O>

...


Şeklin doğru oluşabilmesi için mavi nokta ile sarı nokta ardına yeşil nokta onun ardına kırmızı nokta gelir ve doğru sıralama 
Yukarıdaki şekli oluştururken noktalar sırası ile girilmeseydi mesela sarı ve yeşil renkle belirtilmiş noktaların sırası yer değiştirseydi yani mavi noktadan sonra yeşil noktaya sonra sarı noktaya daha sonra kırmızı noktaya gitseydi neler olurdu bakalım

Örnek:

Code Block
languagexml
themeEclipse
<O T="Surface">
       <O T="Point" X="1" Y="5" /> 
       <O T="Point" X="7" Y="7" />
       <O T="Point" X="7" Y="5" />
       <O T="Point" X="-7" Y="7" />
       <O T="Point" X="-7" Y="5" />
       <O T="Point" X="-1" Y="5" />
       <O T="Point" X="-1" Y="-5" />
       <O T="Point" X="-7" Y="-5" />
       <O T="Point" X="-7" Y="-7" />
       O T="Point" X="7" Y="-7" />
       <O T="Point" X="7" Y="-5" />
       <O T="Point" X="1" Y="-5" />
</O>

...

Thickness parametresi, oluşturulan 2 boyutlu yüzey objesine üçüncü bir boyut olan kalınlık atamaya yarar.

Örnek:

Code Block
languagexml
themeEclipse
<O N="Surfaceornegi" T="Surface">
       <P N="Thickness" V="3" />
       <O T="Point" X="0" Y="0" Z="0" />
       <O T="Point" X="10" Y="0" Z="0" />
       <O T="Point" X="10" Y="20" Z="0" />
       <O T="Point" X="0" Y="20" Z="0" />
</O>

...

Cutout parametresi, oluşturulacak yüzeyin kesilip kesilmemesini sorgular. 1 değeri veya Yes değeri oluşturulacak yüzeyi keser, 2 veya No değeri yüzeyi olduğu gibi oluşturur.

Örnek:

Code Block
languagexml
themeEclipse
<O N="Surfaceornegi" T="Surface">
       <O T="Point" X="-20" Y="-20" />
       <O T="Point" X="-20" Y="20" />
       <O T="Point" X="20" Y="20" />
       <O T="Point" X="20" Y="-20" />
       <O N="KesilecekYuzey" T="Surface" IsCutout="Yes">
           <O T="Point" X="-10" Y="-10" />
           <O T="Point" X="-10" Y="10" />
           <O T="Point" X="10" Y="10" />
           <O T="Point" X="10" Y="-10" />
       </O>
</O>

...

Draw Border parametresi, kenar çizgilerini şekil üzerinde çizip çizmemeyi sorgular. Default değeri 1'dir.

Örnek:

Code Block
languagexml
themeEclipse
<O N="Surfaceornegi" T="Surface" Thickness="20" DrawBorder="No">
       <O T="Point" X="-20" Y="-20" />
       <O T="Point" X="-20" Y="20" />
       <O T="Point" X="20" Y="20" />
       <O T="Point" X="20" Y="-20" />
       <O N="KesilecekYuzey" T="Surface" IsCutout="Yes">
           <O T="Point" X="-10" Y="-10" />
           <O T="Point" X="-10" Y="10" />
           <O T="Point" X="10" Y="10" />
           <O T="Point" X="10" Y="-10" />
       </O>
 </O>

...