This file contains 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
/////////////////////////////////////////////////////////// | |
// SelectSet util for Selection Window in Forge Viewer | |
// By Philippe Leefsma, September 2017 | |
// | |
/////////////////////////////////////////////////////////// | |
import BoxGeometryIntersect from './BoxGeometryIntersect' | |
import Toolkit from 'Viewer.Toolkit' | |
export default class SelectSet { |
This file contains 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
/////////////////////////////////////////////////////////// | |
// SelectSet util for Selection Window | |
// in Forge Viewer | |
// By Philippe Leefsma, September 2017 | |
// | |
/////////////////////////////////////////////////////////// | |
import Toolkit from 'Viewer.Toolkit' | |
export default class SelectSet { |
This file contains 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, Autodesk Inc, August 2017 | |
// | |
///////////////////////////////////////////////////////////////// | |
import MultiModelExtensionBase from 'Viewer.MultiModelExtensionBase' | |
import Toolkit from 'Viewer.Toolkit' | |
class BoundingBoxExtension extends MultiModelExtensionBase { |
This file contains 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
///////////////////////////////////////////////////////////////////// | |
// Viewing.Extension.Skybox | |
// by Philippe Leefsma, July 2017 | |
// | |
///////////////////////////////////////////////////////////////////// | |
import MultiModelExtensionBase from 'Viewer.MultiModelExtensionBase' | |
import xpos from './img/bridge/skybox-xpos.png' | |
import xneg from './img/bridge/skybox-xneg.png' | |
import ypos from './img/bridge/skybox-ypos.png' | |
import yneg from './img/bridge/skybox-yneg.png' |
This file contains 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
class ViewerSkybox { | |
constructor (viewer, options) { | |
const faceMaterials = options.imageList.map((url) => { | |
return new THREE.MeshBasicMaterial({ | |
map: THREE.ImageUtils.loadTexture(url), | |
side: THREE.BackSide | |
}) | |
}) |
This file contains 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
///////////////////////////////////////////////////////// | |
// Re-Flex Storage demo | |
// | |
///////////////////////////////////////////////////////// | |
class ReflexStorageDemo | |
extends React.Component { | |
constructor (props) { | |
super (props) |
This file contains 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
///////////////////////////////////////////////////////// | |
// Initialize viewer environment | |
// | |
///////////////////////////////////////////////////////// | |
function initialize (options) { | |
return new Promise(function(resolve, reject) { | |
Autodesk.Viewing.Initializer (options, | |
function () { |
This file contains 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
'use strict' | |
/////////////////////////////////////////////////////////// | |
// Node imports, must be installed with npm install and | |
// packaged along the lambda code zip | |
// | |
/////////////////////////////////////////////////////////// | |
const Promise = require('bluebird') | |
const Forge = require('forge-apis') | |
const config = require('./config') |
This file contains 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
// | |
// Copyright (c) Autodesk, Inc. All rights reserved | |
// | |
// Permission to use, copy, modify, and distribute this software in | |
// object code form for any purpose and without fee is hereby granted, | |
// provided that the above copyright notice appears in all copies and | |
// that both that copyright notice and the limited warranty and | |
// restricted rights notice below appear in all supporting | |
// documentation. | |
// |
This file contains 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' |