Blender  V3.3
Classes | Functions | Variables
blender::io::stl Namespace Reference

Classes

class  StringBuffer
 
struct  STLBinaryTriangle
 
class  Triangle
 
class  STLMeshHelper
 

Functions

void stl_import_report_error (FILE *file)
 
void importer_main (bContext *C, const STLImportParams &import_params)
 
void importer_main (Main *bmain, Scene *scene, ViewLayer *view_layer, const STLImportParams &import_params)
 
static void parse_float3 (StringBuffer &buf, float out[3])
 
Meshread_stl_ascii (const char *filepath, Main *bmain, char *mesh_name, bool use_custom_normals)
 
Meshread_stl_binary (FILE *file, Main *bmain, char *mesh_name, bool use_custom_normals)
 

Variables

const size_t BINARY_HEADER_SIZE = 80
 
const size_t BINARY_STRIDE = 12 * 4 + 2
 

Detailed Description

ASCII STL spec:

solid name
  facet normal ni nj nk
    outer loop
      vertex v1x v1y v1z
      vertex v2x v2y v2z
      vertex v3x v3y v3z
    endloop
  endfacet
  ...
endsolid name

Function Documentation

◆ importer_main() [1/2]

void blender::io::stl::importer_main ( bContext C,
const STLImportParams import_params 
)

Definition at line 43 of file stl_import.cc.

References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), and scene.

Referenced by STL_import().

◆ importer_main() [2/2]

void blender::io::stl::importer_main ( Main bmain,
Scene scene,
ViewLayer view_layer,
const STLImportParams import_params 
)

◆ parse_float3()

static void blender::io::stl::parse_float3 ( StringBuffer buf,
float  out[3] 
)
inlinestatic

◆ read_stl_ascii()

Mesh * blender::io::stl::read_stl_ascii ( const char *  filepath,
Main bmain,
char *  mesh_name,
bool  use_custom_normals 
)

◆ read_stl_binary()

Mesh * blender::io::stl::read_stl_binary ( FILE *  file,
Main bmain,
char *  mesh_name,
bool  use_custom_normals 
)

◆ stl_import_report_error()

void blender::io::stl::stl_import_report_error ( FILE *  file)

Definition at line 32 of file stl_import.cc.

References file.

Referenced by importer_main(), and read_stl_binary().

Variable Documentation

◆ BINARY_HEADER_SIZE

const size_t blender::io::stl::BINARY_HEADER_SIZE = 80

Definition at line 26 of file stl_import_binary_reader.hh.

Referenced by importer_main(), and read_stl_binary().

◆ BINARY_STRIDE

const size_t blender::io::stl::BINARY_STRIDE = 12 * 4 + 2

Definition at line 27 of file stl_import_binary_reader.hh.

Referenced by importer_main().