text: /* Copyright (c) 2006, NIF File Format Library and Tools
  All rights reserved.  Please see niflib.h for license. */
  
  //-----------------------------------NOTICE----------------------------------//
  // Some of this file is automatically filled in by a Python script.  Only    //
  // add custom code in the designated areas or it will be overwritten during  //
  // the next update.                                                          //
  //-----------------------------------NOTICE----------------------------------//
  
  //--BEGIN FILE HEAD CUSTOM CODE--//
  //--END CUSTOM CODE--//
  
  #include "../../include/FixLink.h"
  #include "../../include/ObjectRegistry.h"
  #include "../../include/NIF_IO.h"
  #include "../../include/obj/bhkConvexShape.h"
  using namespace Niflib;
  
  //Definition of TYPE constant
  const Type bhkConvexShape::TYPE("bhkConvexShape", &bhkSphereRepShape::TYPE );
  
  bhkConvexShape::bhkConvexShape() {
  	//--BEGIN CONSTRUCTOR CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  bhkConvexShape::~bhkConvexShape() {
  	//--BEGIN DESTRUCTOR CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  const Type & bhkConvexShape::GetType() const {
  	return TYPE;
  }
  
  NiObject * bhkConvexShape::Create() {
  	return new bhkConvexShape;
  }
  
  void bhkConvexShape::Read( istream& in, list<unsigned int> & link_stack, const NifInfo & info ) {
  	//--BEGIN PRE-READ CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	bhkSphereRepShape::Read( in, link_stack, info );
  
  	//--BEGIN POST-READ CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  void bhkConvexShape::Write( ostream& out, const map<NiObjectRef,unsigned int> & link_map, list<NiObject *> & missing_link_stack, const NifInfo & info ) const {
  	//--BEGIN PRE-WRITE CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	bhkSphereRepShape::Write( out, link_map, missing_link_stack, info );
  
  	//--BEGIN POST-WRITE CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  std::string bhkConvexShape::asString( bool verbose ) const {
  	//--BEGIN PRE-STRING CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	stringstream out;
  	out << bhkSphereRepShape::asString();
  	return out.str();
  
  	//--BEGIN POST-STRING CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  void bhkConvexShape::FixLinks( const map<unsigned int,NiObjectRef> & objects, list<unsigned int> & link_stack, list<NiObjectRef> & missing_link_stack, const NifInfo & info ) {
  	//--BEGIN PRE-FIXLINKS CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	bhkSphereRepShape::FixLinks( objects, link_stack, missing_link_stack, info );
  
  	//--BEGIN POST-FIXLINKS CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  std::list<NiObjectRef> bhkConvexShape::GetRefs() const {
  	list<Ref<NiObject> > refs;
  	refs = bhkSphereRepShape::GetRefs();
  	return refs;
  }
  
  std::list<NiObject *> bhkConvexShape::GetPtrs() const {
  	list<NiObject *> ptrs;
  	ptrs = bhkSphereRepShape::GetPtrs();
  	return ptrs;
  }
  
  //--BEGIN MISC CUSTOM CODE--//
  
  void bhkConvexShape::CalcMassProperties(float density, bool solid, float &mass, float &volume, Vector3 &center, InertiaMatrix& inertia)
  {
  	center = Vector3(0,0,0);
  	mass = 0.0f, volume = 0.0f;
  	inertia = InertiaMatrix::IDENTITY;
  }
  
  //--END CUSTOM CODE--//
  