Skip to content

Perl Module to Create and Manipulate 3D Vertices and Meshes and output for 3D printing

License

Notifications You must be signed in to change notification settings

pryrt/CAD-Mesh3D

Repository files navigation

NAME

CAD::Mesh3D - Create and Manipulate 3D Vertexes and Meshes and output for 3D printing

SYNOPSIS

use CAD::Mesh3D qw(+STL :create :formats);
my $vect = createVertex();
my $tri  = createFacet($v1, $v2, $v3);
my $mesh = createMesh();
$mesh->addToMesh($tri);
...
$mesh->output(STL => $filehandle_or_filename, $ascii_or_binary);

DESCRIPTION

A framework to create and manipulate 3D vertexes and meshes, suitable for generating STL files (or other similar formats) for 3D printing.

A Mesh is the container for the surface of the shape or object being generated. The surface is broken down into locally-flat pieces known as Facets. Each Facet is a triangle made from three points, called Vertexes (also spelled as vertices). Each Vertex is made up of three x, y, and z coordinates, which are just floating-point values to represent the position in 3D space.

TODO

  • Add more math for Vertexes and Facets, as new functions are identified as being useful.

AUTHOR

Peter C. Jones <petercj AT cpan DOT org>

issues github ci status appveyor build status Coverage Status

COPYRIGHT

Copyright (C) 2017,2018,2019,2020,2021,2024 Peter C. Jones

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

About

Perl Module to Create and Manipulate 3D Vertices and Meshes and output for 3D printing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages