Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
revolve up to (flat) surface
mko_sc
Member Posts: 27 PRO
revolve up to (flat) surface
I have a closed profile and an axis leaning against a plane
I can revolutionize this closed profile up to a plane (which clearly intersects) and have qCapEntity
I wanted to avoid doing a full revolution, cut it and then select the resulting section.
Thanks




Tagged:
0
Comments
angle = angleBetween(vector1, vector2); opRevolve(context, id + "revolve2", { "entities" : Sketch, "axis" : revAxis, "angleForward" : angle });opRevolve(context, id + "revolve1", { "entities" : widget.faccia, "axis" : line(vector(0, 0, 0) * mm, vector(0, 0, -1)), "angleForward" : 170 * degree }); opExtrude(context, id + "extrude1", { "entities" : widget.entities, "direction" : evOwnerSketchPlane(context, { "entity" : widget.entities }).normal, "endBound" : BoundingType.BLIND, "endDepth" : 50 * mm }); var tools = qUnion([qCreatedBy(id + "extrude1", EntityType.BODY), qCreatedBy(id + "revolve1", EntityType.BODY)]); opBoolean(context, id + "boolean1", { "tools" : tools, "operationType" : BooleanOperationType.INTERSECTION, "allowSheets" : true }); debug(context, qCreatedBy(id + "boolean1"), DebugColor.RED);