MCPcopy Create free account
hub / github.com/ImageEngine/cortex / pointAtUV

Method pointAtUV

src/IECoreScene/MeshPrimitiveEvaluator.cpp:778–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778bool MeshPrimitiveEvaluator::pointAtUV( const Imath::V2f &uv, PrimitiveEvaluator::Result *result ) const
779{
780 assert( dynamic_cast<Result *>( result ) );
781
782 if ( ! m_uvTriangles.size() )
783 {
784 throw Exception("No uvs available for pointAtUV");
785 }
786
787 assert( m_uvTree );
788 Result *mr = static_cast<Result *>( result );
789
790 return pointAtUVWalk( m_uvTree->rootIndex(), uv, mr );
791}
792
793bool MeshPrimitiveEvaluator::intersectionPoint( const Imath::V3f &origin, const Imath::V3f &direction,
794 PrimitiveEvaluator::Result *result, float maxDistance ) const

Callers 4

testPlaneMethod · 0.95
testSphereMethod · 0.45
testSimpleMethod · 0.45
testSimpleMeshMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected