Scons files for Boolop
also a fix in BOP_Material so that MSVC won't complain about template issues
This commit is contained in:
@@ -9,6 +9,7 @@ SConscript(['SoundSystem/SConscript',
|
|||||||
'memutil/SConscript/',
|
'memutil/SConscript/',
|
||||||
'decimation/SConscript',
|
'decimation/SConscript',
|
||||||
'iksolver/SConscript',
|
'iksolver/SConscript',
|
||||||
|
'boolop/SConscript',
|
||||||
'elbeem/SConscript',
|
'elbeem/SConscript',
|
||||||
'opennl/SConscript'])
|
'opennl/SConscript'])
|
||||||
|
|
||||||
|
34
intern/boolop/SConscript
Normal file
34
intern/boolop/SConscript
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
Import ('user_options_dict')
|
||||||
|
Import ('library_env')
|
||||||
|
|
||||||
|
bop_env = library_env.Copy ()
|
||||||
|
|
||||||
|
source_files = [
|
||||||
|
'intern/BOP_BBox.cpp',
|
||||||
|
'intern/BOP_BSPNode.cpp',
|
||||||
|
'intern/BOP_BSPTree.cpp',
|
||||||
|
'intern/BOP_Edge.cpp',
|
||||||
|
'intern/BOP_Face.cpp',
|
||||||
|
'intern/BOP_Face2Face.cpp',
|
||||||
|
'intern/BOP_Interface.cpp',
|
||||||
|
'intern/BOP_Material.cpp',
|
||||||
|
'intern/BOP_MaterialContainer.cpp',
|
||||||
|
'intern/BOP_MathUtils.cpp',
|
||||||
|
'intern/BOP_Merge.cpp',
|
||||||
|
'intern/BOP_Mesh.cpp',
|
||||||
|
'intern/BOP_Segment.cpp',
|
||||||
|
'intern/BOP_Splitter.cpp',
|
||||||
|
'intern/BOP_Tag.cpp',
|
||||||
|
'intern/BOP_Triangulator.cpp',
|
||||||
|
'intern/BOP_Vertex.cpp'
|
||||||
|
]
|
||||||
|
|
||||||
|
bop_env.Append (CPPPATH = [ '.',
|
||||||
|
'intern',
|
||||||
|
'extern',
|
||||||
|
'#intern/moto/include',
|
||||||
|
'#intern/container',
|
||||||
|
'#intern/memutil'])
|
||||||
|
|
||||||
|
bop_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_BOP', source=source_files)
|
@@ -117,7 +117,7 @@ void BOP_Material::duplicate(const BOP_Material& other)
|
|||||||
/**
|
/**
|
||||||
* Implements operator =
|
* Implements operator =
|
||||||
*/
|
*/
|
||||||
BOP_Material& BOP_Material::operator = (BOP_Material& other)
|
BOP_Material& BOP_Material::operator = (const BOP_Material& other)
|
||||||
{
|
{
|
||||||
if (other.getFaceWidth() == m_faceWidth && other.getFaceVertexWidth() == m_faceVertexWidth)
|
if (other.getFaceWidth() == m_faceWidth && other.getFaceVertexWidth() == m_faceVertexWidth)
|
||||||
duplicate(other);
|
duplicate(other);
|
||||||
|
@@ -55,7 +55,7 @@ public:
|
|||||||
void setFaceVertexMaterial(char* faceVertexMaterial);
|
void setFaceVertexMaterial(char* faceVertexMaterial);
|
||||||
void setFaceVertexMaterial(char* faceVertexMaterial, int i);
|
void setFaceVertexMaterial(char* faceVertexMaterial, int i);
|
||||||
void duplicate(const BOP_Material& other);
|
void duplicate(const BOP_Material& other);
|
||||||
BOP_Material& operator = (BOP_Material& other);
|
BOP_Material& operator = (const BOP_Material& other);
|
||||||
char* getFaceMaterial() const;
|
char* getFaceMaterial() const;
|
||||||
char* getFaceVertexMaterial(int i) const;
|
char* getFaceVertexMaterial(int i) const;
|
||||||
int getFaceWidth() const { return m_faceWidth; };
|
int getFaceWidth() const { return m_faceWidth; };
|
||||||
|
@@ -14,6 +14,7 @@ def common_libs(env):
|
|||||||
env.Append (LIBS=[
|
env.Append (LIBS=[
|
||||||
'blender_readblenfile',
|
'blender_readblenfile',
|
||||||
'blender_img',
|
'blender_img',
|
||||||
|
'blender_bop',
|
||||||
'blender_blenkernel',
|
'blender_blenkernel',
|
||||||
'blender_blenloader',
|
'blender_blenloader',
|
||||||
'blender_blenpluginapi',
|
'blender_blenpluginapi',
|
||||||
|
Reference in New Issue
Block a user