Giter VIP home page Giter VIP logo

design456's People

Contributors

chennes avatar goyalyashpal avatar luzpaz avatar mariwanj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

design456's Issues

Coin3d - rotation, position is not correct

For most widgets, The position and the rotation is not totally correct.
This affect the DirectScale, SmartScale, the fr_arrow_widget .. etc
I need to study this to figure out how I fix the issues I have.
Still coin is the biggest problem.

Smart Extrude fails if the object is Part shell

13:00:50 'Design456_Extrude' getArrowPosition-Failed. 'Part.Shell' object has no attribute 'Surface'
13:00:50 'draw_arrow' Failed. 'NoneType' object is not subscriptable
13:00:50 Running the Python command 'Design456_SmartExtrude' failed, try to resume

Subtract 2 2-d Faces or Combine 2 2-d Faces shift X and Y

Subtracting or Combining 2 2-D faces move the result to a grid position that is the addition of X and Y from the two faces.
Example: A square at X20, Y10, Z5 and a Circle at X22, Y5, Z5, when combining will result the combined object to move to X42, Y15, Z5.

Also, if after the subtracting or combining, you press Ctrl-Z to cancel the operation, it cancel, but one of the faces becomes extruded.

Problem on first try to open Workbench - polyhedrons missing

21:54:26 No module named 'polyhedrons'
21:54:26 Traceback (most recent call last):
File "", line 55, in Initialize
File "C:\FreeCad19A\Mod\Design456\Design456_Part.py", line 48, in
class Design456_Part:
File "C:\FreeCad19A\Mod\Design456\Design456_Part.py", line 49, in Design456_Part
import polyhedrons

21:55:39 module 'FreeCAD' has no attribute 'DraftWorkingPlane'Error: Draft activation failed, Draft will not work as expected

EDIT:
Found the problem, the ZIP file for download the Design456 doesn't not pack the Pyramid files... needed to download it apart and copy into the MOD folder.

Degree Wheel needs to be more accurate

The wheel is not working well.

  • The axis (Text) is wrong
  • The rotation is not always correct
  • The rotation is not proportional to the mouse movements
  • Better to try the Drawing of the degrees rather than the cylinder for the center
  • Some times the cylinder is disappearing due to the size of the object rotated. Put the wheel outside the object

Design456 Move Detail

Create a cube, click "Move Detail", a Transform window opens on Combo View, on Rotation, you can input any number in the "Around n-axis", click "Apply", the number returns to zero and the part doesn't rotate.

What happens is: The "Rotation" pull down menu starts with "Rotation axis with angle" and followed by three number entires, for each angle, but those entries are for the "Euler angles (x y'z"), this is why it is not working. I need to click the pull-down menu and selecte Euler angles, and back to "Rotation axis with angle" so it then shows only two entries, Axis and Angle, then it works.

Once in "Rotation axis with angle" it is expecting numbers on those entries (axis and angle), but the Euler entires is presented, so changing values on X, Y or Z entries will mean nothing to "Rotation axis with angle", then it does nothing to the object.

I think it is just an unmatch between the selection preset on the pulldown menu and the variables input selection. Easy to fix.

Smart Alignment has some problems

Due to the placement problem in FreeCAD, smart alignment fails for some object.
This tool needs a better thought for overcome the problem.
At the moment, I have no good way to fix the issue.

Design456_ExtendEdge rotation angle

Not always that angle is correct for the arrows.
Find a way to make the drawing of the arrows at a better position when user select lower edge of the object.

Clarifying between "interactive" and "direct modelling"

For example, clicking on a face and being able to extrude by moving the mouse, instead of specifying a the distance by entering a number in to a text field.
- https://github.com/MariwanJ/Design456/blob/731f48af/README.md?plain=1#L6-L8

Further, i will say that if the "interactive" part is requiring more work, then you can very well focus on just the "direct modelling" part for now... that way,

  • delivery of this direct modelling WB will be more timely
  • direct modelling will be precise
  • the workflow will match and be consistent with whole FCad's UX of numeric input fields

