Advanced 3D MathAdvanced Source Code

BM2GL – Robotic Arm 2 Degrees of Freedom in C++ Visual Sudio

Introduction

When some friends saw BM5GL, they asked me to make a more simplified version to better understand how the 3D library worked. This is how the idea of ​​making a mechanical arm with only 2 degrees of freedom and only in a wireframe structure was born, which I called BM2GL. .

Technical aspects

A mechanical arm with 2 degrees of freedom is drawn in 3D, controlled by buttons in the dialog box.

This example uses 2 subsystems: Base and arm. Each one can rotate independently.

The solid structure used is of the wireframe type.

The CTransformaciones is used which defines the 3D matrix transformations and from 3D to 2D.

The CSubsistema class derived from CTransformations is used to define the 3D geometry of each subsystem that makes up the 3D object, in this case the robotic arm.

BM2GL (Developed in Visual C++)

You can download the software executable for FREE from here:

Get the SOURCE CODE of BM2GL and increase your programming experience:

Source code available in Visual C++ 2017 project.

  • Visual C++ Source Code:
    • How to use the MFC CDialog class to put common controls.
    • It has compilation projects defined for 32 bits and 64 bits.
    • It uses the CTransformations class that defines 3D and 3D to 2D matrix transformations.
    • The CSubsystem class derived from Transformations is used to define the 3D geometry of each subsystem that composes the 3D object, in this case the robotic arm.

Developed by:

JOSE LUIS DE LA CRUZ LAZARO

YACSHA – Software & Desing, since 1999, Lima – Perú
The World of Chaos – EL MUNDO DEL CAOS – Unlimited Programming

HISTORY

Version 2 – 06-V-2024

  • Porting to VC++ 2017.
  • Added a new icon to the project
  • Add credits and version history
  • Translate GUI from spanish to english
  • Warnings due to lack of static_cast are corrected

Version 1 – 14-II-2001

  • First version developed by Yacsha for VC++ 6.0

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button