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.
63 lines
2.1 KiB
HTML
63 lines
2.1 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">
|
|
[page:Object3D] → [page:Line] → [page:LineSegments] →
|
|
|
|
<h1>[name]</h1>
|
|
|
|
<p class="desc">كائن مساعد لتصور [page:Box3].</p>
|
|
|
|
<h2>مثال الكود</h2>
|
|
|
|
<code>
|
|
const box = new THREE.Box3();
|
|
box.setFromCenterAndSize( new THREE.Vector3( 1, 1, 1 ), new THREE.Vector3( 2, 1, 3 ) );
|
|
|
|
const helper = new THREE.Box3Helper( box, 0xffff00 );
|
|
scene.add( helper );
|
|
</code>
|
|
|
|
<h2>المنشئ (Constructor)</h2>
|
|
|
|
<h3>[name]( [param:Box3 box], [param:Color color] )</h3>
|
|
<p>
|
|
[page:Box3 box] -- الـ Box3 المراد عرضه.<br />
|
|
[page:Color color] -- (اختياري) لون الصندوق. الافتراضي هو 0xffff00.<br /><br />
|
|
|
|
ينشئ صندوقًا جديدًا بإطار سلكي يمثل Box3 المُمرَّر.
|
|
</p>
|
|
|
|
<h2>الخصائص (Properties)</h2>
|
|
<p>انظر إلى الفئة الأساسية [page:LineSegments] للحصول على الخصائص المشتركة.</p>
|
|
|
|
<h3>[property:Box3 box]</h3>
|
|
<p>الـ Box3 المُعروض.</p>
|
|
|
|
<h2>الطرق (Methods)</h2>
|
|
<p>انظر إلى الفئة الأساسية [page:LineSegments] للحصول على الطرق المشتركة.</p>
|
|
|
|
<h3>[method:undefined updateMatrixWorld]( [param:Boolean force] )</h3>
|
|
<p>
|
|
هذا يتجاوز الطريقة في الفئة الأساسية [page:Object3D] بحيث يُحدِّث أيضًا
|
|
الإطار السلكي للصندوق إلى مدى خاصية [page:Box3Helper.box .box].
|
|
</p>
|
|
|
|
<h3>[method:undefined dispose]()</h3>
|
|
<p>
|
|
يُطلِق الموارد المتعلقة بوحدة معالجة الرسومات التي تم تخصيصها من قبل هذه العيّنة. اتصل بهذه
|
|
الطريقة كلما لم يعد هذه العيّنة مستخدمة في تطبيقك.
|
|
</p>
|
|
|
|
<h2>المصدر (Source)</h2>
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
</p>
|
|
</body>
|
|
</html>
|