this wil also help for interactive widget too as later

  • that can targetted with proper focus solely on that
  • and implemented across all of freecad
  • so, less duplicacy, more reusability in code and effort;
  • while having more consistency in UX

Design456_SelectTool has some problems

Selecting loop-faces, loop-edges fails.
if the faces are perpendicular to XY plane the tool works. But when the faces are perpendicular to ZY or ZX the tool fails.

Linking external models

Similar to Assembly4 is it possible to link external models? I'm looking to simply pick and place models on the plane as a quick way to visualize how things come together.

Thanks :)

Design456_SmartExtrude fails

When you draw a2D Drawing and you extrude that with the tool while you choose "Subtract", A Fusion object creates while it shouldn't.
User can delete that but it is confusing.
This was supposed to be fixed but it still there. There are cases where that appears again.

Redrawing in freecad is slow. Any solution?

Using DirectScale let you know that the redrawing is not good.
I need to find out how to fix that issue. It will affect all tools I am implementing negatively if not fixed.

Inheretance callbacks dosen't work. Theoretically it should work. please help!

@luzpaz @carlopav @joelgraff
Please look at the devbranch - main has not the updates yet.
For the widget system I am preparing, I let the user write the callback for the mouse events later by sub-classing the widgets.
But when I subclass the line_widget in the smartscale, the callback is still the parents callback. There is no reason to be like that as I am overriding the variable.
If it was cpp, it shouldn't happen but in python either I don't know or it is not easy to implement.
I would appreciate any help in understanding or fixing this issue. Thank you very much in advance.
look at this part.

def lblcallback(userData=None):
    """
            This function will run the label-changed 
            event callback.
    """
        #TODO : Subclass this and impalement the callback 
        #          to get the desired effect
    print("dummy line-widget-label callback")
             
def callback(userData=None):
    """
            This function will run the when the line is clicked 
            event callback. 
    """
        #TODO : Subclass this and impalement the callback 
        #          to get the desired effect
    print("dummy line-widget callback" )

class Fr_Line_Widget(fr_widget.Fr_Widget):

    """
    This class is for drawing a line in coin3D world
    """

    def __init__(self, vectors: List[App.Vector] = [], label: str = "", lineWidth=1):
        self.w_lineWidth = lineWidth  # Default line width
        self.w_widgetType = constant.FR_WidgetType.FR_EDGE
        
        self.w_callback_=callback           #External function                      <---- this is not overriding the function
        self.w_lbl_calback_=lblcallback     #External function                    <---- this is not overriding the function
        self.w_KB_callback_=KBcallback      #External function
        self.w_move_callback_=movecallback  #External function
        super().__init__(vectors, label)

SVG Files

They generate tons of errors. Don't know why.
Inkscape must be the problem.
Any solution??

Tweak

@carlopav
1-The face it takes to modify is not what you click. This should be fixed.
2-Trying to re-use the tool on the same face it affect the old object. It shouldn't be like that.
3- I think the new object should be merged and fined to make them as one part.
Look at the picture.

Divide Object in Two Parts

Created a cube, used the "divide object in two parts". It deleted the "cube" from the list and created a "SplitedObject" in the tree list. In 3d screen I can see the same cube with a dividing line in the axis I selected. But I can't move the slices individually, they still connected as a single object, and a message is posted:

10:23:33 ViewProviderExt.cpp(1340): Cannot copute Inventor representation for the shape of Unnamed#Compound

This command should not create two objects from the original one, sliced on the division line?

cant Body in Part WB be used for direct modelling

  • can't the solid bodies (convert to body option < part wb) be used for this direct modelling?? i have not used them much, but they seemed like concerned with geometry only too, so, thought to ask

Part Filet

Create a cube 10x10x10mm, select one edge and filet 1mm, select a connected edge and filet 1mm, it end up with 3 fileted edges. It filet an extra edge without selecting it. This problem does not happen with Chanfers.

image

The same for Part Wedge
image

In the following Part Prism, I just requested filets on bottom left, then bottom right, the vertical was produced without requesting, and it has narrow.

image

Alignment might fail

For several reasons, SmartAlignment .
needs to be tested to find out the problems.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.