This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.autodesk.adn.viewanddata; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.UUID; | |
import javax.servlet.ServletException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////// | |
// Forge React Boiler Webpack production config | |
// Repo at: | |
// https://github.com/Autodesk-Forge/forge-react-boiler.nodejs | |
// | |
// by Philippe Leefsma, 2016 | |
// https://twitter.com/F3lipek | |
// | |
/////////////////////////////////////////////////////////// | |
const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////// | |
// MeshSelectionExtension, written by Philippe Leefsma - Dec 2017 | |
// | |
// Illustrates how to perform double ray casting to detect selection | |
// of custom meshes added to the scene and handle occlusion with | |
// Viewer meshes from loaded model. | |
// | |
///////////////////////////////////////////////////////////////////// | |
class MeshSelectionExtension extends Autodesk.Viewing.Extension { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////////// | |
// ModelStructure viewer extension | |
// by Philippe Leefsma, March 2016 | |
// | |
/////////////////////////////////////////////////////////////////////////////// | |
AutodeskNamespace("Autodesk.ADN.Viewing.Extension"); | |
Autodesk.ADN.Viewing.Extension.ModelStructure = function (viewer, options) { | |
Autodesk.Viewing.Extension.call(this, viewer, options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////// | |
// Uploads object to bucket using resumable endpoint | |
// | |
///////////////////////////////////////////////////////// | |
uploadObjectChunked ( | |
getToken, | |
bucketKey, objectKey, | |
file, | |
opts = {}) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////// | |
// Get Version relationship references | |
// | |
///////////////////////////////////////////////////////////////// | |
getVersionRelationshipsRefs ( | |
token, projectId, versionId, opts = {}) { | |
this._APIAuth.accessToken = token | |
return this._versionsAPI.getVersionRelationshipsRefs( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//From https://github.com/yvt/threejs-geometry-hittest | |
let norm = new THREE.Vector3() | |
let t1 = new THREE.Vector3() | |
let t2 = new THREE.Vector3() | |
let depth = 0 | |
function checkBoxSeparation( | |
phase, | |
minX, minY, minZ, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////////// | |
// BoundingBox viewer extension | |
// by Philippe Leefsma, August 2015 | |
// | |
/////////////////////////////////////////////////////////////////////////////// | |
AutodeskNamespace("Autodesk.ADN.Viewing.Extension"); | |
Autodesk.ADN.Viewing.Extension.BoundingBox = function (viewer, options) { | |
Autodesk.Viewing.Extension.call(this, viewer, options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////// | |
// Transform Tool viewer extension | |
// by Philippe Leefsma, August 2015 | |
// | |
/////////////////////////////////////////////////////////////////// | |
AutodeskNamespace("Autodesk.ADN.Viewing.Extension"); | |
Autodesk.ADN.Viewing.Extension.TransformTool = function (viewer, options) { | |
/////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////// | |
// SelectionFilter Viewer Extension | |
// By Philippe Leefsma, Autodesk Inc, April 2017 | |
// | |
///////////////////////////////////////////////////////////////// | |
import MultiModelExtensionBase from 'Viewer.MultiModelExtensionBase' | |
import WidgetContainer from 'WidgetContainer' | |
import FilterTreeView from './FilterTreeView' | |
import EventTool from 'Viewer.EventTool' | |
import Toolkit from 'Viewer.Toolkit' |
NewerOlder