Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
mesh.h
1//##################################################################################################
2//
3// Copyright (c) 2024 Beijing Qiongqi Tech Co.,Ltd. All rights reserved.
4
5// This source code is confidential and proprietary to Beijing Qiongqi Tech Co.,Ltd(The Holder).
6// Any unauthorized use, copying, modification, or distribution of the code is strictly prohibited.
7// Any user shall obtain authorizaition from the Holder before modifying the source code. And the user shall not
8// sublicense, sell, distribute, or transfer the source code, whether in original or modified form, to any third party
9// without the prior written consent of the Holder.
10
11// This copyright notice and permission grant shall be included in all copies or substantial portions of the source code.
12
13// Author Cumulia Illustrator
14// Date 2024-10-31
15// Version V1.1.0
16//##################################################################################################
17
18#pragma once
19
20#include "../variant/matrix.h"
21#include "../variant/vector.h"
22#include "../variant/box.h"
23#include "../object/object.h"
24#include "../primitive/primitive.h"
25
26#include <memory>
27#include <vector>
28
29namespace cil
30{
32 class Mesh : public Object
33 {
34 public:
35 std::shared_ptr<std::vector<std::shared_ptr<Primitive>>> primitives;
36 std::shared_ptr<BoundingBox> boundingBox;
37 };
38
39 std::shared_ptr<BoundingBox> getBoundingBox(const std::shared_ptr<Mesh>& mesh);
40}
The Mesh class represents a 3D mesh, which is a collection of geometric primitives that together defi...
Definition mesh.h:33
std::shared_ptr< std::vector< std::shared_ptr< Primitive > > > primitives
This member is vector that stores a collection of shared pointers, each pointing to a specific Primit...
Definition mesh.h:35
std::shared_ptr< BoundingBox > boundingBox
This member holds a shared pointer to a BoundingBox object, which stores the minimum and maximum exte...
Definition mesh.h:36
Definition object.h:23
Definition decal.h:23
std::shared_ptr< BoundingBox > getBoundingBox(const std::shared_ptr< Geometry > &geometry, const std::string &attribName="positions")