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