Skip to content

oo1605/StpToStl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

StpToStl an utility to Convert ISO 10303 STEP file (AP203, AP214) (.stp) to StereoLithography file (.stl)

Dependencies

OpenCascade

Compiling

  1. Get the source and compile Open CASCADE library OpenCascade
  2. Get the source StpToStl
..
oce
StpToStl
  1. Run StpToStl\get_libs.bat to get the necessary dll libraries
  2. Open Solution File StpToStl.sln in Microsoft Visual Studio 2017

Example of using in .NET (C#)

public static class JStpToStl
{

  [DllImport(@"Libs_x32\StpToStl.dll", EntryPoint = "StpToStlW", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
  static extern int StpToStl(string in_file, string out_file, double deflection = 0, bool ascii = false);

  ///****************************************************************************
  /// <summary>
  /// Convert ISO 10303 STEP file (AP203, AP214) (.stp) to StereoLithography file (.stl)
  /// </summary>
  /// <param name="in_file">Input file name</param>
  /// <param name="out_file">Output file name</param>
  /// <param name="deflection">Linear deflection, default value is 0.001</param>
  /// <param name="ascii">The generated STL file is an ASCII file</param>
  /// <returns></returns>
  public static int StepToStl(string in_file, string out_file, double deflection = 0, bool ascii = false)
  {
    return StpToStl(in_file, out_file, deflection, ascii);
  }

}

About

StpToStl an utility to Convert ISO 10303 STEP file (AP203, AP214) (.stp) to StereoLithography file (.stl)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 96.0%
  • Batchfile 4.0%