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.
105 lines
4.1 KiB
HTML
105 lines
4.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:Material] →
|
|
|
|
<h1>[name]</h1>
|
|
|
|
<p class="desc">مادة لرسم الهندسة على طريقة الإطار السلكي.</p>
|
|
|
|
<h2>مثال الكود</h2>
|
|
<code>
|
|
const material = new THREE.LineBasicMaterial( {
|
|
color: 0xffffff,
|
|
linewidth: 1,
|
|
linecap: 'round', //ignored by WebGLRenderer
|
|
linejoin: 'round' //ignored by WebGLRenderer
|
|
} );
|
|
</code>
|
|
|
|
<h2>أمثلة (Examples)</h2>
|
|
<p>
|
|
[example:webgl_buffergeometry_drawrange WebGL / buffergeometry / drawrange]<br />
|
|
[example:webgl_buffergeometry_lines WebGL / buffergeometry / lines]<br />
|
|
[example:webgl_buffergeometry_lines_indexed WebGL / buffergeometry / lines / indexed]<br />
|
|
[example:webgl_decals WebGL / decals]<br />
|
|
[example:webgl_geometry_nurbs WebGL / geometry / nurbs]<br />
|
|
[example:webgl_geometry_shapes WebGL / geometry / shapes]<br />
|
|
[example:webgl_geometry_spline_editor WebGL / geometry / spline / editor]<br />
|
|
[example:webgl_interactive_buffergeometry WebGL / interactive / buffergeometry]<br />
|
|
[example:webgl_interactive_voxelpainter WebGL / interactive / voxelpainter]<br />
|
|
[example:webgl_lines_colors WebGL / lines / colors]<br />
|
|
[example:webgl_lines_dashed WebGL / lines / dashed]<br />
|
|
[example:physics_ammo_rope physics / ammo / rope]
|
|
</p>
|
|
|
|
<h2>المنشئ (Constructor)</h2>
|
|
<h3>[name]( [param:Object parameters] )</h3>
|
|
|
|
<p>
|
|
[page:Object parameters] - (اختياري) كائن به خاصية واحدة أو أكثر
|
|
تحدد مظهر المادة. يمكن تمرير أي خاصية من المادة (بما في ذلك أي خاصية موروثة من [page:Material]) هنا.<br /><br />
|
|
|
|
الاستثناء هو الخاصية [page:Hexadecimal color]، التي يمكن تمريرها كسلسلة ست عشرية وهي `0xffffff` (أبيض) بشكل افتراضي.
|
|
يتم استدعاء [page:Color.set]( color ) داخليًا.
|
|
</p>
|
|
|
|
<h2>الخصائص (Properties)</h2>
|
|
<p>انظر إلى الفئة الأساسية [page:Material] للحصول على خصائص شائعة.</p>
|
|
|
|
<h3>[property:Color color]</h3>
|
|
<p>[page:Color] للمادة ، الافتراضي هو الأبيض (0xffffff).</p>
|
|
|
|
<h3>[property:Boolean fog]</h3>
|
|
<p>ما إذا كانت المادة متأثرة بالضباب. الافتراضي هو `true`.</p>
|
|
|
|
<h3>[property:Float linewidth]</h3>
|
|
<p>
|
|
يتحكم في سمك الخط. الافتراضي هو `1`.<br /><br />
|
|
|
|
بسبب قيود
|
|
[link:https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf OpenGL Core Profile]
|
|
مع [page:WebGLRenderer WebGL] renderer على معظم
|
|
المنصات سيكون linewidth دائمًا 1 بغض النظر عن القيمة المحددة.
|
|
</p>
|
|
|
|
<h3>[property:String linecap]</h3>
|
|
<p>
|
|
تحديد مظهر نهايات الخط. القيم الممكنة هي 'butt' و 'round' و
|
|
'square'. الافتراضي هو 'round'.<br /><br />
|
|
|
|
هذا يتوافق مع
|
|
[link:https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap 2D Canvas lineCap]
|
|
خاصية ويتم تجاهلها من قبل [page:WebGLRenderer WebGL] renderer.
|
|
</p>
|
|
|
|
<h3>[property:String linejoin]</h3>
|
|
<p>
|
|
تحديد مظهر مفاصل الخط. القيم الممكنة هي 'round' و 'bevel' و
|
|
'miter'. الافتراضي هو 'round'. <br /><br />
|
|
|
|
هذا يتوافق مع
|
|
[link:https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineJoin 2D Canvas lineJoin]
|
|
خاصية ويتم تجاهلها من قبل [page:WebGLRenderer WebGL] renderer.
|
|
</p>
|
|
|
|
<h3>[property:Texture map]</h3>
|
|
<p>يحدد لون الخطوط باستخدام بيانات من [page:Texture].</p>
|
|
|
|
<h2>الطرق (Methods)</h2>
|
|
<p>انظر إلى قاعدة [page:Material] class للطرق المشتركة.</p>
|
|
|
|
<h2>المصدر (Source)</h2>
|
|
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
</p>
|
|
</body>
|
|
</html>
|