ICADModelConverter

Interface to convert CAD Model (like Alias, Rhino, ...) into the internal CAD Modeler (CADKernel, ...) The derived class must also implement IAddXXXBrepModel according to the CAD model (IAddAliasBrepModel, IAddRhinoBrepModel, ...) The derived class is instantiated for an import session.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ParametricSurface

Header

/Engine/Plugins/Enterprise/DatasmithCADImporter/Source/ParametricSurface/Public/CADModelConverter.h

Include

#include "CADModelConverter.h"

Syntax

class ICADModelConverter

Remarks

Interface to convert CAD Model (like Alias, Rhino, ...) into the internal CAD Modeler (CADKernel, ...) The derived class must also implement IAddXXXBrepModel according to the CAD model (IAddAliasBrepModel, IAddRhinoBrepModel, ...) The derived class is instantiated for an import session. It processes a subset of the model corresponding to a static mesh actor. The main step of the process is:

  • InitializeProcess

  • Fill the modeler database with the subset of the model:

  • this step is done with AddBRep function of the format interface (IAddAliasBrepModel, IAddRhinoBrepModel)

  • many bodies can be added to the model to generate only one static mesh actor

  • RepairTopology if needed

  • SaveBrep(const FString& FilePath) for retessellate purpose

  • Tessellate

In a second step, the saved file is associated to its UStaticMesh with AddSurfaceDataForMesh function

Destructors

Name Description

Public function Virtual

~ICADModelConverter()

Functions

Name Description

Public function Const

void

 

AddSurfaceDataForMesh

(
    const TCHAR* InFilePath,
    const FMeshParameters& InMeshParam...,
    const FDatasmithTessellationOptions...,
    FDatasmithMeshElementPayload& OutM...
)

Public function Const

double

 

GetMetricUnit()

Public function Const

double

 

GetScaleFactor()

Public function

void

 

InitializeProcess

(
    double InMetricUnit
)

Public function

bool

 

IsSessionValid()

Public function

bool

 

RepairTopology()

Public function

bool

 

SaveBRep

(
    const TCHAR* OutputPath,
    TSharedRef< IDatasmithMeshElement >...
)

Public function

void

 

SetImportParameters

(
    double ChordTolerance,
    double MaxEdgeLength,
    double NormalTolerance,
    CADLibrary::EStitchingTechnique Sti...
)

Set Import parameters, Tack care to set scale factor before because import parameters will be scale according to scale factor

Public function

void

 

SetMetricUnit

(
    double NewMetricUnit
)

Public function

bool

 

Tessellate

(
    const CADLibrary::FMeshParameters&...,
    FMeshDescription& OutMeshDescripti...
)