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

Vertices don't connect in build screen #141

Closed
brroberts1231 opened this issue Jun 20, 2016 · 13 comments
Closed

Vertices don't connect in build screen #141

brroberts1231 opened this issue Jun 20, 2016 · 13 comments

Comments

@brroberts1231
Copy link

brroberts1231 commented Jun 20, 2016

For phetsims/tasks#617 and #140
Test device: Bates

Operating System: Windows 7

Browser: Chrome

Problem description: Component vertices in build mode will not connect to each other under certain circumstances. It seems to only happen when there is something connected to the box's vertex from investigate mode. Then when you connect a component to the box vertex and then try to connect it to something else, more than likely, it will not connect and deflect away. New components dragged in seem to be able to connect normally, but trying to connect to anything that was already in the box does not work.
Possible this is related to something fixed from #128 or #136.

Steps to reproduce: In Investigate, connect anything to the box vertices. Then in Build, connect components to the vertices and try to connect them to other components or box vertices.

Severity: high

Screenshots:
cck

Troubleshooting information (do not edit):
Name: ‪Circuit Construction Kit: Black Box‬
URL: http://www.colorado.edu/physics/phet/dev/html/circuit-construction-kit-black-box/1.0.0-dev.17/circuit-construction-kit-black-box_en.html
Version: 1.0.0-dev.17 2016-06-20 19:15:41 UTC
Features missing: touch
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Language: en-US
Window: 1366x623
Pixel Ratio: 1/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 10 uniform: 253
Texture: size: 8192 imageUnits: 16 (vertex: 4, combined: 20)
Max viewport: 4096x4096
OES_texture_float: true
Dependencies JSON: {"assert":{"sha":"7d27130a","branch":"master"},"axon":{"sha":"b71cc337","branch":"master"},"babel":{"sha":"047295f6","branch":"master"},"brand":{"sha":"f0b1f7da","branch":"master"},"chipper":{"sha":"e044eccd","branch":"master"},"circuit-construction-kit":{"sha":"34780a85","branch":"master"},"circuit-construction-kit-black-box":{"sha":"88cbfaf4","branch":"master"},"dot":{"sha":"551f726f","branch":"master"},"joist":{"sha":"a42bced7","branch":"master"},"kite":{"sha":"dce9765e","branch":"master"},"phet-core":{"sha":"c48bf320","branch":"master"},"phetcommon":{"sha":"35ef94ad","branch":"master"},"scenery":{"sha":"4476eb95","branch":"master"},"scenery-phet":{"sha":"52b783d9","branch":"master"},"sherpa":{"sha":"77506dc3","branch":"master"},"sun":{"sha":"0d7e743b","branch":"master"},"tandem":{"sha":"b3c68afa","branch":"master"}}

@brroberts1231
Copy link
Author

brroberts1231 commented Jun 20, 2016

Here you can see that it will not allow connecting components that have investigate components on their vertices(I think I'll start calling these "used vertices") to a component whose box vertex has nothing else connected(and "free vertices"), but it will allow the reverse. Works the same way with components that aren't connected to any box vertex.
cck-1

@brroberts1231
Copy link
Author

However fixed length components connected to a free vertex will not be able to connect, when a wire would.
cck-2

@phet-steele
Copy link
Contributor

@samreid this is certainly a consequence of the rule you stated in #128 (comment). In all of these videos, if the wires that are placed in Investigate are instead rotated to be "inside" the black box, then all connections work correctly. To demonstrate:

cckbb07

@samreid
Copy link
Member

samreid commented Jul 3, 2016

The problem was introduced in #136, which says that a vertex may not connect to another vertex if it has any connected vertices outside of the black box. Perhaps this should be refined to say that it is OK for a vertex to be outside of the black box if it is not attachable.

@samreid
Copy link
Member

samreid commented Jul 3, 2016

Fixed as described in the preceding comment, ready for testing in next version.

@samreid
Copy link
Member

samreid commented Jul 5, 2016

Testing issue linked above.

@phet-steele
Copy link
Contributor

phet-steele commented Jul 6, 2016

@samreid not quite. If two components placed in "Build" have one vertex outside of the box, no more connections can be made:

cckbb09

@samreid
Copy link
Member

samreid commented Jul 9, 2016

@arouinfar can I get your guidance on this issue? The rule is that in "Build Circuit" mode, a connection cannot be made while any connected vertices are outside of the black box. For instance:

connect

Can you please advise how to proceed?

@samreid samreid assigned arouinfar and unassigned samreid and brroberts1231 Jul 9, 2016
@samreid
Copy link
Member

samreid commented Jul 10, 2016

Upon reflection, perhaps we should restrict the search to "translating vertices" instead of "connected vertices", that may address this sufficiently. I'll reassign to myself for investigation.

@samreid samreid assigned samreid and unassigned arouinfar Jul 10, 2016
@samreid
Copy link
Member

samreid commented Jul 10, 2016

The preceding comment seems like a good compromise:

connect2

@arouinfar and @phet-steele sound OK?

@brroberts1231
Copy link
Author

Looks good to me. I won't close just yet in case @phet-steele or @arouinfar have anything else to add.

@arouinfar
Copy link
Contributor

Looks good to me @samreid.

@arouinfar arouinfar assigned samreid and unassigned arouinfar Jul 13, 2016
@samreid samreid removed their assignment Jul 13, 2016
@phet-steele
Copy link
Contributor

Yup, this is good, Nice idea @samreid!

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

No branches or pull requests

4 participants