Coder Social home page Coder Social logo

cylinder_section_calculator's Introduction

Cylinder section calculator

This tool allows to visualize the section shape of a cylinder according to the section angle.

Section shapes:

Four shapes of section can be found:

Case 1: circle shape

Explaination:

The section angle is 0°, the cut is perpendicular to the length of the cylinder. The section shape is then the same as the cylinder base:

Case 1

The curve() function from Cylinder() object is used with semi_minor_axis = semi_major_axis = diameter / 2.

Interface:

interface 1

Case 2: ellipse shape

Explaination:

The section angle is superior to 0°, the cut is made before the cylinder base. The section shape is then an ellipse with a semi_minor_axis equal to diameter/2:

Case 2

The curve() function from Cylinder() object is used with the relations mentionned above. This is performed with the ellipse_eq() function of Cylinder() object.

Interface:

interface 2

Case 3: truncated ellipse shape

Explaination:

The section angle is superior to 0°, the cut is made after and intercept the cylinder base. The section shape is then an ellipse truncated by each cylinder base:

Case 3

The curve() function from Cylinder() object is used between each vertex following axis x, vertex are linked by a straight line following axis y. This is performed with the trunc_ellipse_eq() function of Cylinder() object.

Interface:

interface 3

Case 4: rectangle shape

Explaination:

The section angle is 90°, the cut is parallel to the length of the cylinder. The section shape is then a rectangle with width = diameter and length = cylinder length:

Case 4

The vertexes are directly linked together with the rectangle_eq() function of Cylinder() object.

Interface:

interface 4

cylinder_section_calculator's People

Contributors

pierre-cng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.