SmApiUsdBrepArraySites.h#

Fully qualified name: SM_API_USD/inc/SmApiUsdBrepArraySites.h

File members: SM_API_USD/inc/SmApiUsdBrepArraySites.h

// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

/******************************************************************/
#ifndef _SM_API_USD_BREP_ARRAY_SITES_H_
#define _SM_API_USD_BREP_ARRAY_SITES_H_

#include "SmApiUsdConfig.h"
#include <SmMessages.h>

#include "UsdBrepHeaders.h" // pxr headers with warning suppression (BREP_USD_DATA)
#include <pxr/usd/sdf/layer.h>
#include <pxr/usd/sdf/path.h>
#include <pxr/usd/usd/stage.h>

#include <string>
#include <vector>

struct SmApiUsdBrepArraySite
{
    pxr::SdfLayerHandle        m_sLayer;
    pxr::SdfPath               m_sSpecPath;
    std::vector<pxr::SdfPath>  m_sPrimPaths;
    std::string                m_sProblem;
};

SM_API_USD_EXPORT SmStatus SmApiUsdFindBrepArraySites
(
    const pxr::UsdStagePtr                  & crStage,
    std::vector<SmApiUsdBrepArraySite>      & rSites
);

#endif // _SM_API_USD_BREP_ARRAY_SITES_H_