Presentation is loading. Please wait.

Presentation is loading. Please wait.

View & Data API platform

Similar presentations


Presentation on theme: "View & Data API platform"— Presentation transcript:

1 View & Data API platform
Cyrille Fauvel

2 Understand Buckets Access Token viewer scoping
New Viewer API/Features Sectioning Measure Localization Polymer lmv.rocks! External Database

3 Understand Buckets Buckets are permanent so what is transient, temporary, persistent for? Read keep the resource in the ‘bucket’ for a duration of time predefined by the bucket type. “in theory, you need only 3 buckets in your account” “since bucket name should be unique across all accounts, a good practice is to prefix/postfix the name with your consumer key or a hash code”

4 Bucket transient lifes
A Transient bucket is permanent, but keeps a resource alive 24 hours and then delete the resource. Day #1 Day #2 Day #3 Days #4 Automatic

5 Bucket permanent lifes
A permanent bucket is permanent, and keeps a resource alive forever unless deleted. Day #1 Day #2 Day #3 Days #4

6 Deleted? Delete a resource /oss/v1/buckets/{{BucketName}}/objects/{{Filename}} Delete a bucket - Restricted API No undo possible (very dangerous) Need to be whitelisted to use it – contact us

7 How many buckets?

8 Restricted API /oss/v2/buckets[?limit={limit}&startAt={startAt}]

9 Access Token security An Access Token is valid 30 minutes used on the server side used by the 3d viewer The 3d Viewer is running on the client side there is a chance a hacker trap your access token and use it  => you need to protect your access token like you protect your consumer secret

10 Demo Solution is to scope the viewer token,

11 Polymer A polymer (/ˈpɒlɨmər/) (Greek poly-, "many" + -mer, "parts") is a large molecule, or macromolecule, composed of many repeated subunits. Because of their broad range of properties, both synthetic and natural polymersplay an essential and ubiquitous role in everyday life.

12 Polymer project Custom elements extend the web HTML provides a set of built-in elements like <button>, <form> and <table>. Each element has its own API of attributes, properties, methods, and events. Each element has built-in styling, as well as style properties you can override using CSS. Just make your own!

13 Viewer as a custom element
Include polyfill + reference js library <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script> <script src=" import the viewer element <link rel="import" href="bower_components/lmv-viewer/lmv-viewer.html">

14 Viewer as a custom element
Now all you need is a html tag to put it on a page <lmv-viewer url="

15 Easy install This custom element is on bower Documentation Sample: lmv.rocks Caveat: no IE Support

16 New Viewer API - Sectioning

17 New Viewer API - Sectioning
API for set a specific cut-plane (Vertical-front, Vertical-side, Horizontal or a box) turn sectioning off turn sectioning on (with the last cut-plane set) There are 2 ways to access this functionality: viewer.setCutPlanes() Through "Autodesk.Section" extension. Option a) offers the raw functionality. It is aimed for users that want to build their own 3d-sectioning UI. It requires knowledge of THREE.js library. Option b) provides higher lever functionality at a cost of less customization. It provides an implementation for 3d-sectioning UI as well as some default cut planes which can be accessed through strings "X", "Y", "Z" and "BOX".

18 Example // First, create the tool that comes bundled in the Section extension: var sectionTool = new Autodesk.Viewing.Extensions.Section.SectionTool(viewer); viewer.toolController.registerTool(sectionTool); // When a cutplane needs to be shown, we activate the tool and set a cutplane viewer.toolController.activateTool(sectionTool.getName()); sectionTool.setSection("X"); // Only supported parameters are: "X" or "Y" or "Z" or "BOX". // When the cutplane needs to be turned of, developer must: viewer.toolController.deactivateTool(sectionTool.getName());

19 New Viewer feature - Measure

20 New Viewer feature - Measure
No API 2D measure snapping area 3D Measure support in model with topology data

21 New Viewer feature – Localization
Localized version available in 14 languages German, French, Japanese, Chinese, Spanish, Italian, Korean, Polish, Portuguese, Russian, Czech

22 New Viewer features - Prism material
Improved materials rendering via Prism material shaders

23 Q&A

24 Autodesk is a registered trademark of Autodesk, Inc
Autodesk is a registered trademark of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing at any time without notice, and is not responsible for typographical or graphical errors that may appear in this document.


Download ppt "View & Data API platform"

Similar presentations


Ads by Google