Case Study: Porting a set of point cloud
and triangle mesh processing C++
libraries to 64-bit platform
Author: Evgeniy Ryzhkov

Date: 15.01.2009


Abstract
Italian company E.G.S. S.r.l. deals with development of solutions in the field of simulation of triangle
mesh-based 3D objects.


Introduction
Italian company E.G.S. S.r.l. deals with development of solutions in the field of simulation of triangle
mesh-based 3D objects.




For this purpose it uses its own component library Leios Components. When company E.G.S. S.r.l
wanted to issue a 64-bit version of its components it turned to OOO "Program Verification Systems" as it
is a company specializing in the field of development of code analyzers for 64-bit applications and
parallel ones.
Leios Components library




Leios Components library is a set of different libraries:

    1. Leios Point Cloud and Triangular Mesh API, LMLib.
    2. Leios Surface Fitting Library.
    3. Leios Sharp Edges Library.

The total volume of source code is 13 Mb (440 000 code lines), the solution consists of several dozens
projects. It's obvious that manual porting of such amount to a 64-bit system is rather difficult, especially
if you take into account the complexity of mathematical algorithms.

In order to learn the code type which the library contains one should just check main capacities of three
mentioned above components.


Leios Point Cloud and Triangular Mesh API
    •   Point cloud and triangle mesh import/export (ASCII, STL, PLY, OBJ, VRML formats and native
        Leios RVE format.
    •   Mesh data acquisition.
    •   Elementary mesh editing operations.
    •   Point cloud and triangle mesh selection operations.
    •   Point cloud filtering, noise cleaning, smoothing, offset.
•   Point cloud triangulation.
•   Triangle mesh healing, hole filling, smoothing.




•   Triangle mesh decimation and refinement.
•   Cross sections of a triangle mesh by a plane, mesh subdivision by a plane.
•   Fitting mesh parts to plane, cylinder, or sphere surfaces.




•   Merging several point clouds or triangle meshes into a single object.
•   Point cloud and triangle mesh OpenGL visualization.
•   Registration of triangle meshes or point clouds.




•   Constrained "2.5d" triangulation procedures.
•   Point Cloud triangulation within given external contour.
•   "out-of-core" implementation to edit big point clouds in 32bit environment.
•   Triangulation between two polylines.
•   Procedure yielding mesh self-intersections.
•   Procedure yielding intersection polylines of two meshes.
   •   Polyline smoothing and decimation procedures.
   •   Procedure yielding mesh cross section through two points on the mesh.
   •   Import-Export routines with double-precision center-of-mass coordinates.
   •   Automatic scan merging procedure.


Leios Surface Fitting Library
Extension library for managing the untrimmed NURBS surfaces fitting using

   •   Specification of the sets of 4 bound limits on the triangle meshes.
   •   Automatic surfaces fitting with automatic distribution of the nurbs patches.
Leios Sharp Edges Library
Extension library for

    •   Automatic extraction of the fillets curves (bounds curves, central curve on the mesh, theoretical
        sharp edge curves) on the triangle meshes models
    •   Segmentation of the triangles meshes into areas without fillets that can be fitted with
        untrimmed NURBS surfaces.
The necessity of library components migration to a 64-bit platform
E.G.S. S.r.l. company has been concerned with solutions development since 2002 when its first office
was opened in Italy. Since the first steps of its work the developments has been directed to high-
performance desktop systems.

Minimal PC with which a E.G.S. S.r.l. solution is able to work possesses the following configuration
(according to the data acquired in the beginning of 2008):

    •   Processor: Intel Core Duo T2300 or higher, AMD X2 3800+ or higher.
    •   Memory: 2GB
    •   Graphic Card: Nvidia Quadro / 6x series or higher, ATI/AMD "x" series / FireGL or higher.
    •   Operating System: Windows XP Professional SP2 or higher, Windows Vista

As the volume of data being processed has been growing, 32-bit version RAM limitations (not exceeding
3 Gb) certainly turned out to be insufficient for serious projects. That's why the necessity to release a
64-bit version seemed to be unquestionable for the E.G.S. S.r.l. administration. However, the chance to
produce such a version in a short time remained doubtful. It was next to impossible to verify such
amount of code manually.


Participation of OOO "Program Verification Systems" in component
library migration
Specialists of OOO "Program Verification Systems" came to rescue. They used Viva64 code analyzer for
code migration to a 64-bit platform.

Software product Viva64 provides with error diagnostics. It deals with errors specific for 64-bit Windows
applications. Viva64 is a lint-like static C/C++ code analyzer. Fields of Viva64 application are the
following: verification of new 64-bit program solutions, assistance with porting of a 32-bit code to a 64-
bit system, code optimization taking into account peculiarities of 64-bit architectures.
Using Viva64 specialists of OOO "Program Verification Systems" furnished rapid migration of library
components, discovered and corrected problem parts in the library's source code. So, only several
persons took part in migration of such a huge and complex library.

Code migration using Viva64 allowed to have saved much time which might have been spent for manual
code verification. The main thing is not to make new program errors which tend to appear when a
migration to a new platform takes place.

The basic problem points discovered while analyzing code:

    •   calculation algorithms peculiarities manifesting when large amounts of data are being
        processed;
    •   processing of large-sized files;
    •   processing of highly-triangulated 3-D models (the larger is the number of triangles, the more
        precise is the model)
    •   functioning of licensing subsystem;

All the problems discovered with the help of Viva64 analyzer were corrected, due to this the 64-bit
version of high-quality Leios Studio was released in time.

E.G.S. S.r.l. is a private company whose mission is to develop programs and solutions for advanced 3D
scanning products processing. The company's offices were opened in Italy and in Moscow in 2002.
Website: http://www.egsolutions.com.

More Related Content

PDF
10 Insightful Quotes On Designing A Better Customer Experience
PDF
Learn BEM: CSS Naming Convention
PDF
Prototyping is an attitude
PPTX
50 Essential Content Marketing Hacks (Content Marketing World)
PPTX
How to Build a Dynamic Social Media Plan
PDF
SEO: Getting Personal
PDF
HD5870 Matrix Factory
10 Insightful Quotes On Designing A Better Customer Experience
Learn BEM: CSS Naming Convention
Prototyping is an attitude
50 Essential Content Marketing Hacks (Content Marketing World)
How to Build a Dynamic Social Media Plan
SEO: Getting Personal
HD5870 Matrix Factory

Similar to Case Study: Porting a set of point cloud and triangle mesh processing C++ libraries to 64-bit platform (20)

PDF
Interview with Anatoliy Kuznetsov, the author of BitMagic C++ library
PDF
High-Performance Physics Solver Design for Next Generation Consoles
PDF
Presentation of the open source CFD code Code_Saturne
PDF
OpenGL 4.6 Reference Guide
PDF
Viva64: working up of 64-bit applications
PPTX
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
PPT
GDC 2012: Advanced Procedural Rendering in DX11
PDF
OpenGL 4.5 Reference Card
PDF
Accelerating A C Image Processing Library With A GPU
DOC
Data structures graphics library in computer graphics.
PDF
Efficient Point Cloud Pre-processing using The Point Cloud Library
PDF
Efficient Point Cloud Pre-processing using The Point Cloud Library
PDF
High Performance Medical Reconstruction Using Stream Programming Paradigms
PPTX
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
PPT
CS 354 More Graphics Pipeline
PDF
Graphics Standards and Algorithm
PDF
Comparison of analyzers' diagnostic possibilities at checking 64-bit code
PDF
Digital Fabrication Studio.03 _Software @ Aalto Media Factory
PPT
SIGGRAPH 2012: NVIDIA OpenGL for 2012
PDF
Open GL T0074 56 sm3
Interview with Anatoliy Kuznetsov, the author of BitMagic C++ library
High-Performance Physics Solver Design for Next Generation Consoles
Presentation of the open source CFD code Code_Saturne
OpenGL 4.6 Reference Guide
Viva64: working up of 64-bit applications
PVS-Studio 5.00, a solution for developers of modern resource-intensive appl...
GDC 2012: Advanced Procedural Rendering in DX11
OpenGL 4.5 Reference Card
Accelerating A C Image Processing Library With A GPU
Data structures graphics library in computer graphics.
Efficient Point Cloud Pre-processing using The Point Cloud Library
Efficient Point Cloud Pre-processing using The Point Cloud Library
High Performance Medical Reconstruction Using Stream Programming Paradigms
2GKS, Open GL and IGES_Video Lect Given by Renjin.pptx
CS 354 More Graphics Pipeline
Graphics Standards and Algorithm
Comparison of analyzers' diagnostic possibilities at checking 64-bit code
Digital Fabrication Studio.03 _Software @ Aalto Media Factory
SIGGRAPH 2012: NVIDIA OpenGL for 2012
Open GL T0074 56 sm3
Ad

Recently uploaded (20)

PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PPTX
Internet of Everything -Basic concepts details
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
Auditboard EB SOX Playbook 2023 edition.
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
Improvisation in detection of pomegranate leaf disease using transfer learni...
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
giants, standing on the shoulders of - by Daniel Stenberg
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Internet of Everything -Basic concepts details
Training Program for knowledge in solar cell and solar industry
Consumable AI The What, Why & How for Small Teams.pdf
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Lung cancer patients survival prediction using outlier detection and optimize...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Statistics on Ai - sourced from AIPRM.pdf
Data Virtualization in Action: Scaling APIs and Apps with FME
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
The influence of sentiment analysis in enhancing early warning system model f...
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Co-training pseudo-labeling for text classification with support vector machi...
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Auditboard EB SOX Playbook 2023 edition.
Early detection and classification of bone marrow changes in lumbar vertebrae...
Ad

Case Study: Porting a set of point cloud and triangle mesh processing C++ libraries to 64-bit platform

  • 1. Case Study: Porting a set of point cloud and triangle mesh processing C++ libraries to 64-bit platform Author: Evgeniy Ryzhkov Date: 15.01.2009 Abstract Italian company E.G.S. S.r.l. deals with development of solutions in the field of simulation of triangle mesh-based 3D objects. Introduction Italian company E.G.S. S.r.l. deals with development of solutions in the field of simulation of triangle mesh-based 3D objects. For this purpose it uses its own component library Leios Components. When company E.G.S. S.r.l wanted to issue a 64-bit version of its components it turned to OOO "Program Verification Systems" as it is a company specializing in the field of development of code analyzers for 64-bit applications and parallel ones.
  • 2. Leios Components library Leios Components library is a set of different libraries: 1. Leios Point Cloud and Triangular Mesh API, LMLib. 2. Leios Surface Fitting Library. 3. Leios Sharp Edges Library. The total volume of source code is 13 Mb (440 000 code lines), the solution consists of several dozens projects. It's obvious that manual porting of such amount to a 64-bit system is rather difficult, especially if you take into account the complexity of mathematical algorithms. In order to learn the code type which the library contains one should just check main capacities of three mentioned above components. Leios Point Cloud and Triangular Mesh API • Point cloud and triangle mesh import/export (ASCII, STL, PLY, OBJ, VRML formats and native Leios RVE format. • Mesh data acquisition. • Elementary mesh editing operations. • Point cloud and triangle mesh selection operations. • Point cloud filtering, noise cleaning, smoothing, offset.
  • 3. Point cloud triangulation. • Triangle mesh healing, hole filling, smoothing. • Triangle mesh decimation and refinement.
  • 4. Cross sections of a triangle mesh by a plane, mesh subdivision by a plane. • Fitting mesh parts to plane, cylinder, or sphere surfaces. • Merging several point clouds or triangle meshes into a single object. • Point cloud and triangle mesh OpenGL visualization. • Registration of triangle meshes or point clouds. • Constrained "2.5d" triangulation procedures. • Point Cloud triangulation within given external contour. • "out-of-core" implementation to edit big point clouds in 32bit environment. • Triangulation between two polylines. • Procedure yielding mesh self-intersections.
  • 5. Procedure yielding intersection polylines of two meshes. • Polyline smoothing and decimation procedures. • Procedure yielding mesh cross section through two points on the mesh. • Import-Export routines with double-precision center-of-mass coordinates. • Automatic scan merging procedure. Leios Surface Fitting Library Extension library for managing the untrimmed NURBS surfaces fitting using • Specification of the sets of 4 bound limits on the triangle meshes. • Automatic surfaces fitting with automatic distribution of the nurbs patches.
  • 6. Leios Sharp Edges Library Extension library for • Automatic extraction of the fillets curves (bounds curves, central curve on the mesh, theoretical sharp edge curves) on the triangle meshes models • Segmentation of the triangles meshes into areas without fillets that can be fitted with untrimmed NURBS surfaces.
  • 7. The necessity of library components migration to a 64-bit platform E.G.S. S.r.l. company has been concerned with solutions development since 2002 when its first office was opened in Italy. Since the first steps of its work the developments has been directed to high- performance desktop systems. Minimal PC with which a E.G.S. S.r.l. solution is able to work possesses the following configuration (according to the data acquired in the beginning of 2008): • Processor: Intel Core Duo T2300 or higher, AMD X2 3800+ or higher. • Memory: 2GB • Graphic Card: Nvidia Quadro / 6x series or higher, ATI/AMD "x" series / FireGL or higher. • Operating System: Windows XP Professional SP2 or higher, Windows Vista As the volume of data being processed has been growing, 32-bit version RAM limitations (not exceeding 3 Gb) certainly turned out to be insufficient for serious projects. That's why the necessity to release a 64-bit version seemed to be unquestionable for the E.G.S. S.r.l. administration. However, the chance to produce such a version in a short time remained doubtful. It was next to impossible to verify such amount of code manually. Participation of OOO "Program Verification Systems" in component library migration Specialists of OOO "Program Verification Systems" came to rescue. They used Viva64 code analyzer for code migration to a 64-bit platform. Software product Viva64 provides with error diagnostics. It deals with errors specific for 64-bit Windows applications. Viva64 is a lint-like static C/C++ code analyzer. Fields of Viva64 application are the following: verification of new 64-bit program solutions, assistance with porting of a 32-bit code to a 64- bit system, code optimization taking into account peculiarities of 64-bit architectures.
  • 8. Using Viva64 specialists of OOO "Program Verification Systems" furnished rapid migration of library components, discovered and corrected problem parts in the library's source code. So, only several persons took part in migration of such a huge and complex library. Code migration using Viva64 allowed to have saved much time which might have been spent for manual code verification. The main thing is not to make new program errors which tend to appear when a migration to a new platform takes place. The basic problem points discovered while analyzing code: • calculation algorithms peculiarities manifesting when large amounts of data are being processed; • processing of large-sized files; • processing of highly-triangulated 3-D models (the larger is the number of triangles, the more precise is the model) • functioning of licensing subsystem; All the problems discovered with the help of Viva64 analyzer were corrected, due to this the 64-bit version of high-quality Leios Studio was released in time. E.G.S. S.r.l. is a private company whose mission is to develop programs and solutions for advanced 3D scanning products processing. The company's offices were opened in Italy and in Moscow in 2002. Website: http://www.egsolutions.com.