Copper3D Visualization Library

website·Indexed 30 days ago

https://linkungao.github.io/copper3d_visualisation/

A 3D visualization library specializing in medical imaging, featuring tools for NRRD volume loading, NIfTI mask management, and 4D MRI alignment. It includes a Segmentation Module with AI Assist interactive prompt segmentation, GLB rendering optimizations using Draco and KTX2 decoders, and specialized APIs for surface annotation and cardiac data synchronization.

Tokens
141.6K
Snippets
858
Records
1.1K
Agent score
71%

What's inside Copper3D

  1. Overview of copper3d AI Assist Mental Model

    The AI Assist feature in copper3d acts as a frontend interface for interactive segmentation. It does not communicate with AI models directly. Instead, it follows this workflow:

    1. Captures user prompts (points, boxes, scribbles, or lassos) on the current slice.
    2. Sends a serializable AiPromptPayload to the developer via the onPrompt callback.
    3. Receives a mask result from the developer and renders it into a separate 'scratch' layer using aiApplyMask.

    This scratch layer acts as a sandbox. Changes are not applied to the actual mask layer until aiCommitToLayer(...) is called. Entering AI mode hides existing layer masks and shows the AI overlay; exiting restores the original state.

  2. Overview of copper3d MCP Server

    The copper3d-mcp server provides AI assistants with a machine-readable index of copper3d's API (approximately 42 modules and 1200 symbols) and hand-written guides. Instead of relying on training data, the server reads the index located in the project's node_modules/copper3d/ai-index/, ensuring the AI sees the API signatures that match the version actually installed in the project.
  3. Overview of copper3d MCP Server

    The copper3d-mcp server provides AI assistants with a machine-readable index of copper3d's API (approx. 1,200 symbols across 42 modules) and hand-written guides. It reads the index located in the project's node_modules/copper3d/ai-index/ (available in version 3.11.0+), ensuring the AI sees the API signatures matching the specific version installed in the project.
  4. Overview of copper3d MCP server

    The copper3d-mcp server provides AI assistants with a machine-readable index of copper3d's API (approximately 1,200 symbols across 42 modules) and hand-written guides. This prevents AI models from hallucinating API calls by allowing them to look up real signatures based on the specific version of copper3d installed in the user's project.
  5. Overview of Copper3d visualization tool

    Copper3d is a visualization toolkit built on Three.js. It is designed for handling medical and scientific data formats, specifically providing a DICOM loader, NRRD segmentation tools, and functionality to create VTK animations.
  6. Overview of Copper3d Visualisation Tool

    Copper3d is a visualisation tool built on three.js. It provides specialized capabilities for medical imaging and 3D data, including a Dicom loader, Nrrd Segmentation Tools, and functions for creating VTK animations.
  7. Overview of Copper3D Surface Annotation capabilities

    The Surface Annotation API (available since copper3d_visualisation v3.6.0-beta) enables drawing directly on 3D model surfaces. Key capabilities include:

    • Freehand Drawing: Real-time projection of strokes onto the surface.
    • Geodesic Paths: Shortest-route paths along the mesh surface that hug the terrain. Supports anchor point manipulation (drag to move, right-click to delete, click line to insert).
    • Fiducial Points: Dropping marker points on the surface.
    • Closed Loops: Ability to close contours into loops that follow the surface geometry.
    • Non-destructive: The tool uses a position-only copy of the geometry for pathfinding and does not modify the original mesh's normals, UVs, or textures.
    • Format Agnostic: Works with any THREE.Mesh regardless of the original file format (OBJ, glTF, GLB, VTK, STL, etc.).