threejs-geometry
Build and Optimize Three.js Geometry
Three.js geometry work requires careful choices about vertex data, draw calls, and renderer compatibility. This skill provides focused examples for shapes, custom buffers, instancing, and WebGPU adaptations.
التثبيت باستخدام Agent لدي
انسخ هذا الطلب إلى Agent لديك. يتضمن صفحة Skill المعتمدة وملف manifest.
Review the Skillstore skill "threejs-geometry" from https://skillstore.io/skills/cloudai-x-threejs-geometry.md and its manifest at https://skillstore.io/api/skills/cloudai-x-threejs-geometry/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.يجب أن يواصل Agent عرض خطته وطلب أي تأكيد تفرضه سياسة الأمان.
موارد مهيّأة لـ Agents
استخدم هذه الروابط عندما يحتاج AI Agent أو crawler أو script إلى سياق نظيف بدلًا من قراءة الصفحة كاملة.
اختبرها
جارٍ استخدام "threejs-geometry". How should I render 1,000 colored boxes efficiently?
النتيجة المتوقعة:
- Use InstancedMesh when all boxes share geometry and a compatible material.
- Assign each transform and color, then mark the instance matrix and color buffers for upload.
- Refresh bounding volumes after movement and use the raycast instance identifier to select individual boxes.
جارٍ استخدام "threejs-geometry". My large points and closed line disappear or look different under WebGPU. What should change?
النتيجة المتوقعة:
- The WebGPU backend renders point primitives at one pixel regardless of material size.
- Use an instanced Sprite with PointsNodeMaterial for larger points.
- Replace LineLoop with Line and repeat the first point at the end to close the shape.
جارٍ استخدام "threejs-geometry". What must I update after changing vertex positions?
النتيجة المتوقعة:
- Mark the position attribute for upload after editing its values.
- Recompute vertex normals when the surface shape changes.
- Refresh the bounding box and bounding sphere for culling and raycasting.
التدقيق الأمني
آمنAll 72 static findings are false positives caused by Markdown code fences or inline code, not Ruby or shell execution. The source provides Three.js geometry examples, including a relative font asset request. No evidence found of prompt injection, credential access, data exfiltration, or malicious instructions.
عوامل الخطر
⚙️ الأوامر الخارجية (50)
شارك واستشهد بهذا التقرير
شارك تقرير التقييم المرتبط بالإصدار والشارة المحايدة وبطاقة التضمين والاستشهادات. تعرض Skillstore الأدلة من دون أن تقرر ما إذا كانت هذه المهارة آمنة.
نسخ رابط التقرير
https://skillstore.io/skills/cloudai-x-threejs-geometry/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportشارة Markdown
[](https://skillstore.io/skills/cloudai-x-threejs-geometry?utm_source=security_passport_badge)شارة HTML
<a href="https://skillstore.io/skills/cloudai-x-threejs-geometry?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudai-x-threejs-geometry/security.svg" alt="Skillstore security assessment" loading="lazy"></a>بطاقة قابلة للتضمين
<iframe src="https://skillstore.io/embed/skills/cloudai-x-threejs-geometry.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>الاستشهادات الأكاديمية (APA · BibTeX · CFF)
اقتباس APA
cloudai-x. (2026). threejs-geometry security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudai-x-threejs-geometry/audits/1اقتباس BibTeX
@techreport{cloudai-x-cloudai-x-threejs-geometry-2026,
author = {cloudai-x},
title = {threejs-geometry security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/cloudai-x-threejs-geometry/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "threejs-geometry security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "cloudai-x"
date-released: "2026-11-07"
url: "https://skillstore.io/skills/cloudai-x-threejs-geometry/audits/1"
identifiers:
- type: other
value: "skillstore:cloudai-x-threejs-geometry:audit:1"
description: "Skillstore immutable audit report identifier"
تقييم Skillstore
سبب هذا التقييم موثوقية الأدلة: متوسطما الذي يمكنك بناؤه
Prototype Interactive 3D Shapes
Choose built-in or path-based geometry and add text, edges, and wireframes to a browser scene.
Optimize Repeated Scene Objects
Compare instancing, batching, and static merging while managing transforms, colors, bounds, and shared resources.
Adapt Visualizations for WebGPU
Replace unsupported line loops, adapt point sizing, and express per-instance offsets with TSL nodes.
جرّب هذه الموجّهات
Use threejs-geometry to create a rotating box in Three.js r186 with WebGLRenderer and MeshNormalMaterial. Include scene, camera, and render-loop setup.
Create an indexed quad using BufferGeometry with positions, normals, UVs, and normalized byte colors. Explain attribute sizes and updating one vertex safely.
Replace 1,000 identical box meshes with InstancedMesh, preserving transforms and colors. Include runtime updates, bounds refresh, raycast instance identification, and shared-resource disposal guidance.
Adapt a Three.js r186 scene with large points, closed lines, and custom instance offsets for WebGPURenderer. Use sprite-based points, repeated endpoints, and TSL positionLocal.
أفضل الممارسات
- Confirm your Three.js version and renderer backend before applying examples, especially for WebGPU-specific behavior.
- Match attribute layouts and index state before merging or batching geometries; refresh bounds after geometry or instance movement.
- Share geometry deliberately, choose segment counts carefully, and dispose resources only when their users no longer need them.
تجنب
- Creating separate draw calls for thousands of identical meshes without considering InstancedMesh.
- Editing vertex or instance data without upload flags or refreshed bounding volumes.
- Assuming WebGL point sizes, line loops, or ShaderMaterial code transfer unchanged to WebGPURenderer.