Skip to main content

A small library for visible 3D shapes

Project description

Shape4D

About Shape4D

Shape4D is a small library for one to create a 3D body in a scripting way, which is visible on demand during scripting.

中文帮助点击此处 下一章

Core Features

  • Shapes: Point, segment and Polygon.

  • Visual Functions : a.plot(), a.add_plot(b), a.show().

  • Creating a polyhedron by changing shapes to desire positions.

  • When a 3D Polygon intercepts a 3D line, a point will be visble on the polygon, but no line is visible, due to the limitation in shading of matplotlib.

  • __contains__, overloaded for point in segment and polygon.

  • __hash__ and __eq__, overloaded for point, segment and polygon.

  • __neg__ overloaded for polygon.

The strategy to make entities visible is learnt from pyny3d that is specific for convex polygons.

At present, the engine is matplotlib, not ready for others, such as open3D, sketchup, abd Blender.

Requirements

  • Python 3

  • Matplotlib is needed.

Documentation

To be continued.

Installation

pip install Shape4D

Usage

See Documentations

Change Log

changelog.md

License

This program is free software: you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation, either version 3 of the License, or

(at your option) any later version.



This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

GNU General Public License for more details.



You should have received a copy of the GNU General Public License

along with this program.  If not, see <http://www.gnu.org/licenses/>.

Contact

heliqun@ustc.edu.cn

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Shape4D-0.1.7.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Shape4D-0.1.7-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file Shape4D-0.1.7.tar.gz.

File metadata

  • Download URL: Shape4D-0.1.7.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

File hashes

Hashes for Shape4D-0.1.7.tar.gz
Algorithm Hash digest
SHA256 6eecb76bb3c353949e5056cef4ccce1834b6b870db220eb699e91b9b28250abb
MD5 9df2e5780c91896793b3a9e4b6b2c8d6
BLAKE2b-256 19aa3765f0c15f022855b7032847f7c5808a6f294a79a46703780ea914735a25

See more details on using hashes here.

File details

Details for the file Shape4D-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: Shape4D-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

File hashes

Hashes for Shape4D-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f144a64f261e362b3f770899950d6efffa7a147fdf5f1054161f100da0ae7b5a
MD5 dc4dc613ac8591824b7ccb125fd1af50
BLAKE2b-256 6635c8ac9c5303d7b254a55e21bcd05f360019a7634a80c99e40db556c991d30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page