STL to DSP CONVERSION Glen Mullineux September 2008.

Slides:



Advertisements
Similar presentations
Importing TEM Data into IX1D v 3 using TEM2IX1D– A Tutorial © 2012 Interpex Limited All rights reserved Version 1.0.
Advertisements

Introduction to Microsoft Word 2007 Access to Microsoft Word 2007 differs greatly from versions that preceded it, mostly in the way functions across the.
Computer Graphics- SCC 342
The University of Tennessee
Why ROOT?. ROOT ROOT: is an object_oriented frame work aimed at solving the data analysis challenges of high energy physics Object _oriented: by encapsulation,
II.2 Four Factors in Eight Runs Introduction Introduction Confounding Confounding –Confounding/Aliasing –Alias Structure Examples and Exercises Examples.
The Web Warrior Guide to Web Design Technologies
ES 314 Lecture 2 Sep 1 Summary of lecture 1: course overview intro to matlab sections of Chapters 2 and 3.
Chapter 10—Creating Presentations
Visualisation of head.txt. Data capture Data for the head figure was captured by a laser scanner. The object is mounted on a turntable, and illuminated.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Creating A model by Brooklyn Gose
1 Section 9.1 Introduction to Trees. 2 Tree terminology Tree: a connected, undirected graph that contains no simple circuits –must be a simple graph:
Microsoft Access 2003 Introduction To Microsoft Access 2003.
CSE325 Computer Science and Sculpture Prof. George Hart.
ENGR 111 Class 5.2a AutoCAD Basics Thursday, September 30 th, 2004.
Vectors Sections 6.6.
Web Page Development Identify elements of a Web Page Start Notepad
Guide To UNIX Using Linux Third Edition
Solid Modeling SolidWorks Layout 2D Sketching
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Programming For Nuclear Engineers Lecture 12 MATLAB (3) 1.
Shell Scripting Awk (part1) Awk Programming Language standard unix language that is geared for text processing and creating formatted reports but it.
Time-history seismic analysis with SAP2000 A step-by-step guide for BEng/MEng/MSc students familiarizing with this piece of software.
CS 445 / 645 Introduction to Computer Graphics Lecture 18 Shading Shading.
COMP 175: Computer Graphics March 24, 2015
Ch. 10 Vector Integral Calculus.
© The McGraw-Hill Companies, 2006 Chapter 4 Implementing methods.
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Data Presentation & Graphing Introduction to Mechanical Engineering The University of Texas-Pan American College of Science and Engineering.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 5 Working with Images Starting Out with Games & Graphics in.
Mechanics of Machines Dr. Mohammad Kilani Class 3 Position Analysis.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Computer Programming 2 Lab(1) I.Fatimah Alzahrani.
ME6104: CAD. Module 32. ME6104: CAD. Module 32. Systems Realization Laboratory Module 32 CAD-RP Transition ME 6104.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
PLACING AND LINKING GRAPHICS
Solid Modeling Ref. Mantyla. Introduction Aim of modeling: The search of a media of communication.
Mesh data structure & file format
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
BA271 Week 6 Lecture Dave Sullivan. Goal for today… Status Report – Review where we are … Status Report – Review where we are … Begin learning about Microsoft.
1 Chapter 3 – Examples The examples from chapter 3, combining the data types, variables, expressions, assignments, functions and methods with Windows controls.
From Baan to Excel, Word, PDF, HTML, XML & Notepad in one click! B2Win 6.0 – The Stand Alone Version.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Scion Macros How to make macros for Scion The Fast and Easy Guide.
What is an STL file To get your model printed you will need to send us an stl file. This is a file format created to take the complexity out of a CAD model.
Transparency 8 Click the mouse button or press the Space Bar to display the answers.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Train Body The next series of slides will guide you through the construction of the train body. Start a new drawing and save it as Train Body.
PhotoShop Creative Suite 3 Chapter 1 The Work Area.
CHAPTER 9 File Storage Shared Preferences SQLite.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
Making a 24hr Timer.
Computer graphics 3D solid modeling.
Extracting the Topology Information from STL Model in order to Generate Cross-sectional Loops Efficiently Islam Md. Olioul*, Ho Chan Kim*† Department.
Click here to advance to the next slide.
Java Course Review.
ADE EDIS READ & Optimizer TRAINING Colorado Department of Education
Excel in M.E. –Using add-ins
MATLAB: Structures and File I/O
Lesson 1 Learning Objectives
Count Controlled Loops (Nested)
Cmdlets “Command-lets”
Algorithms Practice Topics In-Class Project: Tip Calculator
II.2 Four Factors in Eight Runs
Presentation transcript:

