Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

33
3D Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist

Transcript of Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

Page 1: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3D

Zero to 3D in 60 Minutes

Fenton WebbSenior Developer Evangelist

Page 2: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

About the Presenter

Fenton WebbDeveloper Technical ServicesAmericasAutodesk, Inchttp://twitter.com/fentonwebb

Fenton has been a member of the Autodesk DevTech team since 2000. Originally a member of our EMEA team, he has recently relocated to California to work for DevTech Americas.  Fenton is an expert in all the AutoCAD APIs, AutoCAD OEM, RealDWG and Revit. He particularly enjoys travelling to evangelise the APIs he support at our annual Developer Days conferences. 

 

Before joining Autodesk, Fenton worked for an ADN partner developing ObjectARX applications in the Civil and Structural Engineering domain.

Page 3: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DAutodesk Developer Network

Access to almost all Autodesk software and SDK’s Including early access to Beta software

Members-only website with 1000s of technical articles Unlimited technical support Product direction through conferences Marketing benefits

Exposure on autodesk.com Promotional opportunities

1 to 3 free API training classes Based on user level

www.autodesk.com/joinadn

Page 4: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DDevLab

San Francisco, USA Feb 1-5, 2010 Farnborough, UK Feb 8-12, 2010 Munich, Germany June 7-11, 2010 Other countries TBD

www.autodesk.com/apitraining > Schedule

[email protected]

Page 5: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DAgenda

History of 3D in AutoCADCreating 3D GeometryCreating Advanced 3D Geometry

Logical - Unions, Subtracts and IntersectGeometrical - Extrusions, Lofts, Revolves and Sweeps

Freeform ModelingExtract the 3D DataQuestions

Page 6: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DHistory of 3D in AutoCADTechnology Information

Version 2.1 • Z Coordinate

R11 AutoCAD Modeling Extension (AME) • ADS API

R13 ACIS - Licensed Technology from Spatial Industry Standard SAT Output

2004 ASM – Autodesk Solid Modeler Derived from ACIS Autodesk Standard

Amodeler – Autodesk Modeler Focused Surface Modeler used by ADT/AutoCAD Architecture

Page 7: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating 3D Geometry

Easy to Create Basic 3D Geometry – Solid Types Known as Primitive Solids Commands

Box, Wedge, Cone, Cylinder, Sphere, Pyramid, Torus See AutoCAD Help Create 3D Solid Primitives

Using AutoCAD

Page 8: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating 3D Geometry

You can easily modify Primitive Solids Via the Properties Window Via Grips Basic Properties

Keeps Shape

Using AutoCAD

Page 9: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating 3D Geometry

Advanced modification is possible Sub-Object Selection (CTRL+Left Click)

Faces Edges Vertices

Using AutoCAD

Page 10: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating 3D Geometry

.NETSolid3d.Create*

CreateBox, CreateSphere, CreateTorus, etc

ObjectARXAcDb3dSolid::create*

createBox, CreateSphere, CreateTorus , etc

VBA or Visual LISP Active XAcad3dSolid.Add*

AddBox, AddSphere, AddTorus, etcLISP

Command Line methodActiveX LISP (using the same API as VBA)

Using APIs

Page 11: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating 3D Geometry

Demo “Basic 3D”

DemonstratingVisual Studio 2008

Using Solid3d class

Using C# .NET

Show how...

Page 12: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Synthesizing Solids Union Subtract Intersect

Using Logical Operations

Page 13: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Synthesizing Solids Union

Combine

Using Logical Operations

Page 14: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Synthesizing Solids Subtract

Using Logical Operations

Page 15: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Synthesizing Solids Intersect

Common

Using Logical Operations

Page 16: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating 3D Geometry

Demo “Logical 3D”

DemonstratingLogical Solid3D Operations

Union

Subtract

Intersect

Using C# .NET

Show how...

Page 17: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Extrude, Loft, Revolve and Sweep - Surface (and Solid) Types

Using AutoCAD

Page 18: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

You can modify these types Via the Properties Window Via Grips Construction Geometry Only

