Trim lines ending with superfluous whitespace
This commit is contained in:
@@ -315,7 +315,7 @@ class Component(ArchIFC.IfcProduct):
|
||||
prop: string
|
||||
The name of the property that has changed.
|
||||
"""
|
||||
|
||||
|
||||
import math
|
||||
|
||||
ArchIFC.IfcProduct.onChanged(self, obj, prop)
|
||||
|
||||
@@ -337,7 +337,7 @@ class _Wall(ArchComponent.Component):
|
||||
if hasattr(baseProxy,"getPropertySet"):
|
||||
# get full list of PropertySet
|
||||
propSetListCur = baseProxy.getPropertySet(obj.Base)
|
||||
# get updated name (if any) of the selected PropertySet
|
||||
# get updated name (if any) of the selected PropertySet
|
||||
propSetSelectedNameCur = baseProxy.getPropertySet(obj.Base,
|
||||
propSetUuid=propSetPickedUuidPrev)
|
||||
if propSetSelectedNameCur: # True if selection is not deleted
|
||||
@@ -613,11 +613,11 @@ class _Wall(ArchComponent.Component):
|
||||
else:
|
||||
FreeCAD.Console.PrintError(translate("Arch","Error: Unable to modify the base object of this wall")+"\n")
|
||||
|
||||
if (prop == "ArchSketchPropertySet"
|
||||
if (prop == "ArchSketchPropertySet"
|
||||
and Draft.getType(obj.Base) == "ArchSketch"):
|
||||
baseProxy = obj.Base.Proxy
|
||||
if hasattr(baseProxy,"getPropertySet"):
|
||||
uuid = baseProxy.getPropertySet(obj,
|
||||
uuid = baseProxy.getPropertySet(obj,
|
||||
propSetName=obj.ArchSketchPropertySet)
|
||||
self.ArchSkPropSetPickedUuid = uuid
|
||||
if (hasattr(obj,"ArchSketchData") and obj.ArchSketchData
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAskAgain">
|
||||
<property name="toolTip">
|
||||
<string>If this is checked, you won't be asked again when creating a new FreeCAD document,
|
||||
<string>If this is checked, you won't be asked again when creating a new FreeCAD document,
|
||||
and that document won't be turned into an IFC document automatically.
|
||||
You can still turn a FreeCAD document into an IFC document manually, using
|
||||
Utils -> Make IFC project</string>
|
||||
|
||||
@@ -793,7 +793,7 @@ class ArchTest(unittest.TestCase):
|
||||
level = Arch.makeFloor()
|
||||
level.addObjects([wall, column])
|
||||
App.ActiveDocument.recompute()
|
||||
|
||||
|
||||
# Create a drawing view
|
||||
section = Arch.makeSectionPlane(level)
|
||||
drawing = Arch.make2DDrawing()
|
||||
@@ -803,7 +803,7 @@ class ArchTest(unittest.TestCase):
|
||||
cut.ProjectionMode = "Cutfaces"
|
||||
drawing.addObjects([view, cut])
|
||||
App.ActiveDocument.recompute()
|
||||
|
||||
|
||||
# Create a TD page
|
||||
tpath = os.path.join(App.getResourceDir(),"Mod","TechDraw","Templates","A3_Landscape_blank.svg")
|
||||
page = App.ActiveDocument.addObject("TechDraw::DrawPage", "Page")
|
||||
|
||||
@@ -56,7 +56,7 @@ FCBRepAlgoAPI_BooleanOperation::FCBRepAlgoAPI_BooleanOperation(const TopoDS_Shap
|
||||
SetRunParallel(Standard_True);
|
||||
SetNonDestructive(Standard_True);
|
||||
}
|
||||
|
||||
|
||||
void FCBRepAlgoAPI_BooleanOperation::setAutoFuzzy()
|
||||
{
|
||||
FCBRepAlgoAPIHelper::setAutoFuzzy(this);
|
||||
|
||||
@@ -318,7 +318,7 @@ MeasureAreaInfoPtr MeasureAreaHandler(const App::SubObjectT& subject)
|
||||
BRepGProp::SurfaceProperties(shape, gprops);
|
||||
auto origin = gprops.CentreOfMass();
|
||||
|
||||
// TODO: Center of Mass might not lie on the surface, somehow snap to the closest point on the surface?
|
||||
// TODO: Center of Mass might not lie on the surface, somehow snap to the closest point on the surface?
|
||||
|
||||
Base::Placement placement(Base::Vector3d(origin.X(), origin.Y(), origin.Z()), Base::Rotation());
|
||||
return std::make_shared<MeasureAreaInfo>(true, getFaceArea(shape), placement);
|
||||
@@ -340,7 +340,7 @@ MeasurePositionInfoPtr MeasurePositionHandler(const App::SubObjectT& subject)
|
||||
return std::make_shared<MeasurePositionInfo>(false, Base::Vector3d());
|
||||
}
|
||||
|
||||
TopoDS_Vertex vertex = TopoDS::Vertex(shape);
|
||||
TopoDS_Vertex vertex = TopoDS::Vertex(shape);
|
||||
auto point = BRep_Tool::Pnt(vertex);
|
||||
return std::make_shared<MeasurePositionInfo>( true, Base::Vector3d(point.X(), point.Y(), point.Z()));
|
||||
}
|
||||
@@ -365,11 +365,11 @@ MeasureAngleInfoPtr MeasureAngleHandler(const App::SubObjectT& subject)
|
||||
Base::Vector3d position;
|
||||
if (sType == TopAbs_FACE) {
|
||||
TopoDS_Face face = TopoDS::Face(shape);
|
||||
|
||||
|
||||
GProp_GProps gprops;
|
||||
BRepGProp::SurfaceProperties(face, gprops);
|
||||
vec = gprops.CentreOfMass();
|
||||
|
||||
|
||||
} else if (sType == TopAbs_EDGE) {
|
||||
TopoDS_Edge edge = TopoDS::Edge(shape);
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ public:
|
||||
//! callback registrations
|
||||
// TODO: is there more that one place that GeometryHandler is defined?
|
||||
using GeometryHandler = std::function<Part::MeasureInfoPtr (App::SubObjectT)>;
|
||||
|
||||
|
||||
class PartExport CallbackRegistrationRecord
|
||||
{
|
||||
public:
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
CallbackRegistrationRecord(const std::string& module, const std::string& measureType, GeometryHandler callback) :
|
||||
m_module(module), m_measureType(measureType), m_callback(callback)
|
||||
{ }
|
||||
|
||||
|
||||
std::string m_module;
|
||||
std::string m_measureType;
|
||||
GeometryHandler m_callback;
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
</Methode>
|
||||
<Methode Name="fixShape">
|
||||
<Documentation>
|
||||
<UserDocu>Fixes issues in the overall geometric shape.
|
||||
<UserDocu>Fixes issues in the overall geometric shape.
|
||||
This function likely encapsulates higher-level fixes that involve multiple faces or elements.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
@@ -199,7 +199,7 @@ void SweepWidget::findShapes()
|
||||
}
|
||||
}
|
||||
|
||||
if (!shape.Infinite() &&
|
||||
if (!shape.Infinite() &&
|
||||
(shape.ShapeType() == TopAbs_FACE ||
|
||||
shape.ShapeType() == TopAbs_WIRE ||
|
||||
shape.ShapeType() == TopAbs_EDGE ||
|
||||
|
||||
@@ -46,7 +46,7 @@ class ColorTransparencyTest(unittest.TestCase):
|
||||
of 0 corresponds to a fully transparent color, which is not desirable. It changes
|
||||
the transparency when loading to 1.0
|
||||
"""
|
||||
|
||||
|
||||
self._pg.SetUnsigned('DefaultShapeColor', 0xff000000) # red
|
||||
obj = self._doc.addObject('Part::Box')
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ App::DocumentObjectExecReturn* Helix::execute()
|
||||
if (SC.State() == TopAbs_IN) {
|
||||
result.Reverse();
|
||||
}
|
||||
|
||||
|
||||
fix.LimitTolerance(result, Precision::Confusion() * size * Tolerance.getValue() ); // significant precision reduction due to helical approximation - needed to allow fusion to succeed
|
||||
|
||||
AddSubShape.setValue(result);
|
||||
|
||||
@@ -161,7 +161,7 @@ class TestHelix(unittest.TestCase):
|
||||
helix.Angle = 0
|
||||
helix.Mode = 0
|
||||
self.Doc.recompute()
|
||||
|
||||
|
||||
self.assertTrue(helix.Shape.isValid())
|
||||
bbox = helix.Shape.BoundBox
|
||||
self.assertAlmostEqual(bbox.ZMin/((10**exponent)**3),0,places=4)
|
||||
|
||||
@@ -696,7 +696,7 @@
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Shape of line end caps. The default (round) should almost
|
||||
always be the right choice. Flat or square caps are useful
|
||||
always be the right choice. Flat or square caps are useful
|
||||
if you are planning to use a drawing as a 1:1 cutting guide.
|
||||
</string>
|
||||
</property>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
osifont license:
|
||||
osifont license:
|
||||
|
||||
osifont-lgpl3fe.ttf is used under one or more of the following licenses:
|
||||
- GNU GPL licence version 3 with GPL font exception,
|
||||
- GNU GPL licence version 2 with GPL font exception,
|
||||
osifont-lgpl3fe.ttf is used under one or more of the following licenses:
|
||||
- GNU GPL licence version 3 with GPL font exception,
|
||||
- GNU GPL licence version 2 with GPL font exception,
|
||||
- GNU LGPL licence version 3 with GPL font exception.
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ASME Y14.2-2008 line element definitions
|
||||
# NOTE: ASME Y14.2-2008 explicitly does not define the lengths of line elements,
|
||||
# but recommends lengths that "depict the appropriate line convention commensurate
|
||||
# but recommends lengths that "depict the appropriate line convention commensurate
|
||||
# with the drawing size and scale". The values used here are generally those
|
||||
# from ISO128.
|
||||
# NOTE: saving this file from a spreadsheet program (like LibreOffice Calc) may
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 3 and column 31.
|
@@ -1,7 +1,7 @@
|
||||
This folder (`locale`) contains translations for [TechDraw workbench templates](https://wiki.freecad.org/TechDraw_Templates) in the parent `Templates` folder.
|
||||
The name of each `locale` subfolder represents a language, which follows [IETF BCP 47 standardized codes](https://en.wikipedia.org/wiki/IETF_language_tag). The original TechDraw templates in the parent folder are written using American English (`en-US`).
|
||||
|
||||
As such, the most basic name for a locale subfolder will include an [ISO 639 language code](https://en.wikipedia.org/wiki/ISO_639) (e.g. `de` for German). If it's necessary, additional subtags can be added to describe language variants. For instance variants spoken in a particular country, or a specific script. Those subtags are combinable and are based in other standards.
|
||||
As such, the most basic name for a locale subfolder will include an [ISO 639 language code](https://en.wikipedia.org/wiki/ISO_639) (e.g. `de` for German). If it's necessary, additional subtags can be added to describe language variants. For instance variants spoken in a particular country, or a specific script. Those subtags are combinable and are based in other standards.
|
||||
|
||||
The most common additional subtag is an additional country code to describe a regional variant of the language (e.g. `de-DE` for German spoken in Germany, `es-AR` for Spanish spoken in Argentina, or `zh-CN` for Simplified Chinese in Mainland China). Country subtags are based on [the ISO 3166-1 standard's country codes](https://en.wikipedia.org/wiki/ISO_3166-1).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user