Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel constraint against assembly fails rank test in workplane #21

Open
wolfv6 opened this issue Aug 1, 2016 · 6 comments
Open

Parallel constraint against assembly fails rank test in workplane #21

wolfv6 opened this issue Aug 1, 2016 · 6 comments

Comments

@wolfv6
Copy link

wolfv6 commented Aug 1, 2016

The attached example has one constraint, and it fails:

SOLVE FAILED! redundant constraints

IMHO the constraint can not be redundant because there is only one constraint:

constraints in group (0 DOF)
   c00b-parallel

Removing the c00b-parallel constraint gains 6 DOF:

constraints in group (6 DOF)
 (none)

I am running SolveSpace version 2.1~dce90646 on Fedora 24.
demo_parallel_constraint.zip

@whitequark
Copy link
Contributor

@Evil-Spirit Why does this happen?

@whitequark whitequark added the bug label Aug 2, 2016
@Evil-Spirit
Copy link
Collaborator

@whitequark, Constraint is created in workplane, somehow. I've tried to create POINTS_COINCIDENT and get strange behaviour.

@whitequark
Copy link
Contributor

Ahhh! We need a better error message for this. Why does it say redundant and not unsolvable?

As to why it's created in workplane, this is because a workplane is active.

@whitequark
Copy link
Contributor

@Evil-Spirit Can you explain why the rank test fails in this case, and maybe how we can present a better message?

@whitequark whitequark changed the title bug: parallel constraint on linked solid Parallel constraint against assembly fails rank test in workplane Oct 10, 2016
@Evil-Spirit
Copy link
Collaborator

@whitequark, I think we can't distinguish here without additional checking. This case is the same as for two parallel segments and pt-pt-coincident of points of the same segment. In this case we have the same derivatives for different points (since this is the same point for solver after subsitution). This results in linear dependency inside Jacobian matrix. As solution, we just can perform some tests before solving and report more informative messages. This case already tested for 2d ("zero-length-edge"),

@whitequark
Copy link
Contributor

@Evil-Spirit please implement this check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants