Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/report-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# Using actions/download-artifact doesn't work here
# https://github.com/actions/download-artifact/issues/60
- name: Download artifact
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
id: download-artifact
with:
result-encoding: string
Expand Down
26 changes: 0 additions & 26 deletions editor/js/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,32 +800,6 @@ function Loader( editor ) {

}

case 'vtk':
case 'vtp':

{

reader.addEventListener( 'load', async function ( event ) {

const contents = event.target.result;

const { VTKLoader } = await import( 'three/addons/loaders/VTKLoader.js' );

const geometry = new VTKLoader().parse( contents );
const material = new THREE.MeshStandardMaterial();

const mesh = new THREE.Mesh( geometry, material );
mesh.name = filename;

editor.execute( new AddObjectCommand( editor, mesh ) );

}, false );
reader.readAsArrayBuffer( file );

break;

}

case 'wrl':

{
Expand Down
1 change: 0 additions & 1 deletion examples/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
"webgl_loader_usdz",
"webgl_loader_vox",
"webgl_loader_vrml",
"webgl_loader_vtk",
"webgl_loader_xyz",
"webgl_lod",
"webgl_marchingcubes",
Expand Down
6 changes: 5 additions & 1 deletion examples/jsm/loaders/VTKLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,26 @@ import { unzlibSync } from '../libs/fflate.module.js';
*
* @augments Loader
* @three_import import { VTKLoader } from 'three/addons/loaders/VTKLoader.js';
* @deprecated since r184.
*/
class VTKLoader extends Loader {

/**
* Constructs a new VTK loader.
*
* @param {LoadingManager} [manager] - The loading manager.
* @deprecated since r184.
*/
constructor( manager ) {

super( manager );

console.warn( 'THREE.VTKLoader: The loader has been deprecated and will be removed with r194. Export your VTK files to glTF before using them on the web.' ); // @deprecated, r184

}

/**
* Starts loading from the given URL and passes the loaded VRML asset
* Starts loading from the given URL and passes the loaded VTK asset
* to the `onLoad()` callback.
*
* @param {string} url - The path/URL of the file to be loaded. This can also be a data URI.
Expand Down
81,443 changes: 0 additions & 81,443 deletions examples/models/vtk/bunny.vtk

This file was deleted.

80 changes: 0 additions & 80 deletions examples/models/vtk/cube_ascii.vtp

This file was deleted.

54 changes: 0 additions & 54 deletions examples/models/vtk/cube_binary.vtp

This file was deleted.

54 changes: 0 additions & 54 deletions examples/models/vtk/cube_no_compression.vtp

This file was deleted.

Binary file removed examples/models/vtk/liver.vtk
Binary file not shown.
Binary file modified examples/screenshots/webgl_loader_nrrd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed examples/screenshots/webgl_loader_vtk.jpg
Binary file not shown.
21 changes: 0 additions & 21 deletions examples/webgl_loader_nrrd.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
import { TrackballControls } from 'three/addons/controls/TrackballControls.js';
import { NRRDLoader } from 'three/addons/loaders/NRRDLoader.js';
import { VTKLoader } from 'three/addons/loaders/VTKLoader.js';

let stats,
camera,
Expand Down Expand Up @@ -124,26 +123,6 @@

} );

const vtkmaterial = new THREE.MeshLambertMaterial( { wireframe: false, side: THREE.DoubleSide, color: 0xff0000 } );

const vtkloader = new VTKLoader();
vtkloader.load( 'models/vtk/liver.vtk', function ( geometry ) {

geometry.computeVertexNormals();

const mesh = new THREE.Mesh( geometry, vtkmaterial );
scene.add( mesh );
const visibilityControl = {
visible: true
};
gui.add( visibilityControl, 'visible' ).name( 'Model Visible' ).onChange( function () {

mesh.visible = visibilityControl.visible;
renderer.render( scene, camera );

} );

} );
// renderer

renderer = new THREE.WebGLRenderer( { antialias: true } );
Expand Down
Loading
Loading