STL to DSP CONVERSION Glen Mullineux September 2008

INTRODUCTION These notes illustrate how to move from a Solid Edge model to a facetted model that can be used with the Constraint Modeller. The approach is to make use of the STL output facility that is available with Solid Edge. The STL output can be an ASCII file which essentially contains a collection of triangles which form the outer surface of the part. A conversion program, STL2DSP, is used to convert the file into the display (DSP) format used with the Constraint Modeller. As with any DSP file, it can be read into the Constraint Modeller and associated with a model space. The notes also give the form of commands for a DSP file.

STAGE 1: CREATE THE SOLID EDGE MODEL This is done in any convenient way. It is probably best to arrange that the origin and coordinate system are in the position and orientation required for the Constraint Modeller. This is likely to be that determined by the local model space coordinate system.

STAGE 2: SAVE AS AN STL FILE The SAVE command in Solid Edge has the option to save as an STL file. Select the “Save as type” and then press “Options”..... Choose STL Options

STAGE 3: SET THE OPTIONS The “Options” within the STL save command in Solid Edge need to be set along the lines shown here. Select the units as “millimetres”, and the file as “ASCII”. These settings seem to be remembered for future saves. Units File type

STAGE 4: CONVERT TO DSP FORMAT There is a stand-alone program to perform the conversion to the display format of the Constraint Modeller. This is called STL2DSP. To use it, give the following command (at DOS or UNIX level): stl2dsp This is assumes that the input file has the file extension “stl” and creates an output file of the same name with the extension “dsp”.

STAGE 5: INCORPORATE INTO CONSTRAINT MODELLER The following lines give the form of commands required within the Constraint Modeller macro in order to read in a DSP file and associate the “object” with a model space. dec geom dsp2; dec mod2 m1, m2, m2a; m1 = mod2( 0,0,0 ); m2 = mod2( 0,0,0, m1 ); m2a = mod3( 0,0,0, 0,0,0, m2 ); dsp2 = readdsp( "pusher_coupler2.dsp" ); dsp2:m = &m2a; ccol( green(), dsp2 ); Declarations Set up model spaces Read DSP file Assign to model space NOTE: In the example, the DSP object represents the coupler of a four bar mechanism. This is associated with model space m2. The DSP object is embedded into a space called m2a which itself lies in m2. It could be embedded directly into m2. The only reason to use m2a is if one wanted to move the DSP object relative to m2.

IMAGES of coupler component (green) within the full model in the Constraint Modeller

solid ascii facet normal e e e+000 outer loop vertex e e e+001 vertex e e e+001 vertex e e e+001 endloop endfacet facet normal e e e+000 outer loop vertex e e e+001 vertex e e e+001 vertex e e e+001 endloop endfacet facet normal e e e-018 outer loop vertex e e e+001 vertex e e e+001 vertex e e e+001 endloop endfacet endsolid Form of typical STL file (ASCII output) from Solid Edge

$ File: pusher_coupler2.stl $ Date: Wed Sep 3 10:48: $ Created by: STL2DSP - Version September $ nfacet = 2220 $ End of file Form of corresponding DSP file

Format for DSP files The DSP file consists of a number of plotting commands. Each command is an integer followed by three real numbers. The commands are as follows. 1 x y zNode (point) at (x,y,z) 2 x y zMove to (x,y,z) 3 x y zPlot (straight line) to (x,y,z) 4 x y zVertex of triangular facet at (x,y,z) 5 l m nOutward normal at vertex in direction (l,m,n) 11 r g bChange current foreground colour to (r,g,b) 12 r g bChange current background colour to (r,g,b) Notes: The (r,g,b) components should lie between 0 and 1 Once three vertex commands have been read, it is assumed the facet is complete The dollar sign is used to denote a comment