remove console messages
This commit is contained in:
parent
7fe1d94a21
commit
14c20fbe89
|
@ -68,7 +68,6 @@ short ConstraintGroup::mustExecute() const
|
|||
App::DocumentObjectExecReturn *ConstraintGroup::execute(void)
|
||||
{
|
||||
|
||||
Base::Console().Message("Recalculate constraint group\n");
|
||||
touch();
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
|
|
@ -54,8 +54,7 @@ short ItemAssembly::mustExecute() const {
|
|||
}
|
||||
|
||||
App::DocumentObjectExecReturn* ItemAssembly::execute(void) {
|
||||
Base::Console().Message("Execute ItemAssembly\n");
|
||||
|
||||
|
||||
try {
|
||||
//create a solver and init all child assemblys with subsolvers
|
||||
m_solver = boost::shared_ptr<Solver>(new Solver);
|
||||
|
|
|
@ -65,8 +65,7 @@ short ItemPart::mustExecute() const
|
|||
|
||||
App::DocumentObjectExecReturn *ItemPart::execute(void)
|
||||
{
|
||||
Base::Console().Message("Recalculate ItemPart\n");
|
||||
this->touch();
|
||||
this->touch();
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
|
@ -102,9 +101,7 @@ bool ItemPart::holdsObject(App::DocumentObject* obj) const {
|
|||
|
||||
void ItemPart::setCalculatedPlacement(boost::shared_ptr< Part3D > part) {
|
||||
|
||||
//part is the same as m_part, so it doasn't matter which one we use
|
||||
Base::Console().Message("Set new calculated part placement\n");
|
||||
|
||||
//part is the same as m_part, so it doasn't matter which one we use
|
||||
Base::Placement p = dcm::get<Base::Placement>(part);
|
||||
Placement.setValue(p);
|
||||
}
|
||||
|
@ -120,7 +117,6 @@ boost::shared_ptr< Geometry3D > ItemPart::getGeometry3D(const char* Type)
|
|||
boost::shared_ptr<Geometry3D> geometry;
|
||||
if(m_part->hasGeometry3D(Type)) {
|
||||
return m_part->getGeometry3D(Type);
|
||||
//Base::Console().Message("Already has geometry, nothing added\n");
|
||||
} else {
|
||||
Part::TopoShape ts;
|
||||
App::DocumentObject* obj = Model.getValue();
|
||||
|
@ -134,10 +130,8 @@ boost::shared_ptr< Geometry3D > ItemPart::getGeometry3D(const char* Type)
|
|||
if(s.ShapeType() == TopAbs_FACE) {
|
||||
TopoDS_Face face = TopoDS::Face(s);
|
||||
BRepAdaptor_Surface surface(face);
|
||||
//Base::Console().Message("Fase selected\n");
|
||||
switch(surface.GetType()) {
|
||||
case GeomAbs_Plane: {
|
||||
//Base::Console().Message("plane selected\n");
|
||||
gp_Pln plane = surface.Plane();
|
||||
if(face.Orientation()==TopAbs_REVERSED) {
|
||||
gp_Dir dir = plane.Axis().Direction();
|
||||
|
@ -147,7 +141,6 @@ boost::shared_ptr< Geometry3D > ItemPart::getGeometry3D(const char* Type)
|
|||
break;
|
||||
}
|
||||
case GeomAbs_Cylinder: {
|
||||
//Base::Console().Message("cylinder selected\n");
|
||||
gp_Cylinder cyl = surface.Cylinder();
|
||||
geometry = m_part->addGeometry3D(cyl, Type, dcm::Local);
|
||||
break;
|
||||
|
@ -181,11 +174,11 @@ boost::shared_ptr< Geometry3D > ItemPart::getGeometry3D(const char* Type)
|
|||
return boost::shared_ptr< Geometry3D >();
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
std::stringstream s;
|
||||
s<<geometry->m_global;
|
||||
Base::Console().Message("Added geom: %s, %s\n", Type, s.str().c_str());
|
||||
|
||||
*/
|
||||
return geometry;
|
||||
}
|
||||
|
||||
|
|
|
@ -172,8 +172,6 @@ void ViewProviderConstraint::attach(App::DocumentObject* pcFeat)
|
|||
|
||||
void ViewProviderConstraint::updateData(const App::Property* prop)
|
||||
{
|
||||
Base::Console().Message("update: %s\n", prop->getName());
|
||||
|
||||
if(Visibility.getValue() && m_selected) {
|
||||
|
||||
draw();
|
||||
|
@ -185,9 +183,6 @@ void ViewProviderConstraint::updateData(const App::Property* prop)
|
|||
|
||||
void ViewProviderConstraint::onChanged(const App::Property* prop)
|
||||
{
|
||||
|
||||
Base::Console().Message("changed: %s, selected: %i\n", prop->getName(), m_selected);
|
||||
|
||||
// parent expects the app object to be part::feature, but it isn't. so we have to avoid
|
||||
// the visability prop as this results in accessing of the part::feature and would crash
|
||||
if(prop == &Visibility) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user