lang
stringclasses
3 values
file_path
stringlengths
5
150
repo_name
stringlengths
6
110
commit
stringlengths
40
40
file_code
stringlengths
1.52k
18.9k
prefix
stringlengths
82
16.5k
suffix
stringlengths
0
15.1k
middle
stringlengths
121
8.18k
strategy
stringclasses
8 values
context_items
listlengths
0
100
C++
src/BabylonCpp/src/maths/spherical_polynomial.cpp
samdauwe/BabylonCpp
eea9f761a49bb460ff1324c20e4674ef120e94f1
#include <babylon/maths/spherical_polynomial.h> #include <babylon/maths/color3.h> #include <babylon/maths/tmp_vectors.h> namespace BABYLON { SphericalPolynomial::SphericalPolynomial() : x{Vector3::Zero()} , y{Vector3::Zero()} , z{Vector3::Zero()} , xx{Vector3::Zero()} , yy{Vector3::Zero()} , zz{Vector3::Zero()} , xy{Vector3::Zero()} , yz{Vector3::Zero()} , zx{Vector3::Zero()} , _harmonics{std::nullopt} { } SphericalPolynomial::SphericalPolynomial(const SphericalPolynomial& other) = default; SphericalPolynomial::SphericalPolynomial(SphericalPolynomial&& other) = default; SphericalPolynomial& SphericalPolynomial::operator=(const SphericalPolynomial& other) = default; SphericalPolynomial& SphericalPolynomial::operator=(SphericalPolynomial&& other) = default; SphericalPolynomial::~SphericalPolynomial() = default; SphericalPolynomial SphericalPolynomial::copy() const { return SphericalPolynomial(*this); } std::unique_ptr<SphericalPolynomial> SphericalPolynomial::clone() const { return std::make_unique<SphericalPolynomial>(*this); } SphericalHarmonics& SphericalPolynomial::preScaledHarmonics() { if (!_harmonics.has_value()) { _harmonics = SphericalHarmonics::FromPolynomial(*this); } if (!_harmonics->preScaled) { _harmonics->preScaleForRendering(); } return *_harmonics; } void SphericalPolynomial::addAmbient(const Color3& color) { TmpVectors::Vector3Array[0].copyFromFloats(color.r, color.g, color.b); auto& colorVector = TmpVectors::Vector3Array[0]; xx.addInPlace(colorVector); yy.addInPlace(colorVector); zz.addInPlace(colorVector); } void SphericalPolynomial::scaleInPlace(float scale) { x.scaleInPlace(scale); y.scaleInPlace(scale); z.scaleInPlace(scale); xx.scaleInPlace(scale); yy.scaleInPlace(scale); zz.scaleInPlace(scale); yz.scaleInPlace(scale); zx.scaleInPlace(scale); xy.scaleInPlace(scale); } SphericalPolynomial& SphericalPolynomial::updateFromHarmonics(const SphericalHarmonics& harmonics) { _harmonics = harmonics; x.copyFrom(harmonics.l11); x.scaleInPlace(1.02333f).scaleInPlace(-1.f); y.copyFrom(harmonics.l1_1); y.scaleInPlace(1.02333f).scaleInPlace(-1.f); z.copyFrom(harmonics.l10); z.scaleInPlace(1.02333f); xx.copyFrom(harmonics.l00); TmpVectors::Vector3Array[0].copyFrom(harmonics.l20).scaleInPlace(0.247708f); TmpVectors::Vector3Array[1].copyFrom(harmonics.l22).scaleInPlace(0.429043f); xx.scaleInPlace(0.886277f) .subtractInPlace(TmpVectors::Vector3Array[0]) .addInPlace(TmpVectors::Vector3Array[1]); yy.copyFrom(harmonics.l00); yy.scaleInPlace(0.886277f) .subtractInPlace(TmpVectors::Vector3Array[0]) .subtractInPlace(TmpVectors::Vector3Array[1]); zz.copyFrom(harmonics.l00); TmpVectors::Vector3Array[0].copyFrom(harmonics.l20).scaleInPlace(0.495417f); zz.scaleInPlace(0.886277f).addInPlace(TmpVectors::Vector3Array[0]); yz.copyFrom(harmonics.l2_1); yz.scaleInPlace(0.858086f).scaleInPlace(-1.f); zx.copyFrom(harmonics.l21); zx.scaleInPlace(0.858086f).scaleInPlace(-1.f); xy.copyFrom(harmonics.l2_2); xy.scaleInPlace(0.858086f); scaleInPlace(1.f / Math::PI); return *this; } SphericalPolynomial SphericalPolynomial::FromHarmonics(const SphericalHarmonics& harmonics) { SphericalPolynomial result; return result.updateFromHarmonics(harmonics); } SphericalPolynomial SphericalPolynomial::FromArray(const std::vector<Float32Array>& data) { SphericalPolynomial sp; if (data.size() < 9) { return sp; } Vector3::FromArrayToRef(data[0], 0, sp.x); Vector3::FromArrayToRef(data[1], 0, sp.y); Vector3::FromArrayToRef(data[2], 0, sp.z); Vector3::FromArrayToRef(data[3], 0, sp.xx); Vector3::FromArrayToRef(data[4], 0, sp.yy); Vector3::FromArrayToRef(data[5], 0, sp.zz); Vector3::FromArrayToRef(data[6], 0, sp.yz); Vector3::FromArrayToRef(data[7], 0, sp.zx); Vector3::FromArrayToRef(data[8], 0, sp.xy); return sp; } }
#include <babylon/maths/spherical_polynomial.h> #include <babylon/maths/color3.h> #include <babylon/maths/tmp_vectors.h> namespace BABYLON { SphericalPolynomial::SphericalPolynomial() : x{Vector3::Zero()} , y{Vector3::Zero()} , z{Vector3::Zero()} , xx{Vector3::Zero()} , yy{Vector3::Zero()} , zz{Vector3::Zero()} , xy{Vector3::Zero()} , yz{Vector3::Zero()} , zx{Vector3::Zero()} , _harmonics{std::nullopt} { } SphericalPolynomial::SphericalPolynomial(const SphericalPolynomial& other) = default; SphericalPolynomial::SphericalPolynomial(SphericalPolynomial&& other) = default; SphericalPolynomial& SphericalPolynomial::operator=(const SphericalPolynomial& other) = default; SphericalPolynomial& SphericalPolynomial::operator=(SphericalPolynomial&& other) = default; SphericalPolynomial::~SphericalPolynomial() = default; SphericalPolynomial SphericalPolynomial::copy() const { return SphericalPolynomial(*this); } std::unique_ptr<SphericalPolynomial> SphericalPolynomial::clone() const { return std::make_unique<SphericalPolynomial>(*this); } SphericalHarmonics& SphericalPolynomial::preScaledHarmonics() { if (!_harmonics.has_value()) { _harmonics = SphericalHarmonics::FromPolynomial(*this); } if (!_harmonics->preScaled) { _harmonics->preScaleForRendering(); } return *_harmonics; } void SphericalPolynomial::addAmbient(const Color3& color) { TmpVectors::Vector3Array[0].copyFromFloats(color.r, color.g, color.b); auto& colorVector = TmpVectors::Vector3Array[0]; xx.addInPlace(colorVector); yy.addInPlace(colorVector); zz.addInPlace(colorVector); } void SphericalPolynomial::scaleInPlace(float scale) { x.scaleInPlace(scale); y.scaleInPlace(scale); z.scaleInPlace(scale); xx.scaleInPlace(scale); yy.scaleInPlace(scale); zz.scaleInPlace(scale); yz.scaleInPlace(scale); zx.scaleInPlace(scale); xy.scaleInPlace(scale); } SphericalPolynomial& SphericalPolynomial::updateFromHarmonics(const SphericalHarmonics& harmonics) { _harmonics = harmonics; x.copyFrom(harmonics.l11); x.scaleInPlace(1.02333f).scaleInPlace(-1.f); y.copyFrom(harmonics.l1_1); y.scaleInPlace(1.02333f).scaleInPlace(-1.f); z.copyFrom(harmonics.l10); z.scaleInPlace(1.02333f); xx.copyFrom(harmonics.l00); TmpVectors::Vector3Array[0].copyFrom(harmonics.l20).scaleInPlace(0.247708f); TmpVectors::Vector3Array[1].copyFrom(harmonics.l22).scaleInPlace(0.429043f); xx.scaleInPlace(0.886277f) .subtractInPlace(TmpVectors::Vector3Array[0]) .addInPlace(TmpVectors::Vector3Array[1]); yy.copyFrom(harmonics.l00); yy.scaleInPlace(0.886277f) .subtractInPlace(TmpVectors::Vector3Array[0]) .subtractInPlace(TmpVectors::Vector3Array[1]); zz.copyFrom(harmonics.l00); TmpVectors::Vector3Array[0].copyFrom(harmonics.l20).scaleInPlace(0.495417f); zz.scaleInPlace(0.886277f).addInPlace(TmpVectors::Vector3Array[0]); yz.copyFrom(harmonics.l2_1); yz.scaleInPlace(0.858086f).scaleInPlace(-1.f); zx.copyFrom(harmonics.l21); zx.scaleInPlace(0.858086f).scaleInPlace(-1.f); xy.copyFrom(harmonics.l2_2); xy.scaleInPlace(0.858086f); scaleInPlace(1.f / Math::PI); return *this; } SphericalPolynomial SphericalPolynomial::FromHarmonics(const SphericalHarmonics& harmonics) { SphericalPolynomial result; return result.updateFromHarmonics(harmonics); } SphericalPolynomial SphericalPolynomial::FromArray(const std::vector<Float32Array>& data) { SphericalPolynomial sp; if (data.size() <
}
9) { return sp; } Vector3::FromArrayToRef(data[0], 0, sp.x); Vector3::FromArrayToRef(data[1], 0, sp.y); Vector3::FromArrayToRef(data[2], 0, sp.z); Vector3::FromArrayToRef(data[3], 0, sp.xx); Vector3::FromArrayToRef(data[4], 0, sp.yy); Vector3::FromArrayToRef(data[5], 0, sp.zz); Vector3::FromArrayToRef(data[6], 0, sp.yz); Vector3::FromArrayToRef(data[7], 0, sp.zx); Vector3::FromArrayToRef(data[8], 0, sp.xy); return sp; }
function_block-function_prefixed
[ { "content": "class Color3;\n", "file_path": "src/BabylonCpp/include/babylon/maths/spherical_harmonics.h", "rank": 0, "score": 282209.0951003985 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Defines One Image in the file. It requires only the position in the\n\n * file as well as the length.\n\n */\n\nstruct BABYLON_SHARED_EXPORT BufferImageData {\n\n /**\n\n * Length of the image data.\n\n */\n\n size_t length;\n\n /**\n\n * Position of the data from the null terminator delimiting the end of the\n\n * JSON.\n\n */\n\n size_t position;\n\n}; // end of struct BufferImageData\n\n\n", "file_path": "src/BabylonCpp/include/babylon/misc/buffer_image_data.h", "rank": 1, "score": 278482.85706731764 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Hidden\n\n */\n\nstruct BABYLON_SHARED_EXPORT _CreationDataStorage {\n\n std::optional<bool> closePath = std::nullopt;\n\n std::optional<bool> closeArray = std::nullopt;\n\n IndicesArray idx;\n\n float dashSize;\n\n float gapSize;\n\n Path3D path3D;\n\n std::vector<std::vector<Vector3>> pathArray;\n\n float arc;\n\n float radius;\n\n unsigned int cap;\n\n unsigned int tessellation;\n\n}; // end of struct _CreationDataStorage\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_creation_data_storage.h", "rank": 2, "score": 278482.85706731764 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Hidden\n\n */\n\nstruct BABYLON_SHARED_EXPORT VertexDataConstants {\n\n /**\n\n * Mesh side orientation : usually the external or front surface\n\n */\n\n static constexpr unsigned int FRONTSIDE = 0;\n\n /**\n\n * Mesh side orientation : usually the internal or back surface\n\n */\n\n static constexpr unsigned int BACKSIDE = 1;\n\n /**\n\n * Mesh side orientation : both internal and external or front and back\n\n * surfaces\n\n */\n\n static constexpr unsigned int DOUBLESIDE = 2;\n\n /**\n\n * Mesh side orientation : by default, `FRONTSIDE`\n\n */\n\n static constexpr unsigned int DEFAULTSIDE = 0;\n\n}; // end of struct VertexDataConstants\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data_constants.h", "rank": 3, "score": 278482.85706731764 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Joint data for a Distance-Joint.\n\n * @see https://doc.babylonjs.com/how_to/using_the_physics_engine\n\n */\n\nstruct BABYLON_SHARED_EXPORT DistanceJointData : public PhysicsJointData {\n\n /**\n\n * Max distance the 2 joint objects can be apart\n\n */\n\n float maxDistance;\n\n // Oimo - minDistance\n\n // Cannon - maxForce\n\n}; // end of struct DistanceJointData\n\n\n", "file_path": "src/BabylonCpp/include/babylon/physics/joint/distance_joint_data.h", "rank": 4, "score": 274420.71182538336 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Interface for a physics hit data\n\n * @see\n\n * https://doc.babylonjs.com/how_to/using_the_physics_engine#further-functionality-of-the-impostor-class\n\n */\n\nstruct BABYLON_SHARED_EXPORT PhysicsHitData {\n\n /**\n\n * The force applied at the contact point\n\n */\n\n Vector3 force;\n\n /**\n\n * The contact point\n\n */\n\n Vector3 contactPoint;\n\n /**\n\n * The distance from the origin to the contact point\n\n */\n\n float distanceFromOrigin = 0.f;\n\n}; // end of struct PhysicsHitData\n\n\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_hit_data.h", "rank": 5, "score": 274420.71182538336 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Joint data from a spring joint.\n\n * @see https://doc.babylonjs.com/how_to/using_the_physics_engine\n\n */\n\nstruct BABYLON_SHARED_EXPORT SpringJointData : public PhysicsJointData {\n\n /**\n\n * Length of the spring\n\n */\n\n float length = 0.f;\n\n /**\n\n * Stiffness of the spring\n\n */\n\n float stiffness = 0.f;\n\n /**\n\n * Damping of the spring\n\n */\n\n float damping = 0.f;\n\n /**\n\n * This callback will be called when applying the force to the impostors.\n\n */\n\n std::function<void()> forceApplicationCallback = nullptr;\n\n}; // end of struct DistanceJointData\n\n\n", "file_path": "src/BabylonCpp/include/babylon/physics/joint/spring_joint_data.h", "rank": 6, "score": 274420.71182538336 }, { "content": "namespace BABYLON {\n\n\n\nFWD_CLASS_SPTR(Buffer)\n\n\n\n/**\n\n * @brief Hidden\n\n */\n\nstruct BABYLON_SHARED_EXPORT _ThinInstanceDataStorage {\n\n size_t instancesCount = 0;\n\n BufferPtr matrixBuffer = nullptr;\n\n BufferPtr previousMatrixBuffer = nullptr;\n\n Float32Array previousMatrixData = {};\n\n size_t matrixBufferSize = 32 * 16; // let's start with a maximum of 32 thin instances\n\n Float32Array matrixData = {};\n\n std::vector<Vector3> boundingVectors = {};\n\n std::optional<std::vector<Matrix>> worldMatrices = std::nullopt;\n\n}; // end of struct _ThinInstanceDataStorage\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_thin_instance_data_storage.h", "rank": 7, "score": 274420.71182538336 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Interface for Physics-Joint data.\n\n * @see https://doc.babylonjs.com/how_to/using_the_physics_engine\n\n */\n\nstruct BABYLON_SHARED_EXPORT PhysicsJointData {\n\n // Important for some engines, optional!\n\n /**\n\n * The main pivot of the joint\n\n */\n\n std::optional<Vector3> mainPivot = std::nullopt;\n\n /**\n\n * The connected pivot of the joint\n\n */\n\n std::optional<Vector3> connectedPivot = std::nullopt;\n\n /**\n\n * The main axis of the joint\n\n */\n\n std::optional<Vector3> mainAxis = std::nullopt;\n\n /**\n\n * The connected axis of the joint\n\n */\n\n std::optional<Vector3> connectedAxis = std::nullopt;\n\n /**\n\n * The collision of the joint\n\n */\n\n std::optional<bool> collision = std::nullopt;\n\n /**\n\n * Native Oimo/Cannon/Energy data\n\n */\n\n PhysicsParams nativeParams;\n\n}; // end of struct PhysicsJointData\n\n\n", "file_path": "src/BabylonCpp/include/babylon/physics/joint/physics_joint_data.h", "rank": 8, "score": 274420.71182538336 }, { "content": "namespace BABYLON {\n\n\n\nFWD_CLASS_SPTR(PhysicsImpostor)\n\nFWD_STRUCT_SPTR(PhysicsHitData)\n\n\n\n/**\n\n * @brief Interface for an affected physics impostor.\n\n * @see\n\n * https://doc.babylonjs.com/how_to/using_the_physics_engine#further-functionality-of-the-impostor-class\n\n */\n\nstruct BABYLON_SHARED_EXPORT PhysicsAffectedImpostorWithData {\n\n /**\n\n * The impostor affected by the effect\n\n */\n\n PhysicsImpostorPtr impostor = nullptr;\n\n\n\n /**\n\n * The data about the hit/force from the explosion\n\n */\n\n PhysicsHitDataPtr hitData = nullptr;\n\n}; // end of struct PhysicsAffectedImpostorWithData\n\n\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_affected_impostor_with_data.h", "rank": 9, "score": 270519.58469736134 }, { "content": "namespace BABYLON {\n\n\n\nFWD_CLASS_SPTR(_MeshCollisionData)\n\nFWD_CLASS_SPTR(AbstractMesh)\n\nFWD_CLASS_SPTR(Material)\n\nFWD_CLASS_SPTR(MorphTargetManager)\n\nFWD_CLASS_SPTR(Skeleton)\n\n\n\n/**\n\n * @brief Hidden\n\n */\n\nstruct BABYLON_SHARED_EXPORT _InternalAbstractMeshDataInfo {\n\n bool _hasVertexAlpha = false;\n\n bool _useVertexColors = true;\n\n unsigned int _numBoneInfluencers = 4;\n\n bool _applyFog = true;\n\n bool _receiveShadows = false;\n\n _FacetDataStorage _facetData = {};\n\n float _visibility = 1.f;\n\n SkeletonPtr _skeleton = nullptr;\n\n unsigned int _layerMask = 0x0FFFFFFF;\n\n bool _computeBonesUsingShaders = true;\n\n bool _isActive = false;\n\n bool _onlyForInstances = false;\n\n bool _isActiveIntermediate = false;\n\n bool _onlyForInstancesIntermediate = false;\n\n bool _actAsRegularMesh = false;\n\n AbstractMesh* _currentLOD = nullptr;\n\n bool _currentLODIsUpToDate = false;\n\n unsigned int _collisionRetryCount = 3;\n\n MorphTargetManagerPtr _morphTargetManager = nullptr;\n\n unsigned int _renderingGroupId = 0;\n\n MaterialPtr _material = nullptr;\n\n std::vector<Vector3> _positions = {};\n\n // Collisions\n\n _MeshCollisionDataPtr _meshCollisionData = nullptr;\n\n}; // end of struct _InternalAbstractMeshDataInfo\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_internal_abstract_mesh_data_info.h", "rank": 10, "score": 270519.58469736134 }, { "content": "class BABYLON_SHARED_EXPORT DataView {\n\n\n\npublic:\n\n DataView();\n\n\n\n /**\n\n * @brief Constructor\n\n * @param buffer An existing ArrayBuffer to use as the storage for the new\n\n * DataView object.\n\n */\n\n DataView(const ArrayBuffer& buffer);\n\n\n\n /**\n\n * @brief Constructor\n\n * @param buffer An existing ArrayBuffer to use as the storage for the new\n\n * DataView object.\n\n * @param byteOffset The offset, in bytes, to the first byte in the specified\n\n * buffer for the new view to reference. If not specified, the view of the\n\n * buffer will start with the first byte.\n\n * @param byteLength The number of elements in the byte array. If unspecified,\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 11, "score": 257774.43308189922 }, { "content": "class BABYLON_SHARED_EXPORT VertexData {\n\n\n\npublic:\n\n /**\n\n * Mesh side orientation : usually the external or front surface\n\n */\n\n static constexpr unsigned int FRONTSIDE = VertexDataConstants::FRONTSIDE;\n\n /**\n\n * Mesh side orientation : usually the internal or back surface\n\n */\n\n static constexpr unsigned int BACKSIDE = VertexDataConstants::BACKSIDE;\n\n /**\n\n * Mesh side orientation : both internal and external or front and back\n\n * surfaces\n\n */\n\n static constexpr unsigned int DOUBLESIDE = VertexDataConstants::DOUBLESIDE;\n\n /**\n\n * Mesh side orientation : by default, `FRONTSIDE`\n\n */\n\n static constexpr unsigned int DEFAULTSIDE = VertexDataConstants::DEFAULTSIDE;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 12, "score": 257774.43308189922 }, { "content": "class BABYLON_SHARED_EXPORT DataBuffer {\n\n\n\npublic:\n\n DataBuffer() : uniqueId{DataBuffer::_Counter++}\n\n {\n\n }\n\n virtual ~DataBuffer() = default;\n\n\n\n /**\n\n * Gets or sets the number of objects referencing this buffer\n\n */\n\n size_t references = 0;\n\n\n\n /**\n\n * Gets or sets the size of the underlying buffer\n\n */\n\n size_t capacity = 0;\n\n\n\n /**\n\n * Gets or sets a boolean indicating if the buffer contains 32bits indices\n", "file_path": "src/BabylonCpp/include/babylon/buffers/data_buffer.h", "rank": 13, "score": 257774.43308189922 }, { "content": " stbi_uc *data;\n", "file_path": "external/stb_image/include/stb_image/stb_image.h", "rank": 14, "score": 257535.0171300436 }, { "content": "namespace BABYLON {\n\n\n\nstruct BABYLON_SHARED_EXPORT AnimationControl {\n\n float from = 0.f;\n\n float to = 0.f;\n\n bool loop = false;\n\n}; // end of struct AnimationControl\n\n\n\nstruct BABYLON_SHARED_EXPORT AnimationReservedDataStore {\n\n bool intialized = false;\n\n Scene* scene = nullptr;\n\n float currentFrame = 0.f;\n\n std::vector<AnimationPtr> _animations;\n\n std::vector<AnimationRangePtr> _ranges;\n\n AnimationControl _animationControl;\n\n AnimatablePtr _runningAnimatable = nullptr;\n\n Observer<Scene>::Ptr _onBeforeRenderObserver = nullptr;\n\n bool _isPlaying = false;\n\n}; // end of struct AnimationReservedDataStore\n\n\n", "file_path": "src/BabylonImGui/include/babylon/inspector/components/actiontabs/tabs/propertygrids/animations/animation_reserved_data_store.h", "rank": 15, "score": 253109.74944844976 }, { "content": "namespace BABYLON {\n\n\n\nstruct BABYLON_SHARED_EXPORT TextureReservedDataStore {\n\n int width = 256;\n\n int height = 256;\n\n bool displayRed = true;\n\n bool displayGreen = true;\n\n bool displayBlue = true;\n\n bool displayAlpha = true;\n\n unsigned int face = 0;\n\n}; // end of struct SkeletonReservedDataStore\n\n\n", "file_path": "src/BabylonImGui/include/babylon/inspector/components/actiontabs/tabs/propertygrids/materials/texture_reserved_data_store.h", "rank": 16, "score": 253109.74944844976 }, { "content": "namespace BABYLON {\n\nnamespace Debug {\n\nFWD_CLASS_SPTR(SkeletonViewer)\n\n} // end of namespace Debug\n\n\n\nstruct BABYLON_SHARED_EXPORT SkeletonReservedDataStore {\n\n bool skeletonViewersEnabled = false;\n\n std::vector<Debug::SkeletonViewerPtr> skeletonViewers = {};\n\n Debug::SkeletonViewerPtr skeletonViewer = nullptr;\n\n}; // end of struct SkeletonReservedDataStore\n\n\n", "file_path": "src/BabylonImGui/include/babylon/inspector/components/actiontabs/tabs/propertygrids/meshes/skeleton_reserved_data_store.h", "rank": 17, "score": 253109.74944844976 }, { "content": "namespace BABYLON {\n\n\n\nFWD_CLASS_SPTR(AbstractMesh)\n\nFWD_CLASS_SPTR(LinesMesh)\n\nFWD_CLASS_SPTR(Material)\n\n\n\nstruct BABYLON_SHARED_EXPORT MeshReservedDataStore {\n\n bool hidden = false;\n\n bool displayNormals = false;\n\n bool renderGridEnabled = false;\n\n bool renderWireframeOver = false;\n\n bool renderNormalVectors = false;\n\n bool normalMaterialHidden = true;\n\n bool isInspectorGrid = false;\n\n bool isVertexColorMaterial = false;\n\n bool displayVertexColors = false;\n\n AbstractMeshPtr gridMesh = nullptr;\n\n LinesMeshPtr normalLines = nullptr;\n\n MaterialPtr originalMaterial = nullptr;\n\n}; // end of struct MeshReservedDataStore\n\n\n", "file_path": "src/BabylonImGui/include/babylon/inspector/components/actiontabs/tabs/propertygrids/meshes/mesh_reserved_data_store.h", "rank": 18, "score": 253109.7494484497 }, { "content": "class BABYLON_SHARED_EXPORT _MeshCollisionData {\n\n\n\npublic:\n\n _MeshCollisionData();\n\n _MeshCollisionData(const _MeshCollisionData& other);\n\n _MeshCollisionData(_MeshCollisionData&& other);\n\n _MeshCollisionData& operator=(const _MeshCollisionData& other);\n\n _MeshCollisionData& operator=(_MeshCollisionData&& other);\n\n ~_MeshCollisionData(); // = default\n\n\n\npublic:\n\n bool _checkCollisions;\n\n int _collisionMask;\n\n int _collisionGroup;\n\n std::vector<AbstractMeshPtr> _surroundingMeshes;\n\n ColliderPtr _collider;\n\n Vector3 _oldPositionForCollisions;\n\n Vector3 _diffPositionForCollisions;\n\n Observer<AbstractMesh>::Ptr _onCollideObserver;\n\n Observer<Vector3>::Ptr _onCollisionPositionChangeObserver;\n\n bool _collisionResponse;\n\n\n\n}; // end of class _MeshCollisionData\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_COLLISIONS_MESH_COLLISION_DATA_H\n", "file_path": "src/BabylonCpp/include/babylon/collisions/_mesh_collision_data.h", "rank": 19, "score": 249819.5403824199 }, { "content": "struct BABYLON_SHARED_EXPORT _InstanceDataStorage {\n\n _VisibleInstancesPtr visibleInstances = nullptr;\n\n Int32Array renderIdForInstances;\n\n _InstancesBatchPtr batchCache = nullptr;\n\n // let's start with a maximum of 32 instances\n\n unsigned int instancesBufferSize = 32 * 16 * 4;\n\n BufferPtr instancesBuffer = nullptr;\n\n Float32Array instancesData;\n\n size_t overridenInstanceCount;\n\n bool isFrozen = false;\n\n _InstancesBatchPtr previousBatch = nullptr;\n\n bool hardwareInstancedRendering = false;\n\n std::optional<unsigned int> sideOrientation = std::nullopt;\n\n bool manualUpdate = false;\n\n std::optional<unsigned int> previousRenderId = std::nullopt;\n\n}; // end of struct _InstanceDataStorage\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_MESHES_INSTANCE_DATA_STORAGE_H\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_instance_data_storage.h", "rank": 20, "score": 249819.5403824199 }, { "content": "#ifndef BABYLON_MESHES_VERTEX_DATA_H\n\n#define BABYLON_MESHES_VERTEX_DATA_H\n\n\n\n#include <optional>\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/maths/vector4.h>\n\n#include <babylon/meshes/mesh.h>\n\n#include <babylon/meshes/vertex_data_constants.h>\n\n\n\nnamespace BABYLON {\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 21, "score": 242746.34670099593 }, { "content": "#ifndef BABYLON_BUFFERS_DATA_BUFFER_H\n\n#define BABYLON_BUFFERS_DATA_BUFFER_H\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_common.h>\n\n\n\nnamespace BABYLON {\n\n\n\n/**\n\n * @brief Class used to store gfx data (like WebGLBuffer).\n\n */\n\ntemplate <class T>\n", "file_path": "src/BabylonCpp/include/babylon/buffers/data_buffer.h", "rank": 22, "score": 242744.77108928346 }, { "content": "#ifndef BABYLON_CORE_DATA_VIEW_H\n\n#define BABYLON_CORE_DATA_VIEW_H\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_common.h>\n\n\n\nnamespace BABYLON {\n\n\n\n/**\n\n * @brief The DataView view provides a low-level interface for reading and\n\n * writing multiple number types in an ArrayBuffer irrespective of the\n\n * platform's endianness.\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 23, "score": 242744.1485595127 }, { "content": "\n\n /**\n\n * An array of i, j, k the three vertex indices required for each triangular facet [...., i, j, k\n\n * .....]\n\n */\n\n IndicesArray indices;\n\n\n\npublic:\n\n Uint32Array _idx;\n\n\n\n}; // end of class VertexData\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_MESHES_VERTEX_DATA_H\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 24, "score": 242736.46047418407 }, { "content": " * The length (in bytes) of this view from the start of its ArrayBuffer\n\n */\n\n size_t _byteLength;\n\n\n\n /**\n\n * The offset (in bytes) of this view from the start of its ArrayBuffer\n\n */\n\n size_t _byteOffset;\n\n\n\n}; // end of class DataView\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_CORE_DATA_VIEW_H\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 25, "score": 242735.58263203438 }, { "content": " */\n\n bool is32Bits = false;\n\n\n\n /**\n\n * @brief Gets the underlying buffer\n\n */\n\n virtual T underlyingResource()\n\n {\n\n return nullptr;\n\n }\n\n\n\n /**\n\n * @brief Gets the unique id of this buffer\n\n */\n\n const size_t uniqueId;\n\n\n\nprivate:\n\n static inline size_t _Counter = 0;\n\n\n\n}; // end of class DataBuffer\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_BUFFERS_DATA_BUFFER_H\n", "file_path": "src/BabylonCpp/include/babylon/buffers/data_buffer.h", "rank": 26, "score": 242734.44427930765 }, { "content": "\n\npublic:\n\n VertexData();\n\n ~VertexData(); // = default\n\n\n\n /**\n\n * @brief Uses the passed data array to set the set the values for the specified kind of data.\n\n * @param data a linear array of floating numbers\n\n * @param kind the type of data that is being set, eg positions, colors etc\n\n */\n\n void set(const Float32Array& data, const std::string& kind);\n\n\n\n /**\n\n * @brief Associates the vertexData to the passed Mesh.\n\n * Sets it as updatable or not (default `false`)\n\n * @param mesh the mesh the vertexData is applied to\n\n * @param updatable when used and having the value true allows new data to update the vertexData\n\n * @returns the VertexData\n\n */\n\n VertexData& applyToMesh(Mesh& mesh, const std::optional<bool>& updatable = std::nullopt);\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 27, "score": 242733.60249920381 }, { "content": " * @returns the VertexData of the TiledGround\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateTiledGround(TiledGroundOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData of the Ground designed from a heightmap.\n\n * @param options an object used to set the following parameters for the Ground, required and provided by MeshBuilder.CreateGroundFromHeightMap\n\n * * width the width (x direction) of the ground\n\n * * height the height (z direction) of the ground\n\n * * subdivisions the number of subdivisions per side\n\n * * minHeight the minimum altitude on the ground, optional, default 0\n\n * * maxHeight the maximum altitude on the ground, optional default 1\n\n * * colorFilter the filter to apply to the image pixel colors to compute the height, optional Color3, default (0.3, 0.59, 0.11)\n\n * * buffer the array holding the image color data\n\n * * bufferWidth the width of image\n\n * * bufferHeight the height of image\n\n * * alphaFilter Remove any data where the alpha channel is below this value, defaults 0 (all data visible)\n\n * @returns the VertexData of the Ground designed from a heightmap\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 28, "score": 242732.79250361345 }, { "content": " * * bbSize : optional bounding box size data, required for facetPartitioning computation\n\n * * subDiv : optional partitioning data about subdivisions on each axis (int), required for facetPartitioning computation\n\n * * useRightHandedSystem: optional boolean to for right handed system computation\n\n * * depthSort : optional boolean to enable the facet depth sort computation\n\n * * distanceTo : optional Vector3 to compute the facet depth from this location\n\n * * depthSortedFacets : optional array of depthSortedFacets to store the facet distances from the reference location\n\n */\n\n // clang-format on\n\n static void ComputeNormals(const Float32Array& positions, const Uint32Array& indices,\n\n Float32Array& normals,\n\n std::optional<FacetParameters> options = std::nullopt);\n\n\n\n /**\n\n * @brief Applies VertexData created from the imported parameters to the\n\n * geometry.\n\n * @param parsedVertexData the parsed data from an imported file\n\n * @param geometry the geometry to apply the VertexData to\n\n */\n\n static void ImportVertexData(const json& parsedVertexData, Geometry& geometry);\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 29, "score": 242728.48017013868 }, { "content": " * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the box\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateBox(BoxOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for a tiled box.\n\n * @param options an object used to set the following optional parameters for the box, required but can be empty\n\n * * faceTiles sets the pattern, tile size and number of tiles for a face\n\n * * faceUV an array of 6 Vector4 elements used to set different images to each box side\n\n * * faceColors an array of 6 Color3 elements used to set different colors to each box side\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * @returns the VertexData of the box\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateTiledBox(TiledBoxOptions& options);\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 30, "score": 242728.44293349437 }, { "content": " * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * * invertUV swaps in the U and V coordinates when applying a texture, optional, default false\n\n * * uvs a linear array, of length 2 * number of vertices, of custom UV values, optional\n\n * * colors a linear array, of length 4 * number of vertices, of custom color values, optional\n\n * @returns the VertexData of the ribbon\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateRibbon(RibbonOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for a box.\n\n * @param options an object used to set the following optional parameters for the box, required but can be empty\n\n * * size sets the width, height and depth of the box to the value of size, optional default 1\n\n * * width sets the width (x direction) of the box, overwrites the width set by size, optional, default size\n\n * * height sets the height (y direction) of the box, overwrites the height set by size, optional, default size\n\n * * depth sets the depth (z direction) of the box, overwrites the depth set by size, optional, default size\n\n * * faceUV an array of 6 Vector4 elements used to set different images to each box side\n\n * * faceColors an array of 6 Color3 elements used to set different colors to each box side\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 31, "score": 242726.45364409222 }, { "content": " /**\n\n * @brief Creates the VertexData for a torus.\n\n * @param options an object used to set the following optional parameters for the box, required but can be empty\n\n * * diameter the diameter of the torus, optional default 1\n\n * * thickness the diameter of the tube forming the torus, optional default 0.5\n\n * * tessellation the number of prism sides, 3 for a triangular prism, optional, default 24\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the torus\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateTorus(TorusOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData of the LineSystem.\n\n * @param options an object used to set the following optional parameters for the LineSystem, required but can be empty\n\n * - lines an array of lines, each line being an array of successive Vector3\n\n * - colors an array of line colors, each of the line colors being an array of successive Color4, one per line point\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 32, "score": 242725.73760956386 }, { "content": " /**\n\n * @brief Hidden\n\n * @param sideOrientation\n\n * @param positions\n\n * @param indices\n\n * @param normals\n\n * @param uvs\n\n * @param frontUVs\n\n * @param backUVs\n\n */\n\n static void _ComputeSides(std::optional<uint32_t> sideOrientation, Float32Array& positions,\n\n Uint32Array& indices, Float32Array& normals, Float32Array& uvs,\n\n const std::optional<Vector4>& frontUVs = std::nullopt,\n\n const std::optional<Vector4>& backUVs = std::nullopt);\n\n\n\nprivate:\n\n VertexData& _applyTo(IGetSetVerticesData& meshOrGeometry,\n\n const std::optional<bool>& updatable = std::nullopt);\n\n VertexData& _update(IGetSetVerticesData* meshOrGeometry, bool updateExtends = false,\n\n bool makeItUnique = false);\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 33, "score": 242725.69488371973 }, { "content": " [[nodiscard]] Float32Array _mergeElement(const Float32Array& source,\n\n const Float32Array& other) const;\n\n void _validate();\n\n static std::unique_ptr<VertexData> _ExtractFrom(IGetSetVerticesData* meshOrGeometry,\n\n bool copyWhenShared = false,\n\n bool forceCopy = false);\n\n\n\npublic:\n\n /**\n\n * An array of the x, y, z position of each vertex [...., x, y, z, .....]\n\n */\n\n Float32Array positions;\n\n\n\n /**\n\n * An array of the x, y, z normal vector of each vertex [...., x, y, z, .....]\n\n */\n\n Float32Array normals;\n\n\n\n /**\n\n * An array of the x, y, z tangent vector of each vertex [...., x, y, z, .....]\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 34, "score": 242725.6664446638 }, { "content": " * length of the view will match the buffer's length.\n\n */\n\n DataView(const ArrayBuffer& buffer, size_t byteOffset, size_t byteLength);\n\n\n\n DataView(const DataView& other); // Copy constructor\n\n DataView(DataView&& other); // Move constructor\n\n DataView& operator=(const DataView& other); // Copy assignment operator\n\n DataView& operator=(DataView&& other); // Move assignment operator\n\n ~DataView(); // = default\n\n\n\n /**\n\n * @brief Gets a signed 8-bit integer (byte) at the specified byte offset from\n\n * the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian\n\n * @return A signed 8-bit integer number.\n\n */\n\n [[nodiscard]] int8_t getInt8(size_t byteOffset) const;\n\n\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 35, "score": 242725.4578551883 }, { "content": " * @returns VertexData.\n\n */\n\n VertexData& updateGeometry(Geometry* geometry);\n\n\n\n /**\n\n * @brief Transforms each position and each normal of the vertexData according to the passed\n\n * Matrix.\n\n * @param matrix the transforming matrix\n\n * @returns the VertexData\n\n */\n\n VertexData& transform(const Matrix& matrix);\n\n\n\n /**\n\n * @brief Merges the passed VertexData into the current one\n\n * @param other the VertexData to be merged into the current one\n\n * @param use32BitsIndices defines a boolean indicating if indices must be store in a 32 bits\n\n * array\n\n * @returns the modified VertexData\n\n */\n\n VertexData& merge(VertexData& other, bool use32BitsIndices = false);\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 36, "score": 242725.4528457165 }, { "content": "\n\n /**\n\n * @brief Associates the vertexData to the passed Geometry.\n\n * Sets it as updatable or not (default `false`)\n\n * @param geometry the geometry the vertexData is applied to\n\n * @param updatable when used and having the value true allows new data to update the vertexData\n\n * @returns VertexData\n\n */\n\n VertexData& applyToGeometry(Geometry& geometry, bool updatable = false);\n\n\n\n /**\n\n * @brief Updates the associated mesh.\n\n * @param mesh the mesh to be updated\n\n * @returns VertexData\n\n */\n\n VertexData& updateMesh(Mesh* mesh);\n\n\n\n /**\n\n * @brief Updates the associated geometry.\n\n * @param geometry the geometry to be updated\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 37, "score": 242725.08044815346 }, { "content": "\n\n /**\n\n * @brief Serializes the VertexData.\n\n * @returns a serialized object\n\n */\n\n [[nodiscard]] json serialize() const;\n\n\n\n /** Statics **/\n\n\n\n /**\n\n * @brief Extracts the vertexData from a mesh.\n\n * @param mesh the mesh from which to extract the VertexData\n\n * @param copyWhenShared defines if the VertexData must be cloned when shared between multiple\n\n * meshes, optional, default false\n\n * @param forceCopy indicating that the VertexData must be cloned, optional, default false\n\n * @returns the object VertexData associated to the passed mesh\n\n */\n\n static std::unique_ptr<VertexData> ExtractFromMesh(Mesh* mesh, bool copyWhenShared = false,\n\n bool forceCopy = false);\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 38, "score": 242724.58364996145 }, { "content": " * * size the size of the IcoSphere, optional default 1\n\n * * sizeX allows stretching in the x direction, optional, default size\n\n * * sizeY allows stretching in the y direction, optional, default size\n\n * * sizeZ allows stretching in the z direction, optional, default size\n\n * * custom a number that overwrites the type to create from an extended set of polyhedron from https://www.babylonjs-playground.com/#21QRSK#15 with minimised editor\n\n * * faceUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively\n\n * * faceColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively\n\n * * flat when true creates a flat shaded mesh, optional, default true\n\n * * subdivisions increasing the subdivisions increases the number of faces, optional, default 4\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the Polyhedron\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreatePolyhedron(PolyhedronOptions& options);\n\n\n\n /**\n\n * @brief Creates the VertexData for a Capsule, inspired from\n\n * https://github.com/maximeq/three-js-capsule-geometry/blob/master/src/CapsuleBufferGeometry.js\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 39, "score": 242724.56656918526 }, { "content": " * * height sets the height (y direction) of the cylinder, optional, default 2\n\n * * diameterTop sets the diameter of the top of the cone, overwrites diameter, optional, default diameter\n\n * * diameterBottom sets the diameter of the bottom of the cone, overwrites diameter, optional, default diameter\n\n * * diameter sets the diameter of the top and bottom of the cone, optional default 1\n\n * * tessellation the number of prism sides, 3 for a triangular prism, optional, default 24\n\n * * subdivisions` the number of rings along the cylinder height, optional, default 1\n\n * * arc a number from 0 to 1, to create an unclosed cylinder based on the fraction of the circumference given by the arc value, optional, default 1\n\n * * faceColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively\n\n * * faceUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively\n\n * * hasRings when true makes each subdivision independantly treated as a face for faceUV and faceColors, optional, default false\n\n * * enclose when true closes an open cylinder by adding extra flat faces between the height axis and vertical edges, think cut cake\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the cylinder, cone or prism\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateCylinder(CylinderOptions& options);\n\n\n\n // clang-format off\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 40, "score": 242722.866765618 }, { "content": " * @returns the VertexData of the LineSystem\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateLineSystem(LineSystemOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Create the VertexData for a DashedLines.\n\n * @param options an object used to set the following optional parameters for the DashedLines, required but can be empty\n\n * - points an array successive Vector3\n\n * - dashSize the size of the dashes relative to the dash number, optional, default 3\n\n * - gapSize the size of the gap between two successive dashes relative to the dash number, optional, default 1\n\n * - dashNb the intended total number of dashes, optional, default 200\n\n * @returns the VertexData for the DashedLines\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateDashedLines(DashedLinesOptions& options);\n\n\n\n // clang-format off\n\n /**\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 41, "score": 242722.73250359567 }, { "content": " /**\n\n * @brief Extracts the vertexData from the geometry.\n\n * @param geometry the geometry from which to extract the VertexData\n\n * @param copyWhenShared defines if the VertexData must be cloned when the geometry is shared\n\n * between multiple meshes, optional, default false\n\n * @param forceCopy indicating that the VertexData must be cloned, optional, default false\n\n * @returns the object VertexData associated to the passed mesh\n\n */\n\n static std::unique_ptr<VertexData> ExtractFromGeometry(Geometry* geometry, bool copyWhenShared,\n\n bool forceCopy = false);\n\n\n\n // clang-format off\n\n /**\n\n * C@brief reates the VertexData for a Ribbon.\n\n * @param options an object used to set the following optional parameters for the ribbon, required but can be empty\n\n * * pathArray array of paths, each of which an array of successive Vector3\n\n * * closeArray creates a seam between the first and the last paths of the pathArray, optional, default false\n\n * * closePath creates a seam between the first and the last points of each path of the path array, optional, default false\n\n * * offset a positive integer, only used when pathArray contains a single path (offset = 10 means the point 1 is joined to the point 11), default rounded half size of the pathArray length\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 42, "score": 242722.6238963251 }, { "content": " * @param fUV an array of Vector4 elements used to set different images to the top, rings and bottom respectively\n\n * @param fColors an array of Color3 elements used to set different colors to the top, rings and bottom respectively\n\n * @param frontUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * @param backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @param wrap a boolean, default false, when true and fUVs used texture is wrapped around all sides, when false texture is applied side\n\n * @returns the VertexData of the Polygon\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreatePolygon(\n\n Mesh* polygon, unsigned int sideOrientation, const std::array<std::optional<Vector4>, 3>& fUV,\n\n const std::optional<std::array<std::optional<Color4>, 3>>& fColors, Vector4& frontUVs,\n\n Vector4& backUVs, const std::optional<bool>& wrap = std::nullopt);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates a sphere based upon an icosahedron with 20 triangular faces which can be subdivided\n\n * * The parameter `radius` sets the radius size (float) of the icosphere (default 1)\n\n * * You can set some different icosphere dimensions, for instance to build an ellipsoid, by using the parameters `radiusX`, `radiusY` and `radiusZ` (all by default have the same value of `radius`)\n\n * * The parameter `subdivisions` sets the number of subdivisions (positive integer, default 4). The more subdivisions, the more faces on the icosphere whatever its size\n\n * * The parameter `flat` (boolean, default true) gives each side its own normals. Set it to false to get a smooth continuous light reflection on the surface\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 43, "score": 242722.5355849987 }, { "content": " /**\n\n * @brief Gets an unsigned 8-bit integer (unsigned byte) at the specified byte\n\n * offset from the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian\n\n * @return An unsigned 8-bit integer number.\n\n */\n\n [[nodiscard]] uint8_t getUint8(size_t byteOffset) const;\n\n\n\n /**\n\n * @brief Gets a signed 16-bit integer (short) at the specified byte offset\n\n * from the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian Indicates whether the 16-bit int is stored in little-\n\n * or big-endian format. If false or undefined, a big-endian value is read.\n\n * @return A signed 16-bit integer number.\n\n */\n\n [[nodiscard]] int16_t getInt16(size_t byteOffset, bool littleEndian = true) const;\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 44, "score": 242721.96900292012 }, { "content": " */\n\n [[nodiscard]] uint16_t getUint16(size_t byteOffset, bool littleEndian = true) const;\n\n\n\n /**\n\n * @brief Gets an unsigned 32-bit integer (unsigned short) at the specified\n\n * byte offset from the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian Indicates whether the 16-bit int is stored in little-\n\n * or big-endian format. If false or undefined, a big-endian value is read.\n\n * @return An unsigned 32-bit integer number.\n\n */\n\n [[nodiscard]] uint32_t getUint32(size_t byteOffset, bool littleEndian = true) const;\n\n\n\n /**\n\n * @brief Gets a signed 32-bit float (float) at the specified byte offset from\n\n * the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian Indicates whether the 32-bit float is stored in little-\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 45, "score": 242721.75145879746 }, { "content": "\n\n /**\n\n * @brief Gets a signed 32-bit integer (signed short) at the specified byte\n\n * offset from the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian Indicates whether the 32-bit int is stored in little-\n\n * or big-endian format. If false or undefined, a big-endian value is read.\n\n * @return A signed 32-bit integer number.\n\n */\n\n [[nodiscard]] int32_t getInt32(size_t byteOffset, bool littleEndian = true) const;\n\n\n\n /**\n\n * @brief Gets an unsigned 16-bit integer (unsigned short) at the specified\n\n * byte offset from the start of the DataView.\n\n * @param byteOffset The offset, in byte, from the start of the view where to\n\n * read the data.\n\n * @param littleEndian Indicates whether the 16-bit int is stored in little-\n\n * or big-endian format. If false or undefined, a big-endian value is read.\n\n * @return An unsigned 16-bit integer number.\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 46, "score": 242721.64519622977 }, { "content": " * * You can also set the mesh side orientation with the values : BABYLON.Mesh.FRONTSIDE (default), BABYLON.Mesh.BACKSIDE or BABYLON.Mesh.DOUBLESIDE\n\n * * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/babylon101/discover_basic_elements#side-orientation\n\n * * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created\n\n * @param name defines the name of the mesh\n\n * @param options defines the options used to create the mesh\n\n * @param scene defines the hosting scene\n\n * @returns the icosahedron mesh\n\n * @see https://doc.babylonjs.com/how_to/polyhedra_shapes#icosphere\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateIcoSphere(IcoSphereOptions& options);\n\n\n\n // clang-format off\n\n // inspired from // http://stemkoski.github.io/Three.js/Polyhedra.html\n\n /**\n\n * @brief Creates the VertexData for a Polyhedron.\n\n * @param options an object used to set the following optional parameters for the polyhedron, required but can be empty\n\n * * type provided types are:\n\n * * 0 : Tetrahedron, 1 : Octahedron, 2 : Dodecahedron, 3 : Icosahedron, 4 : Rhombicuboctahedron, 5 : Triangular Prism, 6 : Pentagonal Prism, 7 : Hexagonal Prism, 8 : Square Pyramid (J1)\n\n * * 9 : Pentagonal Pyramid (J2), 10 : Triangular Dipyramid (J12), 11 : Pentagonal Dipyramid (J13), 12 : Elongated Square Dipyramid (J15), 13 : Elongated Pentagonal Dipyramid (J16), 14 : Elongated Pentagonal Cupola (J20)\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 47, "score": 242721.26625314326 }, { "content": " * @brief Creates the VertexData for a Ground.\n\n * @param options an object used to set the following optional parameters for the Ground, required but can be empty\n\n * - width the width (x direction) of the ground, optional, default 1\n\n * - height the height (z direction) of the ground, optional, default 1\n\n * - subdivisions the number of subdivisions per side, optional, default 1\n\n * @returns the VertexData of the Ground\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateGround(GroundOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for a TiledGround by subdividing the ground into tiles.\n\n * @param options an object used to set the following optional parameters for the Ground, required but can be empty\n\n * * xmin the ground minimum X coordinate, optional, default -1\n\n * * zmin the ground minimum Z coordinate, optional, default -1\n\n * * xmax the ground maximum X coordinate, optional, default 1\n\n * * zmax the ground maximum Z coordinate, optional, default 1\n\n * * subdivisions a javascript object {w: positive integer, h: positive integer}, `w` and `h` are the numbers of subdivisions on the ground width and height creating 'tiles', default {w: 6, h: 6}\n\n * * precision a javascript object {w: positive integer, h: positive integer}, `w` and `h` are the numbers of subdivisions on the tile width and height, default {w: 2, h: 2}\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 48, "score": 242720.72694837398 }, { "content": " */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateGroundFromHeightMap(GroundFromHeightMapOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for a Plane.\n\n * @param options an object used to set the following optional parameters for the plane, required but can be empty\n\n * * size sets the width and height of the plane to the value of size, optional default 1\n\n * * width sets the width (x direction) of the plane, overwrites the width set by size, optional, default size\n\n * * height sets the height (y direction) of the plane, overwrites the height set by size, optional, default size\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the box\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreatePlane(PlaneOptions& options);\n\n\n\n // clang-format off\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 49, "score": 242720.42811271426 }, { "content": "\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for a tiled plane.\n\n * @param options an object used to set the following optional parameters for the box, required but can be empty\n\n * * pattern a limited pattern arrangement depending on the number\n\n * * tileSize sets the width, height and depth of the tile to the value of size, optional default 1\n\n * * tileWidth sets the width (x direction) of the tile, overwrites the width set by size, optional, default size\n\n * * tileHeight sets the height (y direction) of the tile, overwrites the height set by size, optional, default size\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the tiled plane\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateTiledPlane(TiledPlaneOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for an ellipsoid, defaults to a sphere.\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 50, "score": 242720.31245136703 }, { "content": " /**\n\n * @brief Creates the VertexData of the Disc or regular Polygon.\n\n * @param options an object used to set the following optional parameters for the disc, required but can be empty\n\n * * radius the radius of the disc, optional default 0.5\n\n * * tessellation the number of polygon sides, optional, default 64\n\n * * arc a number from 0 to 1, to create an unclosed polygon based on the fraction of the circumference given by the arc value, optional, default 1\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the box\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateDisc(DiscOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for an irregular Polygon in the XoZ plane using a mesh built by polygonTriangulation.build().\n\n * All parameters are provided by MeshBuilder.CreatePolygon as needed\n\n * @param polygon a mesh built from polygonTriangulation.build()\n\n * @param sideOrientation takes the values Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 51, "score": 242720.00515010004 }, { "content": " * @param options an object used to set the following optional parameters for the capsule,\n\n * required but can be empty\n\n * @returns the VertexData of the Capsule\n\n * @see https://doc.babylonjs.com/how_to/capsule_shape\n\n */\n\n static std::unique_ptr<VertexData> CreateCapsule(const ICreateCapsuleOptions& options);\n\n\n\n // clang-format off\n\n // based on http://code.google.com/p/away3d/source/browse/trunk/fp10/Away3D/src/away3d/primitives/TorusKnot.as?spec=svn2473&r=2473\n\n /**\n\n * @brief Creates the VertexData for a TorusKnot.\n\n * @param options an object used to set the following optional parameters for the TorusKnot, required but can be empty\n\n * * radius the radius of the torus knot, optional, default 2\n\n * * tube the thickness of the tube, optional, default 0.5\n\n * * radialSegments the number of sides on each tube segments, optional, default 32\n\n * * tubularSegments the number of tubes to decompose the knot into, optional, default 32\n\n * * p the number of windings around the z axis, optional, default 2\n\n * * q the number of windings around the x axis, optional, default 3\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 52, "score": 242718.94254400345 }, { "content": " * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the Torus Knot\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateTorusKnot(TorusKnotOptions& options);\n\n\n\n /** Tools **/\n\n\n\n // clang-format off\n\n /**\n\n * @brief Compute normals for given positions and indices.\n\n * @param positions an array of vertex positions, [...., x, y, z, ......]\n\n * @param indices an array of indices in groups of three for each triangular facet, [...., i, j, k, ......]\n\n * @param normals an array of vertex normals, [...., x, y, z, ......]\n\n * @param options an object used to set the following optional parameters for the TorusKnot, optional\n\n * * facetNormals : optional array of facet normals (vector3)\n\n * * facetPositions : optional array of facet positions (vector3)\n\n * * facetPartitioning : optional partitioning array. facetPositions is required for facetPartitioning computation\n\n * * ratio : optional partitioning ratio / bounding box, required for facetPartitioning computation\n\n * * bInfo : optional bounding info, required for facetPartitioning computation\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 53, "score": 242717.66937879243 }, { "content": " * @param options an object used to set the following optional parameters for the box, required but can be empty\n\n * * segments sets the number of horizontal strips optional, default 32\n\n * * diameter sets the axes dimensions, diameterX, diameterY and diameterZ to the value of diameter, optional default 1\n\n * * diameterX sets the diameterX (x direction) of the ellipsoid, overwrites the diameterX set by diameter, optional, default diameter\n\n * * diameterY sets the diameterY (y direction) of the ellipsoid, overwrites the diameterY set by diameter, optional, default diameter\n\n * * diameterZ sets the diameterZ (z direction) of the ellipsoid, overwrites the diameterZ set by diameter, optional, default diameter\n\n * * arc a number from 0 to 1, to create an unclosed ellipsoid based on the fraction of the circumference (latitude) given by the arc value, optional, default 1\n\n * * slice a number from 0 to 1, to create an unclosed ellipsoid based on the fraction of the height (latitude) given by the arc value, optional, default 1\n\n * * sideOrientation optional and takes the values : Mesh.FRONTSIDE (default), Mesh.BACKSIDE or Mesh.DOUBLESIDE\n\n * * frontUvs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the front side, optional, default vector4 (0, 0, 1, 1)\n\n * * backUVs only usable when you create a double-sided mesh, used to choose what parts of the texture image to crop and apply on the back side, optional, default vector4 (0, 0, 1, 1)\n\n * @returns the VertexData of the ellipsoid\n\n */\n\n // clang-format on\n\n static std::unique_ptr<VertexData> CreateSphere(SphereOptions& options);\n\n\n\n // clang-format off\n\n /**\n\n * @brief Creates the VertexData for a cylinder, cone or prism.\n\n * @param options an object used to set the following optional parameters for the box, required but can be empty\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 54, "score": 242717.5909740402 }, { "content": " */\n\n Float32Array uvs4;\n\n\n\n /**\n\n * A fifth array of u,v which maps a texture image onto each vertex [...., u, v, .....]\n\n */\n\n Float32Array uvs5;\n\n\n\n /**\n\n * A sixth array of u,v which maps a texture image onto each vertex [...., u, v, .....]\n\n */\n\n Float32Array uvs6;\n\n\n\n /**\n\n * An array of the r, g, b, a, color of each vertex [...., r, g, b, a, .....]\n\n */\n\n Float32Array colors;\n\n\n\n /**\n\n * An array containing the list of indices to the array of matrices produced by bones, each vertex\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 55, "score": 242714.84709076048 }, { "content": " * or big-endian format. If false or undefined, a big-endian value is read.\n\n * @return A signed 32-bit float number.\n\n */\n\n [[nodiscard]] float getFloat32(size_t byteOffset, bool littleEndian = true) const;\n\n\n\n /**\n\n * @brief Revert the endianness of a value.\n\n * Not as fast hardware based, but will probably never need to use\n\n * @param val defines the value to convert\n\n * @returns the new value\n\n */\n\n static int switchEndianness(int val);\n\n\n\nprivate:\n\n /**\n\n * The ArrayBuffer referenced by this view\n\n */\n\n ArrayBuffer _buffer;\n\n\n\n /**\n", "file_path": "src/BabylonCpp/include/babylon/core/data_view.h", "rank": 56, "score": 242707.93385243078 }, { "content": " */\n\n Float32Array tangents;\n\n\n\n /**\n\n * An array of u,v which maps a texture image onto each vertex [...., u, v, .....]\n\n */\n\n Float32Array uvs;\n\n\n\n /**\n\n * A second array of u,v which maps a texture image onto each vertex [...., u, v, .....]\n\n */\n\n Float32Array uvs2;\n\n\n\n /**\n\n * A third array of u,v which maps a texture image onto each vertex [...., u, v, .....]\n\n */\n\n Float32Array uvs3;\n\n\n\n /**\n\n * A fourth array of u,v which maps a texture image onto each vertex [...., u, v, .....]\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 57, "score": 242707.93385243078 }, { "content": " * have up to 4 indices (8 if the matricesIndicesExtra is set).\n\n */\n\n Float32Array matricesIndices;\n\n\n\n /**\n\n * An array containing the list of weights defining the weight of each indexed matrix in the final\n\n * computation\n\n */\n\n Float32Array matricesWeights;\n\n\n\n /**\n\n * An array extending the number of possible indices\n\n */\n\n Float32Array matricesIndicesExtra;\n\n\n\n /**\n\n * An array extending the number of possible weights when the number of\n\n * indices is extended\n\n */\n\n Float32Array matricesWeightsExtra;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 58, "score": 242707.93385243078 }, { "content": "struct BABYLON_SHARED_EXPORT PhysicsVortexEventData {\n\n /**\n\n * A cylinder used for the vortex event\n\n */\n\n MeshPtr cylinder = nullptr;\n\n}; // end of struct PhysicsVortexEventData\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_PHYSICS_HELPER_PHYSICS_EVENT_DATA_H\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_event_data.h", "rank": 59, "score": 242367.3081322092 }, { "content": "struct BABYLON_SHARED_EXPORT _InternalMeshDataInfo {\n\n // Events\n\n Observable<Mesh> _onBeforeRenderObservable;\n\n Observable<Mesh> _onBeforeBindObservable;\n\n Observable<Mesh> _onAfterRenderObservable;\n\n Observable<Mesh> _onBeforeDrawObservable;\n\n Observable<SubMesh> _onBetweenPassObservable;\n\n\n\n // Will be used by ribbons mainly\n\n bool _areNormalsFrozen = false;\n\n // Will be used to save original positions when using software skinning\n\n Float32Array _sourcePositions;\n\n // Will be used to save original normals when using software skinning\n\n Float32Array _sourceNormals;\n\n\n\n // Will be used to save a source mesh reference, If any\n\n Mesh* _source = nullptr;\n\n // Will be used to for fast cloned mesh lookup\n\n std::unordered_map<std::string, Mesh*> meshMap;\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_internal_mesh_data_info.h", "rank": 60, "score": 242367.3081322092 }, { "content": "struct BABYLON_SHARED_EXPORT PhysicsUpdraftEventData {\n\n /**\n\n * A cylinder used for the updraft event\n\n */\n\n MeshPtr cylinder = nullptr;\n\n}; // end of struct PhysicsUpdraftEventData\n\n\n\n/**\n\n * @brief Interface for vortex event data.\n\n * @see\n\n * https://doc.babylonjs.com/how_to/using_the_physics_engine#further-functionality-of-the-impostor-class\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_event_data.h", "rank": 61, "score": 242367.3081322092 }, { "content": "struct BABYLON_SHARED_EXPORT IGetSetVerticesData {\n\n virtual ~IGetSetVerticesData() = default;\n\n /**\n\n * @brief Gets a boolean indicating if specific vertex data is present.\n\n * @param kind defines the vertex data kind to use\n\n * @returns true is data kind is present\n\n */\n\n [[nodiscard]] virtual bool isVerticesDataPresent(const std::string& kind) const = 0;\n\n\n\n /**\n\n * @brief Gets a specific vertex data attached to this geometry. Float data is constructed if the\n\n * vertex buffer data cannot be returned directly.\n\n * @param kind defines the data kind (Position, normal, etc...)\n\n * @param copyWhenShared defines if the returned array must be cloned upon returning it if the\n\n * current geometry is shared between multiple meshes\n\n * @param forceCopy defines a boolean indicating that the returned array must be cloned upon\n\n * returning it\n\n * @returns a float array containing vertex data\n\n */\n\n virtual Float32Array getVerticesData(const std::string& kind, bool copyWhenShared = false,\n", "file_path": "src/BabylonCpp/include/babylon/meshes/iget_set_vertices_data.h", "rank": 62, "score": 242367.3081322092 }, { "content": "class BABYLON_SHARED_EXPORT WebGLDataBuffer : public DataBuffer<GL::IGLBufferPtr> {\n\n\n\npublic:\n\n WebGLDataBuffer(const GL::IGLBufferPtr& resource);\n\n ~WebGLDataBuffer() override; // = default\n\n\n\n GL::IGLBufferPtr underlyingResource() override;\n\n\n\nprivate:\n\n GL::IGLBufferPtr _buffer;\n\n\n\n}; // end of class ISimplifier\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_MESHES_WEBGL_DATA_BUFFER_H\n", "file_path": "src/BabylonCpp/include/babylon/meshes/webgl/webgl_data_buffer.h", "rank": 63, "score": 238926.704617612 }, { "content": "struct BABYLON_SHARED_EXPORT PhysicsRadialExplosionEventData {\n\n /**\n\n * A sphere used for the radial explosion event\n\n */\n\n MeshPtr sphere = nullptr;\n\n}; // end of struct PhysicsRadialExplosionEventData\n\n\n\n/**\n\n * @brief Interface for gravitational field event data.\n\n * @see\n\n * https://doc.babylonjs.com/how_to/using_the_physics_engine#further-functionality-of-the-impostor-class\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_event_data.h", "rank": 64, "score": 238814.23051768215 }, { "content": "struct BABYLON_SHARED_EXPORT PhysicsGravitationalFieldEventData {\n\n /**\n\n * A sphere mesh used for the gravitational field event\n\n */\n\n MeshPtr sphere = nullptr;\n\n}; // end of struct PhysicsGravitationalFieldEventData\n\n\n\n/**\n\n * @brief Interface for updraft event data.\n\n * @see\n\n * https://doc.babylonjs.com/how_to/using_the_physics_engine#further-functionality-of-the-impostor-class\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_event_data.h", "rank": 65, "score": 238814.23051768215 }, { "content": "#ifndef BABYLON_MESHES_INSTANCE_DATA_STORAGE_H\n\n#define BABYLON_MESHES_INSTANCE_DATA_STORAGE_H\n\n\n\n#include <unordered_map>\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_common.h>\n\n#include <babylon/babylon_fwd.h>\n\n#include <babylon/maths/path3d.h>\n\n\n\nnamespace BABYLON {\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_instance_data_storage.h", "rank": 66, "score": 237097.69119341313 }, { "content": "#ifndef BABYLON_COLLISIONS_MESH_COLLISION_DATA_H\n\n#define BABYLON_COLLISIONS_MESH_COLLISION_DATA_H\n\n\n\n#include <memory>\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_common.h>\n\n#include <babylon/babylon_fwd.h>\n\n#include <babylon/maths/vector3.h>\n\n#include <babylon/misc/observer.h>\n\n\n\nnamespace BABYLON {\n\n\n\nFWD_CLASS_SPTR(AbstractMesh)\n\nFWD_CLASS_SPTR(Collider)\n\n\n\n/**\n\n * @brief Hidden\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/collisions/_mesh_collision_data.h", "rank": 67, "score": 237096.03446046135 }, { "content": "class VertexData;\n\nFWD_CLASS_SPTR(Effect)\n\nFWD_CLASS_SPTR(Geometry)\n\nFWD_CLASS_SPTR(Mesh)\n\nFWD_CLASS_SPTR(VertexBuffer)\n\nFWD_CLASS_SPTR(WebGLDataBuffer)\n\nusing WebGLVertexArrayObjectPtr = std::shared_ptr<GL::IGLVertexArrayObject>;\n\n\n\n/**\n\n * @brief Class used to store geometry data (vertex buffers + index buffer).\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/meshes/geometry.h", "rank": 68, "score": 237060.75278445147 }, { "content": "class BABYLON_SHARED_EXPORT Color3 {\n\n\n\nprivate:\n\n static const Color3 _BlackReadOnly;\n\n\n\npublic:\n\n /**\n\n * @brief Creates a new Color3 object from red, green, blue values, all\n\n * between 0 and 1.\n\n * @param r defines the red component (between 0 and 1, default is 0)\n\n * @param g defines the green component (between 0 and 1, default is 0)\n\n * @param b defines the blue component (between 0 and 1, default is 0)\n\n */\n\n Color3(float red = 0.f, float green = 0.f, float blue = 0.f);\n\n Color3(const Color3& otherColor); // Copy constructor\n\n Color3(Color3&& otherColor); // Move constructor\n\n Color3& operator=(const Color3& otherColor); // Copy assignment operator\n\n Color3& operator=(const Color4& otherColor); // Copy assignment operator\n\n Color3& operator=(Color3&& otherColor); // Move assignment operator\n\n ~Color3(); // = default\n", "file_path": "src/BabylonCpp/include/babylon/maths/color3.h", "rank": 69, "score": 232158.17972465497 }, { "content": "#ifndef BABYLON_MESHES_WEBGL_DATA_BUFFER_H\n\n#define BABYLON_MESHES_WEBGL_DATA_BUFFER_H\n\n\n\n#include <memory>\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_fwd.h>\n\n#include <babylon/buffers/data_buffer.h>\n\n\n\nnamespace BABYLON {\n\n\n\nnamespace GL {\n\nFWD_CLASS_SPTR(IGLBuffer)\n\n} // end of namespace GL\n\n\n\n/**\n\n * @brief Hidden\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/meshes/webgl/webgl_data_buffer.h", "rank": 70, "score": 231717.5518073625 }, { "content": "#ifndef BABYLON_PHYSICS_HELPER_PHYSICS_EVENT_DATA_H\n\n#define BABYLON_PHYSICS_HELPER_PHYSICS_EVENT_DATA_H\n\n\n\n#include <memory>\n\n\n\n#include <babylon/babylon_api.h>\n\n\n\nnamespace BABYLON {\n\n\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_event_data.h", "rank": 71, "score": 231715.0322350293 }, { "content": "#ifndef BABYLON_MESHES_IGET_SET_VERTICES_DATA_H\n\n#define BABYLON_MESHES_IGET_SET_VERTICES_DATA_H\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_common.h>\n\n\n\nnamespace BABYLON {\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/iget_set_vertices_data.h", "rank": 72, "score": 231714.94381589736 }, { "content": "#ifndef BABYLON_MESHES_INTERNAL_MESH_DATA_INFO_H\n\n#define BABYLON_MESHES_INTERNAL_MESH_DATA_INFO_H\n\n\n\n#include <memory>\n\n#include <unordered_map>\n\n\n\n#include <babylon/babylon_api.h>\n\n#include <babylon/babylon_common.h>\n\n#include <babylon/babylon_fwd.h>\n\n#include <babylon/misc/observable.h>\n\n\n\nnamespace BABYLON {\n\n\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_internal_mesh_data_info.h", "rank": 73, "score": 231714.70652524554 }, { "content": " int _preActivateId = -1;\n\n std::vector<MeshLODLevelPtr> _LODLevels;\n\n\n\n // Morph\n\n MorphTargetManagerPtr _morphTargetManager = nullptr;\n\n}; // end of struct _InternalMeshDataInfo\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_MESHES_INTERNAL_MESH_DATA_INFO_H\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_internal_mesh_data_info.h", "rank": 74, "score": 231704.656862073 }, { "content": " * - VertexBuffer.MatricesWeightsKind\n\n * - VertexBuffer.MatricesWeightsExtraKind\n\n * @param data defines the data source\n\n * @param updateExtends defines if extends info of the mesh must be updated (can be null). This is\n\n * mostly useful for \"position\" kind\n\n * @param makeItUnique defines if the geometry associated with the mesh must be cloned to make the\n\n * change only for this mesh (and not all meshes associated with the same geometry)\n\n */\n\n virtual AbstractMesh* updateVerticesData(const std::string& kind, const Float32Array& data,\n\n bool updateExtends = false, bool makeItUnique = false)\n\n = 0;\n\n\n\n /**\n\n * @brief Creates a new index buffer.\n\n * @param indices defines the indices to store in the index buffer\n\n * @param totalVertices defines the total number of vertices (could be null)\n\n * @param updatable defines if the index buffer must be flagged as updatable (false by default)\n\n */\n\n virtual AbstractMesh* setIndices(const IndicesArray& indices, size_t totalVertices = 0,\n\n bool updatable = false)\n\n = 0;\n\n}; // end of struct IGetSetVerticesData\n\n\n\n} // end of namespace BABYLON\n\n\n\n#endif // end of BABYLON_MESHES_IGET_SET_VERTICES_DATA_H\n", "file_path": "src/BabylonCpp/include/babylon/meshes/iget_set_vertices_data.h", "rank": 75, "score": 231700.81635857662 }, { "content": " bool forceCopy = false)\n\n = 0;\n\n /**\n\n * @brief Returns an array of integers or a typed array (Int32Array, Uint32Array, Uint16Array)\n\n * populated with the mesh indices.\n\n * @param copyWhenShared If true (default false) and and if the mesh geometry is shared among some\n\n * other meshes, the returned array is a copy of the internal one.\n\n * @param forceCopy defines a boolean indicating that the returned array must be cloned upon\n\n * returning it\n\n * @returns the indices array or an empty array if the mesh has no geometry\n\n */\n\n virtual IndicesArray getIndices(bool copyWhenShared = false, bool forceCopy = false) = 0;\n\n\n\n /**\n\n * @brief Set specific vertex data.\n\n * @param kind defines the data kind (Position, normal, etc...)\n\n * @param data defines the vertex data to use\n\n * @param updatable defines if the vertex must be flagged as updatable (false as default)\n\n * @param stride defines the stride to use (0 by default). This value is deduced from the kind\n\n * value if not specified\n", "file_path": "src/BabylonCpp/include/babylon/meshes/iget_set_vertices_data.h", "rank": 76, "score": 231695.19552384788 }, { "content": " */\n\n virtual AbstractMesh* setVerticesData(const std::string& kind, const Float32Array& data,\n\n bool updatable = false,\n\n const std::optional<size_t>& stride = std::nullopt)\n\n = 0;\n\n\n\n /**\n\n * @brief Update a specific associated vertex buffer.\n\n * @param kind defines which buffer to write to (positions, indices, normals,\n\n * etc). Possible `kind` values :\n\n * - VertexBuffer.PositionKind\n\n * - VertexBuffer.UVKind\n\n * - VertexBuffer.UV2Kind\n\n * - VertexBuffer.UV3Kind\n\n * - VertexBuffer.UV4Kind\n\n * - VertexBuffer.UV5Kind\n\n * - VertexBuffer.UV6Kind\n\n * - VertexBuffer.ColorKind\n\n * - VertexBuffer.MatricesIndicesKind\n\n * - VertexBuffer.MatricesIndicesExtraKind\n", "file_path": "src/BabylonCpp/include/babylon/meshes/iget_set_vertices_data.h", "rank": 77, "score": 231693.3357928698 }, { "content": "class SphereOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 78, "score": 231678.14643519613 }, { "content": "class BoxOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 79, "score": 231678.14643519613 }, { "content": "class DataView;\n", "file_path": "src/BabylonCpp/include/babylon/buffers/vertex_buffer.h", "rank": 80, "score": 231678.14643519613 }, { "content": "class PlaneOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 81, "score": 231678.14643519613 }, { "content": "class GroundOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 82, "score": 231678.14643519613 }, { "content": "class DiscOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 83, "score": 231678.14643519613 }, { "content": "class RibbonOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 84, "score": 231678.14643519613 }, { "content": "class CylinderOptions;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 85, "score": 231678.14643519613 }, { "content": "class TorusOptions;\n\n\n\n/**\n\n * @brief This class contains the various kinds of data on every vertex of a mesh used in\n\n * determining its shape and appearance.\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/meshes/vertex_data.h", "rank": 86, "score": 231678.14643519613 }, { "content": "class Buffer;\n\nFWD_STRUCT_SPTR(_InstancesBatch)\n\nFWD_STRUCT_SPTR(_VisibleInstances)\n\nFWD_CLASS_SPTR(Buffer)\n\n\n\n/**\n\n * @brief Hidden\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_instance_data_storage.h", "rank": 87, "score": 231678.14643519613 }, { "content": "struct _InstanceDataStorage;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/mesh.h", "rank": 88, "score": 231678.14643519613 }, { "content": "namespace BABYLON {\n\n\n\n/**\n\n * @brief Class used to store color3 gradient.\n\n */\n\nstruct BABYLON_SHARED_EXPORT Color3Gradient : public IValueGradient {\n\n\n\n /**\n\n * @brief Creates a new color3 gradient.\n\n * @param gradient gets or sets the gradient value (between 0 and 1)\n\n * @param color gets or sets associated color\n\n */\n\n Color3Gradient(float gradient, const Color3& color);\n\n ~Color3Gradient(); // = default\n\n\n\n /**\n\n * Gets or sets the associated color\n\n */\n\n Color3 color;\n\n\n\n}; // end of struct Color3Gradient\n\n\n\nbool operator==(const Color3Gradient& lhs, const Color3Gradient& rhs);\n\nbool operator!=(const Color3Gradient& lhs, const Color3Gradient& rhs);\n\n\n", "file_path": "src/BabylonCpp/include/babylon/misc/color3_gradient.h", "rank": 89, "score": 229561.5208571987 }, { "content": "enum class Color {\n\n MONOCHROME = 0,\n\n RED = 1,\n\n ORANGE = 2,\n\n YELLOW = 3,\n\n GREEN = 4,\n\n BLUE = 5,\n\n PURPLE = 6,\n\n PINK = 7\n\n}; // end of enum class Color\n\n\n", "file_path": "src/BabylonCpp/include/babylon/utils/random_color.h", "rank": 90, "score": 228916.62788376526 }, { "content": " std::vector<std::string> ids{};\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_waiting_data.h", "rank": 91, "score": 228502.5284424966 }, { "content": "class Color3;\n", "file_path": "src/BabylonCpp/include/babylon/materials/effect.h", "rank": 92, "score": 227530.9745875037 }, { "content": "class Color3;\n\n\n\n/**\n\n * @brief Class used to hold a RBGA color.\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/maths/color4.h", "rank": 93, "score": 227530.9745875037 }, { "content": "struct _InternalMeshDataInfo;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/mesh.h", "rank": 94, "score": 226541.55847962512 }, { "content": "struct _InternalNodeDataInfo {\n\n bool _doNotSerialize = false;\n\n bool _isDisposed = false;\n\n int _sceneRootNodesIndex = -1;\n\n bool _isEnabled = true;\n\n bool _isParentEnabled = true;\n\n bool _isReady = true;\n\n Observable<bool> _onEnabledStateChangedObservable;\n\n Observable<Node> _onClonedObservable;\n\n}; // end of struct _InternalNodeDataInfo\n\n\n\n/**\n\n * @brief Node is the basic class for all scene objects (Mesh, Light, Camera.)\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/engines/node.h", "rank": 95, "score": 226541.55847962512 }, { "content": "struct CubeTextureData;\n", "file_path": "src/BabylonCpp/include/babylon/engines/thin_engine.h", "rank": 96, "score": 226541.55847962512 }, { "content": "class Mesh;\n", "file_path": "src/BabylonCpp/include/babylon/meshes/_internal_mesh_data_info.h", "rank": 97, "score": 226541.55847962512 }, { "content": "struct PhysicsJointData;\n", "file_path": "src/BabylonCpp/include/babylon/physics/physics_impostor.h", "rank": 98, "score": 226541.55847962512 }, { "content": "class Mesh;\n\nusing MeshPtr = std::shared_ptr<Mesh>;\n\n\n\n/**\n\n * @brief Interface for radial explosion event data.\n\n * @see\n\n * https://doc.babylonjs.com/how_to/using_the_physics_engine#further-functionality-of-the-impostor-class\n\n */\n", "file_path": "src/BabylonCpp/include/babylon/physics/helper/physics_event_data.h", "rank": 99, "score": 226541.55847962512 } ]
C++
examples/UseOptiXGeometryInstancedStandalone/UseOptiXGeometryInstancedStandalone.cc
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
"\n\n#include <chrono>\n\n#include <iomanip>\n#include <iostream>\n#include <cstdlib>\n#include <cst(...TRUNCATED)
"\n\n#include <chrono>\n\n#include <iomanip>\n#include <iostream>\n#include <cstdlib>\n#include <cst(...TRUNCATED)
"tion( context->createAcceleration( \"Trbvh\" ) ); \n top->addChild(assembly);\n\n optix::Acce(...TRUNCATED)
"ec3(axis_angle)) ; break ; \n case 't': mat = glm::translate(mat, tlat ) ; break ; \n (...TRUNCATED)
random
[{"content":"struct DescriptorDataType<unsigned int> { static const char value = 'u'; };\n\ntemplate(...TRUNCATED)
C++
CompareContacts/main.cpp
Sioniras/MD-Tools
df408c122dfb57100bdc976dba66b47ee03622fe
"\n\n#include <iostream>\n#include <vector>\n#include <memory>\n#include <cstdlib>\n#include <algori(...TRUNCATED)
"\n\n#include <iostream>\n#include <vector>\n#include <memory>\n#include <cstdlib>\n#include <algori(...TRUNCATED)
"\t\t\t\tstr << \" \" << std::setw(columnpadding) << \"\" << \" |\";\n\t\t\t}\n\t\t\t\n\t\t\tk2++;\n(...TRUNCATED)
"<< (*i).Left << \" -\" << std::setw(columnpadding) << (*i).Right + \" |\";\n\t\tk = 0;\n\t\tk2 = 0;(...TRUNCATED)
random
[{"content":"// Contact helper struct\n\nstruct Contact\n\n{\n\n\tpublic:\n\n\t\t// Data members\n\n(...TRUNCATED)
C++
Builds/JuceLibraryCode/modules/juce_core/native/juce_android_Network.cpp
eriser/CSL
6f4646369f0c90ea90e2c113374044818ab37ded
"\r\n\r\n\n#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \\\r\n METHOD (constr(...TRUNCATED)
"\r\n\r\n\n#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \\\r\n METHOD (constr(...TRUNCATED)
"\r\n\r\n LocalRef<jobject> responseHeaderBuffer (env->NewObject (StringBuffer, StringBuffer.(...TRUNCATED)
"if (postData.getSize() > 0)\r\n {\r\n postDataArray = env->NewByteArray (postData(...TRUNCATED)
if_condition
[{"content":"class KarplusString : public UnitGenerator, public Scalable, public Phased {\n\n\n\npub(...TRUNCATED)
C++
curves/include/curves/PolynomialSpline.hpp
leggedrobotics/curves
696db3e9ecf67c143e7b48a8dd53d2c5ea1ba2fe
"\n\n#pragma once\n\n#include <Eigen/Core>\n\n#include \"curves/polynomial_splines_traits.hpp\"\n\n#(...TRUNCATED)
"\n\n#pragma once\n\n#include <Eigen/Core>\n\n#include \"curves/polynomial_splines_traits.hpp\"\n\n#(...TRUNCATED)
"\n \n static inline void getDDTimeVectorAtZero(Eigen::Ref<EigenTimeVectorType> ddtimeVec) {\n (...TRUNCATED)
" Derived>\n static inline void getTimeVector(Eigen::MatrixBase<Derived> const & timeVec, const dou(...TRUNCATED)
random
[{"content":"class LocalSupport2CoefficientManagerTest : public ::testing::Test {\n\n protected:\n\n(...TRUNCATED)
C++
DigitalHaze-Libraries/cpp/DH_BitParser.cpp
Phytress/DigitalHaze-Libraries
a94a292da302da23851cc780cfec9d4736dcf9c4
"\n\n#include \"DH_BitParser.hpp\"\n\nnamespace DigitalHaze {\n\n\tBitParser::BitParser(void* buffer(...TRUNCATED)
"\n\n#include \"DH_BitParser.hpp\"\n\nnamespace DigitalHaze {\n\n\tBitParser::BitParser(void* buffer(...TRUNCATED)
"or::operator!=(BitBufferIterator& rhs) const {\n\t\treturn pos != rhs.pos;\n\t}\n\n\tSingleBitDescr(...TRUNCATED)
"s == rhs;\n\t}\n\n\tbool SingleBitDescriptor::operator!=(bool rhs) const {\n\t\treturn !(*this == r(...TRUNCATED)
random
[{"content":"\tclass BitBufferIterator {\n\n\tpublic:\n\n\t\tBitBufferIterator(const BitParser* bptr(...TRUNCATED)
C++
qt-creator-opensource-src-4.6.1/src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
"\n\n#include \"itemlibraryinfo.h\"\n#include \"nodemetainfo.h\"\n\n#include <QSharedData>\n\n#inclu(...TRUNCATED)
"\n\n#include \"itemlibraryinfo.h\"\n#include \"nodemetainfo.h\"\n\n#include <QSharedData>\n\n#inclu(...TRUNCATED)
"\n\nQDataStream& operator>>(QDataStream& stream, ItemLibraryEntry &itemLibraryEntry)\n{\n stream(...TRUNCATED)
"QDataStream& operator<<(QDataStream& stream, const ItemLibraryEntry &itemLibraryEntry)\n{\n stre(...TRUNCATED)
function_block-full_function
[]
C++
code_reading/oceanbase-master/src/sql/optimizer/ob_log_table_lookup.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
"\n\n#define USING_LOG_PREFIX SQL_OPT\n#include \"sql/optimizer/ob_log_table_lookup.h\"\n#include \"(...TRUNCATED)
"\n\n#define USING_LOG_PREFIX SQL_OPT\n#include \"sql/optimizer/ob_log_table_lookup.h\"\n#include \"(...TRUNCATED)
"\n bool is_basic = false;\n ObLogicalOperator* child = NULL;\n ObExchangeInfo exch_info;\n if ((...TRUNCATED)
"rn ret;\n}\n\nint ObLogTableLookup::transmit_op_ordering()\n{\n int ret = OB_SUCCESS;\n reset_op_(...TRUNCATED)
random
[]
C++
Servable/DlibServable/test/TestDlibServable.cpp
bzcheeseman/BatchingRPCServer
d1130720fef6e15e129fa59cc37235537f609e36
"\n\n#include <dlib/data_io.h>\n#include <sstream>\n\n#include \"BatchingRPC.pb.h\"\n#include \"Dlib(...TRUNCATED)
"\n\n#include <dlib/data_io.h>\n#include <sstream>\n\n#include \"BatchingRPC.pb.h\"\n#include \"Dlib(...TRUNCATED)
}
"TEST_F(TestDlibServable, NextBatch) {\n Serving::DlibServable<net_type, matrix<unsigned char>, uns(...TRUNCATED)
function_block-full_function
[{"content":"class DlibServable : public Servable {\n\npublic:\n\n DlibServable(const int &batch_si(...TRUNCATED)
C++
src/plugins/algorithms/lda.cpp
kmoham6/phylanx
252fa5fbb84acaf6f999410e6823b9f8d6693213
"\n\n#include <phylanx/config.hpp>\n#include <phylanx/plugins/algorithms/lda.hpp>\n\n#include <hpx/i(...TRUNCATED)
"\n\n#include <phylanx/config.hpp>\n#include <phylanx/plugins/algorithms/lda.hpp>\n\n#include <hpx/i(...TRUNCATED)
"d_doc_mat') to represent a matrix\"));\n }\n auto word_doc_mat = arg5.matrix();\n\n (...TRUNCATED)
"st of two matrices:\\n\"\n \" [word_topic, document_topic] :\\n\"\n \"\\n\(...TRUNCATED)
random
[{"content":" class matrix_column_iterator\n\n : public hpx::util::iterator_facade<matrix_co(...TRUNCATED)
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
0
Edit dataset card