Skip to content
Discussion options

You must be logged in to vote

Hello!

Code like this should work:

#include "MRMesh/MRMesh.h"
#include "MRMesh/MRMeshLoad.h"
#include "MRMesh/MRVector3.h"
#include "MRMesh/MRBitSetParallelFor.h"
#include "MRMesh/MRRegionBoundary.h"
#include "MRMesh/MRParallelFor.h"
#include "MRMesh/MR2to3.h"
#include "MRMesh/MR2DContoursTriangulation.h"
#include "MRMesh/MRMeshSave.h"

int main()
{
    // Load mesh
    auto meshRes = MR::MeshLoad::fromAnySupportedFormat( "path/to/mesh.stl" );
    if ( !meshRes.has_value() )
    {
        std::cerr << meshRes.error();
        return 1;
    }

    // Specify projection direction
    MR::Vector3f lookDirection = MR::Vector3f( 0.0f, 0.0f, 1.0f );

    // Find faces that looks in this direction

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alpinebuster
Comment options

@Grantim
Comment options

Answer selected by alpinebuster
@alpinebuster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants