You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.8 KiB
HTML
53 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ar">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<base href="../../../" />
|
|
<script src="page.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="page.css" />
|
|
</head>
|
|
<body class="rtl">
|
|
<h1>[name]</h1>
|
|
|
|
<p class="desc">
|
|
فئة تحتوي على دوال مساعدة للأشكال.<br /><br />
|
|
|
|
لاحظ أن هذه كلها دوال خطية لذلك يجب حسابها بشكل منفصل لمكونات x و y (و z و w إذا كانت موجودة) من متجه.
|
|
</p>
|
|
|
|
<h2>الوظائف (Methods)</h2>
|
|
|
|
<h3>[method:Number area]( contour )</h3>
|
|
<p>
|
|
contour -- مضلع 2D. مصفوفة من THREE.Vector2()<br /><br />
|
|
|
|
حساب مساحة مضلع (2D) المحيط.
|
|
</p>
|
|
|
|
<h3>[method:Boolean isClockWise]( pts )</h3>
|
|
<p>
|
|
pts -- نقاط تحدد مضلع 2D<br /><br />
|
|
|
|
لاحظ أن هذه هي دالة خطية لذلك يجب حسابها بشكل منفصل لمكونات x و y من المضلع.<br /><br />
|
|
|
|
يستخدم داخليًا بواسطة [page:Path Path] و [page:ExtrudeGeometry ExtrudeGeometry] و [page:ShapeGeometry ShapeGeometry].
|
|
</p>
|
|
|
|
<h3>[method:Array triangulateShape]( contour, holes )</h3>
|
|
<p>
|
|
contour -- مضلع 2D. مصفوفة من [page:Vector2].<br />
|
|
holes -- مصفوفة تحتوي على مصفوفات من [page:Vector2]s. كل مصفوفة
|
|
تمثل تعريف ثقب واحد.<br /><br />
|
|
|
|
يستخدم داخليًا بواسطة [page:ExtrudeGeometry ExtrudeGeometry] و
|
|
[page:ShapeGeometry ShapeGeometry] لحساب الوجوه في الأشكال التي بها ثقوب.
|
|
</p>
|
|
|
|
<h2>المصدر (Source)</h2>
|
|
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
</p>
|
|
</body>
|
|
</html>
|