Git Product home page Git Product logo

anysection's Introduction

AnySection is a powerful web tool for calculating phisical and mechanical properties of standard geometry bars.

Can be used by designers and engineers as a quick estimation tool, as well as by students as a geometry tool, or simply to find material data from the database.

License

This product is intended for digital use only. It is prohibited to copy or distribute the whole or part of it, unless accorded between the parts.

Usage

The basics

Choose the shape you want to calculate features by clicking the corresponding image or name. You'll be redirected to the dedicated page where you can insert available data on the Dimensional data and Material data tables (blue tables).

Wether results will be available while inserting data, they will show in the bottom tables (orange tables). e.g.: If you're looking for the area of a rectangle as the base and the height will be filled in you'll have the result otherwise the field will be empty.

You can use the arrows on the right side of any input field to raise or decrease it by 1 unit, for your convenience. For a quicker input process, it is suggested to use the Tab key to jump on the next input field.

Results updates trigger whenever one of these events occur:

  • Click release on input arrows
  • Pressing Enter key on an input field
  • Changing field with Tab key
  • Changing material selecting it from the provided list
  • Clicking anywhere on the page, after editing of a number, deselecting the input field
  • Clicking on dimension swap button

All texts and numbers on the pages are able to be copied and pasted anywhere you need.

A button for getting back to the main page is provided on every profile page, directly below its title.

Equation page

The equations page is intuitive to use: clicking the shape from the list on the left makes the math for that shape visible. Some other extra features from MathJax library are also available when right-clicking on a equation, like the ability of zooming the expression or copying the LaTex string for further use.

Expression Editor

The core new feature from version 1.4 is the Expression Editor. This editor allows the user to quickly calculate the result of a mathematical expression and use it as a data input for the shape calculation process.

Any numerical input field from the Dimensional data and Material data tables (blue ones) can be used as targets for the expression calculation, in any of the shape pages. The Editor can be opened by pressing the "=" key on the keyboard while the related numerical input is selected.

A popup with the Editor itself will appear over the content, showing:

  • the variable selected to be the target for the result,
  • an empty text field for the expression,
  • the result preview of the expression,
  • an icon indicating if any errors are detected in the expression

Start typing the math expression in the text field and the preview will be updated in real time. Characters allowed for a correct calculation are digits from 0 to 9 and . + - * / ( ). Use the dot "." as the decimal separator.

The editor can be left anytime by clicking the top-right X icon or pressing "Esc" on the keyboard and no action will be performed.

If the result of the typed expression is valid (green check icon after the result preview) it can be pasted in the related data input of the shape page. To use it, click the "Use result" button on the bottom of the popup, or type "Enter" on the keyboard when the expression field is selected.

The result will be pasted into the table and the popup disappears. This can be used multiple times in any page.

Known bugs and issues

Ellipse perimeter not exact

The formula used to get the perimeter is not an exact calculation, however is roughly the best approximation available. Notice that the more "squished" the ellipse, the more imprecise the result. The formula has been updated to a better one - the actual one - in version 1.2 and the approximation is totally suitable for the intended use of this tool. This might mean that it won't be upgraded to an even more precise calculation (infinite series are not infinite in programming).

Truncated material names

When a material is selected from the dropdown menu, often the name overflows the space available. The issue will be solved in a future release.

Expression Editor

When the Editor is opened trough the "=" key, the expression text input is meant to be focused automatically. This should avoid moving hands to get back to the mouse and to the keyboard again, but something didn't work as expected.

If something is typed in the expression input field, if all characters in it are deleted, the result will be marked as "undefined". This result can also be pasted into the related data input, but nothing will happen as they're numerical inputs.

When confirming the result of the editor to be pasted in the data, results are not calculated with the new number. The page starts calculating again when another data is entered by directly typing the number, the ìn pressing Enter, Tab or clicking away.

All these issues will be fixed in a future patch.

Next improvements to be added

Note: The order of this list might not match the order these features will be added through next versions.

  • More materials in the database
  • Materials divided in groups, in order to filter the available ones
  • Result finder (let the program change an input to return a specific result)
  • Limiting inputs to generate valid geometry (e.g. a tube D=10, t=6 is not valid)
  • Canvas to see the shape change dynamically while typing and changing data
  • Shape will be downloadable in many file formats, to speed up engineers' work
  • Dinamically change data units to type/see inputs/results in a different scale

Versions log

v1.4

Release date: October 22, 2021

Work Time: 8h

  • Added the Expression Editor, where math expressions can be calculated and the result can be pasted as a data input
  • Some bugs related to the development of the Editor are still unfixed, but anyway it can be used correctly

v1.3

Release date: July 25, 2021

Work Time: 11h 30min

  • Footer has been changed in a sidebar on the right
  • Added equations page showing formulas and symbols used in the tool
  • Bugs can be reported via Github or Google modules, from the "Credits" popup

v1.2

Release date: April 25, 2021

Work Time: 45min

  • Limited numerical inputs to positive values
  • Improved precision for ellipses' perimeter

v1.1

Release date: April 18, 2021

Work Time: 1h

  • Fixed issue #1 - Favicon not working.
  • Added a dimension swapper button for rectangles and ellipses. Click it to swap width and height rapidly.

v1.0

Release date: March 27, 2021

Work Time: unknown, project directory created on Jan 14, 2021

First release composed by an index page and 13 standard shapes to choose. Tables on every profile page for inserting shape data and material data or choose from presetted materials.

Team & Credits

Team

  • Nazzareno Pasqual @TerribleCoding (project owner and main developer)
  • Riccardo Pellegrin @Pelle96 (graphics design)

Libraries

Media

anysection's People

Contributors

terriblecoding avatar

Stargazers

 avatar

Watchers

 avatar

anysection's Issues

"undefined" result in Expression Editor

If something is typed in the expression input field, if all characters in it are deleted, the result will be marked as "undefined".
This result can also be pasted into the related data input, but nothing will happen as they're numerical inputs.

Icons missing

In some cases, icons can't be loaded by the browser, causing an incorrect layout of some components.

Expression Editor text field not focusing on open

When the Editor is opened trough the "=" key, the expression text input is meant to be focused automatically.
This should avoid moving hands to get back to the mouse and to the keyboard again, but something didn't work as expected.

Results not updating when the Expression Editor pastes a result

When confirming the result of the editor to be pasted in the data, results are not calculated with the new number.
The page starts calculating again when another data is entered by directly typing the number, the ìn pressing Enter, Tab or clicking away.

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.