1.2.2 • Published 10 months ago

three-iges-loader v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

IGESLoader is an IGES file loader for Three.js.

!WARNING This package is currently in active development and may not be stable. Use with caution.

!NOTE Currently, only a limited number of 'entity' types are parsed (mainly to be able to display points/lines/curves).

Install

pnpm add three-iges-loader three

Usage

import * as THREE from "three";
import { IGESLoader } from "three-iges-loader";

const loader = new IGESLoader();

const iges_file_path = "/file.iges";

loader.load(
  // resource URL
  iges_file_path,
  // called when load is complete
  function (object) {
    sceneGeometry.add(object);
  },
  // called when loading is in progress
  function (xhr) {
    console.log((xhr.loaded / xhr.total) * 100 + "% loaded");
  },
  // called when loading has errors
  function (error) {
    console.log("Error: " + error);
  }
);

Author

Alex Marinov - Konsept Design Limited

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago