Lesson 19: All about Smart Pointers of OpenCascade | Handles - Tips & Tricks

preview_player
Показать описание
👀👇 This video touches on smart pointer implementation in OpenCascade named Handles. We will see how to correctly allocate the handled objects from a heap memory and how to derive your own handled classes using the OpenCascade's native Handle mechanism. We will see how memory leaks can pop up from your code if the handling mechanism is misused through raw pointers or when this modern "auto" type definition in C++ is employed.

#opencascade #cascade #occt #cad #programming #3D #quaoar #tutorial

📫 C O N T A C T M E

✊ C O M M U N I T Y

⏰ T I M E S T A M P S

0:00 Introduction
0:25 Allocate an object in OpenCasacde
2:54 Create a custom Handle class
5:25 Reference counting magic
7:55 Why smart pointers are good to use
13:33 What is wrong with "auto"
Рекомендации по теме
Комментарии
Автор

Great information as always. I now have a better understanding of the Standard_Transcient.

jonathanforget
Автор

awesome and informative video as always!

maryguty
Автор

Just excellent!!! Thank you!! Can you make a video material about AIS_InteractiveObject class - usage and best practices ?

bioanu
Автор

How about: auto curve = MyCurve); Would that work?

wolpumba
Автор

I am having trouble using opencascade with g++ or cmake or visual studio code in linux. Cannot compile because my compilation and build skills are not developed yet.
Can you redirect me to a youtube channel which does that. Runs code samples on linux, archlinux preferably. Thank you.

GedizG