Пример #1
0
void bindCurvesAlgo()
{
	object curveAlgoModule( borrowed( PyImport_AddModule( "IECore.CurvesAlgo" ) ) );
	scope().attr( "CurvesAlgo" ) = curveAlgoModule;

	scope meshAlgoScope( curveAlgoModule );

	def( "resamplePrimitiveVariable", &CurvesAlgo::resamplePrimitiveVariable );
	def( "deleteCurves", &CurvesAlgo::deleteCurves );
}
Пример #2
0
void bindCurvesAlgo()
{
	object curveAlgoModule( borrowed( PyImport_AddModule( "IECore.CurvesAlgo" ) ) );
	scope().attr( "CurvesAlgo" ) = curveAlgoModule;

	scope meshAlgoScope( curveAlgoModule );

	def( "resamplePrimitiveVariable", &CurvesAlgo::resamplePrimitiveVariable );
	def( "deleteCurves", &CurvesAlgo::deleteCurves, arg_( "invert" ) = false );
	def( "segment", ::segment, segmentOverLoads());
	def( "updateEndpointMultiplicity", &CurvesAlgo::updateEndpointMultiplicity );
}
Пример #3
0
void bindMeshAlgo()
{
	object meshAlgoModule( borrowed( PyImport_AddModule( "IECore.MeshAlgo" ) ) );
	scope().attr( "MeshAlgo" ) = meshAlgoModule;

	scope meshAlgoScope( meshAlgoModule );

	StdPairToTupleConverter<PrimitiveVariable, PrimitiveVariable>();

	def( "calculateTangents", &MeshAlgo::calculateTangents, ( arg_( "mesh" ), arg_( "uvSet" ) = "uv", arg_( "orthoTangents" ) = true, arg_( "position" ) = "P" ) );
	def( "calculateFaceArea", &MeshAlgo::calculateFaceArea, ( arg_( "mesh" ), arg_( "position" ) = "P" ) );
	def( "calculateFaceTextureArea", &MeshAlgo::calculateFaceTextureArea, ( arg_( "mesh" ), arg_( "uvSet" ) = "uv", arg_( "position" ) = "P" ) );
	def( "calculateDistortion", &MeshAlgo::calculateDistortion, ( arg_( "mesh" ), arg_( "uvSet" ) = "uv", arg_( "referencePosition" ) = "Pref", arg_( "position" ) = "P" ) );
	def( "resamplePrimitiveVariable", &MeshAlgo::resamplePrimitiveVariable );
	def( "deleteFaces", &MeshAlgo::deleteFaces, arg_( "invert" ) = false );
	def( "reverseWinding", &MeshAlgo::reverseWinding );
	def( "reorderVertices", &MeshAlgo::reorderVertices, ( arg_( "mesh" ), arg_( "id0" ), arg_( "id1" ), arg_( "id2" ) ) );
	def( "distributePoints", &MeshAlgo::distributePoints, ( arg_( "mesh" ), arg_( "density" ) = 100.0, arg_( "offset" ) = Imath::V2f( 0 ), arg_( "densityMask" ) = "density", arg_( "uvSet" ) = "uv", arg_( "position" ) = "P" ) );
	def( "segment", &::segment, segmentOverLoads() );
}