Using AutoCAD

Page 19: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Advanced modification not possible

Sub-Object Selection (CTRL+Left Click)Faces EdgesVertices

Using AutoCAD

Page 20: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

.NETExtrude

SweepOptions / SweepOptionsBuilder

ExtrudedSurface.CreateExtrudedSurface

SweepSweepOptions / SweepOptionsBuilder

SweptSurface.CreateSweptSurface

Loft LoftOptions / LoftOptionsBuilder

Solid3d.CreateLoftedSolid

RevolveRevolveOptions / RevolveOptionsBuilder

Solid3d.CreateRevolvedSolid

Using APIs

Surface Type

Surface Type

Solid Type

Solid Type

Page 21: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

ObjectARXExtrude

AcDbSweepOptions

AcDbExtrudedSurface::createExtrudedSurface

SweepAcDbSweepOptions

AcDbSweptSurface::createSweptSurface

Loft AcDbLoftOptions

AcDb3dSolid::createLoftedSolid

RevolveAcDbRevolveOptions

AcDb3dSolid::createRevolvedSolid

Using APIs

Surface Type

Surface Type

Solid Type

Solid Type

Page 22: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

VBA or Visual LISP ActiveXExtrude

AddExtrudedSolid

SweepSweptSurface – Read Only

Loft LoftedSurface – Read Only

RevolveAddRevolvedSolid

Using APIs

Surface Type

Surface Type

Solid Type

Solid Type

Page 23: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DCreating Advanced 3D Geometry

Demo “Advanced 3D”

DemonstratingExtrudes

Lofts

Sweeps

Revolves

Using C# .NET

Show how...

Page 24: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DFreeform Modeling

New features RequiredUnique Style of Modeling

Takes 3D Modeling to the next level!

Quicker and easierSpecial Gadgets

ASM Solids Are Very PowerfulGreat at EverythingWhat about DWG compatibility?

Face limitation (32k)

Realisations

Page 25: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DFreeform Modeling

New SubDMesh entityUses Catmull-Clark algorithmEdge and surface creasingNo 32k face limit

New API

API Available in ObjectARX – AcDbSubDMesh.NET - SubDMesh

Page 26: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DFreeform Modeling

A subdivision surface is a smooth surface created from a coarse mesh.

The smooth surface is calculated by iteratively subdividing each polygonal face into smaller faces that better approximate the smooth surface.

See http://en.wikipedia.org/wiki/Subdivision_surface

What is SubD

Page 27: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DFreeform Modeling

Demo “Freeform Modeling”

DemonstratingFreeform Modeling SDK Sample

Create from primitive Create from ASM solid

Applying creasesTransform mesh elements

Convert to ASM solidUsing VB.NET

Show how...

Page 28: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DExtract the 3D Data

Boundary Representation BrepObjectARX and .NET Solids Regions Bodies Surfaces*

Represents shapes using Limits Limits defined using hierarchically connected objects

Otherwise known as Topology

Introducing Brep

Page 29: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3D

Boundaries gives Faces, Faces gives Edges

Geometric information are associated with three basic entities ( Surfacesfaces, Curvesedges, PointsVertices )

Extract the 3D DataHow Brep works

Page 30: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DExtract the 3D Data

Demo “Brep”

DemonstratingVisual Studio 2008

Extracting 3D Data from a Solid

Using C# .NET

Show how...

Page 31: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3DZero to 3D

SDK and Sampleswww.objectarx.com

Developer Centerwww.autodesk.com/developautocad

Discussion Groupshttp://discussion.autodesk.com

API Training Classeswww.autodesk.com/apitraining

Kean’s Through the Interface Blog http://blogs.autodesk.com/through-the-interface

Autodesk Developer Networkwww.autodesk.com/joinadn

Further reading...

Page 32: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

Zero to 3D in 60 Minutes

Fenton WebbSenior Developer Evangelist

Thank you – Any questions?

Page 33: Zero to 3D in 60 Minutes Fenton Webb Senior Developer Evangelist.

3D