AGX Dynamics  2.37.3.2
TextureAtlasGenerator.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 #pragma once
17 
18 #include <agx/agxPhysics_export.h>
19 #include <agx/Math.h>
20 #include <agx/Referenced.h>
21 #include <agxCollide/RenderData.h>
22 
23 namespace agxUtil
24 {
25 
31  {
32  public:
33 
49  static bool process(
50  const agx::Vec3Vector& vertices,
51  const agx::Vec3Vector& normals,
52  const agx::UInt32Vector& indices,
53  const agx::Vec2Vector& texCoordinates,
54 
55  agx::Vec3Vector& out_vertices,
56  agx::Vec3Vector& out_normals,
57  agx::UInt32Vector& out_indices,
58  agx::Vec2Vector& out_texCoordinates
59  );
60 
68  static bool process(agxCollide::RenderData* renderData);
69  };
70 }
This class will take an input mesh and recompute texture coordinates to fit on a texture atlas...
Class for storing rendering information for a Shape.
Definition: RenderData.h:38
#define AGXPHYSICS_EXPORT
The agxUtil namespace contain classes and methods for utility functionality.