Skip to main content

dconvexhull

An educational Python package that provides a simple API for computing the convex hull of a 2D point set.
This package wraps a C++ module for efficient computation and offers Python-friendly interfaces for students, researchers, and developers.


✨ Features

  • Compute convex hulls for 2D point sets.
  • Input formats:
    • Python 2D lists ([[x1, y1], [x2, y2], ...])
    • CSV files containing 2D coordinates
  • Output:
    • A PDF file that visualizes the convex hull and highlights the vertices.
  • Educational purpose: designed to help Python users understand convex hull algorithms and visualization workflows.
  • First edition: only supports 2D data.

📦 Installation

You can install the package directly from PyPI (after publishing):

pip install dconvexhull

Or install locally for development:

git clone https://github.com/yourusername/dconvexhull.git
cd dconvexhull
pip install .

🚀 USAGE

After installation, you can import and use the package as follows: Example 1: Using a Python 2D list

from dconvexhull import convxHull
# Define a set of points
ptc = [[0, 0], [1, 1], [2, 0], [2, 2], [0, 2]]

# Draw convex hull from array input
convxHull.draw_convxHull_from_arr(ptc)

Example 2: Using a CSV fil

from dconvexhull import operations
operations.compute_convex_hull("points.csv")

This will generate a PDF file () that shows the convex hull polygon and its vertices.


📖 Educational Notes

• Convex Hull: The smallest convex polygon that contains all points in a set. • This package demonstrates how Python can interface with C++ modules for computational geometry. • Visualization is handled with matplotlib, making results easy to interpret for students and researchers.


⚙️ Dependencies

  • matplotlib (for visualization and PDF export)

🧑‍🏫 Target Audience

• Python learners exploring computational geometry • Students studying convex hull algorithms • Developers interested in Python–C++ integration

Metadata

Release files for dconvexhull 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dconvexhull 0.1.3
File Size Uploaded
dconvexhull-0.1.3.tar.gz 100.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dconvexhull 0.1.3
File Interpreter ABI Platform
dconvexhull-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 199.0 kB

Release files / dconvexhull-0.1.3.tar.gz

Download URL dconvexhull-0.1.3.tar.gz
Size 100.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3254b9f8290733218c2077259023aec70d9890609cf19ba1aef1cb8656e36cf7
BLAKE2b-256 checksum
How to use checksums
919f2e65af12a7bc7a7efd05880227f875b70732c306570b4bf15561a241bda4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / dconvexhull-0.1.3-py3-none-any.whl

Download URL dconvexhull-0.1.3-py3-none-any.whl
Size 98.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41202ee0be8beb99a89e1da5a505dce4f25384f171fc2aef8ef9dcf9b141aac5
BLAKE2b-256 checksum
How to use checksums
8c550ec0c6194ccfb1760f9acb699c342bee447a2840553521da9ab0b6f6763a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page