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
var options = { | |
env: 'AutodeskProduction', | |
getAccessToken: function (onGetAccessToken) { | |
// Asynchronous request from your app to request | |
// access token from your server ... | |
yourAppGetAccessTokenAsync(function (tokenResponse) { | |
onGetAccessToken ( | |
tokenResponse.access_token, |
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
async function getItem (id) { | |
var response = await fetch('/api/items/' + id) | |
var item = await response.json() | |
return item | |
} | |
async function taskOnItems (itemIds) { |
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
async onViewerCreated (data) { | |
try { | |
const { viewer, initialize, loadDocument } = data | |
viewer.addEventListener( | |
Autodesk.Viewing.FULLSCREEN_MODE_EVENT, (e) => { | |
this.onFullScreenMode(e) |
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
////////////////////////////////////////////////////////////////////////// | |
// Copyright (c) Autodesk, Inc. All rights reserved | |
// Written by Philippe Leefsma 2016 - ADN/Developer Technical Services | |
// | |
// 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 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
interface Vector { | |
void Vector(double x, double y, double z); | |
void set(double x, double y, double z); | |
double getX(); | |
double getY(); | |
double getZ(); |
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
#include <stdio.h> | |
#include "ParticleSystem.h" | |
#include "ParticleEmitter.h" | |
#include "MagneticField.h" | |
#include "Particle.h" | |
int main() { | |
// Create new particle system with 10 particles max | |
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
[{ | |
type: "versions", | |
id: "urn:adsk.wipprod:fs.file:vf.m-lA0fEwQJyLND9lLJSYZQ?version=1", | |
attributes: { | |
name: "Amine Absorber.dwfx", | |
displayName: "Amine Absorber.dwfx", | |
createTime: "2016-06-14T04:20:20+00:00", | |
createUserId: "200704122227993", | |
lastModifiedTime: "2016-06-14T04:20:20+00:00", | |
lastModifiedUserId: "200704122227993", |
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
import BaseSvc from './BaseSvc' | |
import jsonfile from 'jsonfile' | |
import request from 'request' | |
import util from 'util' | |
import fs from 'fs' | |
export default class OssSvc extends BaseSvc { | |
///////////////////////////////////////////////////////////////// |
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
/////////////////////////////////////////////////////////////////////// | |
// Copyright (c) Autodesk, Inc. All rights reserved | |
// Written by Philippe Leefsma 2016 - ADN/Developer Technical Services | |
// | |
// 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 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
/////////////////////////////////////////////////////////////////////// | |
// Copyright (c) Autodesk, Inc. All rights reserved | |
// Written by Philippe Leefsma 2016 - ADN/Developer Technical Services | |
// | |
// 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. |