https://github.com/pryrt/cad-mesh3d
Perl Module to Create and Manipulate 3D Vertices and Meshes and output for 3D printing
https://github.com/pryrt/cad-mesh3d
Last synced: 9 months ago
JSON representation
Perl Module to Create and Manipulate 3D Vertices and Meshes and output for 3D printing
- Host: GitHub
- URL: https://github.com/pryrt/cad-mesh3d
- Owner: pryrt
- License: other
- Created: 2018-05-09T13:52:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T16:02:25.000Z (about 2 years ago)
- Last Synced: 2025-03-06T10:56:00.249Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 189 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
# 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 ``
# 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/](http://dev.perl.org/licenses/) for more information.