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
/* jshint esversion: 8 */ | |
'use strict' | |
const axios = require('axios'); | |
/** | |
* Handler function that will process the data and return a result. | |
* | |
* @param {Object} data - Data to be processed. | |
* @param {Objcct} logger - Can be used for any logging purposes. | |
* @param {Function} logger.log - Use to log anything i.e. logger.log(Object | String) |
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
# run command download.sh | |
wget --compression=auto -r -i lmvfilelist.txt | |
mv autodeskviewer.com/viewers/latest/ ./lmv | |
mv fonts.autodesk.com ./lmv | |
rm -fr autodeskviewer.com | |
# Switch Forge logo for ACME Logo | |
wget https://e7.pngegg.com/pngimages/135/411/png-clipart-acme-markets-havertown-grocery-store-supermarket-retail-others-miscellaneous-angle.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
/* | |
* Script for downloading SVF assets from the Model Derivative service. | |
npm install forge-convert-utils | |
APS_CLIENT_ID=1234 | |
APS_CLIENT_SECRET=12356 | |
Usage: node download-svf.js <urn> <path/to/output/folder> | |
*/ | |
const { SvfDownloader } = require('forge-convert-utils'); | |
const { APS_CLIENT_ID, APS_CLIENT_SECRET } = process.env; |
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
/* Pull Properties db files (objects_vals.json.gz _id, _val, _eav, _attr) into MS-SQL-Server database | |
Example usage: | |
1. copy your 5 files ( objects_vals.json.gz _id, _val, _eav, _attr) into 'svf' folder | |
2. > npm install @frangiskos/mssql readline | |
3. > node import_mssql.js pathTo/svf/output/0 myNewDatabase | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); |
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
{ | |
"name": "visual", | |
"description": "default_template_value", | |
"repository": { | |
"type": "default_template_value", | |
"url": "default_template_value" | |
}, | |
"license": "MIT", | |
"scripts": { | |
"pbiviz": "pbiviz", |
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
{ | |
"lambda": { | |
"role": "web-api-test-executor", | |
"name": "web-api-test", | |
"region": "us-east-1" | |
}, | |
"api": { | |
"id": "rtvnonbl58", | |
"module": "web" | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="icon" href="data:,"> | |
<link rel="stylesheet" href="https://wallabyway.github.io/floor-animation/skeleton.min.css"> | |
<title>SkeletonCSS</title> |
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
<head> | |
<title>Viewer Loading Multi-Model with GLB</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="icon" href="data:,"> | |
<style> | |
#panel { | |
position: fixed; z-index: 2; margin: 10px; | |
font-family:arial; font-size:1.5em; } | |
</style> |
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
var fs = require('fs'); | |
function ConvertToGLB(gltf, outputFilename, sourceFilename) { | |
const Binary = { | |
Magic: 0x46546C67 | |
}; | |
const bufferMap = new Map(); | |
function decodeBase64(uri) { |
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
// PURPOSE: convert draco-pnts to glb (ie. 3dTiles v1.0 to v1.1) | |
// INSTALL: npm install draco3d gltfpack | |
// RUN: | |
// > node infolderPNTS outfolderGLB | |
import fs from 'fs'; | |
import draco3d from 'draco3d'; | |
import gltfpack from 'gltfpack'; | |
const inFolder = process.argv.slice(2)[0] || 'infolder'; |
NewerOlder